1 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
3 * config/rs6000/constraints.md (define_register_constraint "wl"):
5 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
7 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8 (rs6000_init_hard_regno_mode_ok): Adjust.
9 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
10 * doc/md.texi (Machine Constraints): Adjust.
12 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
14 * config/rs6000/constraints.md (define_register_constraint "wm"):
16 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
18 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
19 (rs6000_init_hard_regno_mode_ok): Adjust.
20 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
21 * doc/md.texi (Machine Constraints): Adjust.
23 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
25 * config/rs6000/constraints.md (define_register_constraint "wk"):
27 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
29 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
30 (rs6000_init_hard_regno_mode_ok): Adjust.
31 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
32 * doc/md.texi (Machine Constraints): Adjust.
34 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
36 * config/rs6000/constraints.md (define_register_constraint "wj"):
38 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
40 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
41 (rs6000_init_hard_regno_mode_ok): Adjust.
42 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
44 * config/rs6000/vsx.md: Ditto.
45 * doc/md.texi (Machine Constraints): Adjust.
47 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
49 * config/rs6000/constraints.md (define_register_constraint "wh"):
51 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
53 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
54 (rs6000_init_hard_regno_mode_ok): Adjust.
55 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
56 * doc/md.texi (Machine Constraints): Adjust.
58 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
61 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
62 Avoid calling gen_lowpart with CONST operand.
64 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
66 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
67 field template_last_to_copy.
68 (ssa_create_duplicates): Set it, and use it. Attempt to
69 preserve more debug stmts.
71 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
73 * config/i386/sse.md (VF1_AVX2): New mode iterator.
74 (signbit<mode>2): New expander
76 2019-05-21 James Clarke <jrtc27@jrtc27.com>
79 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
80 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
82 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
84 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
85 %ebx and %ecx bafore calling cpuid with leaf 1 or
86 non-constant leaf argument.
88 2019-05-21 Alan Modra <amodra@gmail.com>
91 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
92 power9 direct move cost.
93 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
94 Correct comments and rename functions to suit parameters.
96 2019-05-21 Richard Biener <rguenther@suse.de>
99 * fold-const.c (fold_read_from_vector): New function.
100 * fold-const.h (fold_read_from_vector): Declare.
101 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
102 single-element insert permutations. Canonicalize selector
103 further and fix issue with last commit.
105 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
107 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
108 parameter with default value false to declaration.
109 (split_edges_for_insertion): New inline function. Wrapper for
110 split_critical_edges with for_edge_insertion_p = true.
111 * tree-cfg.c (split_critical_edges): Don't split non-critical
112 edges if for_edge_insertion_p is false. Fix whitespace.
113 * tree-ssa-pre.c (pass_pre::execute): Call
114 split_edges_for_insertion instead of split_critical_edges.
115 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
116 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
117 (pass_data_sink_code): Update function name in the comment.
119 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
121 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
122 around is_value_included_in that knows how to handle BIT_AND_EXPR.
123 (is_pred_expr_subset_of): Use the new function. Handle more cases where
124 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
127 2019-05-21 Martin Liska <mliska@suse.cz>
129 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
131 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
132 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
134 * config/rs6000/rs6000.c (rs6000_option_override_internal):
136 (rs6000_function_arg): Likewise.
137 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
138 (rs6000_expand_ternop_builtin): Use interval syntax.
139 (get_element_number): Likewise.
140 (altivec_expand_builtin): Likewise.
141 (rs6000_get_function_versions_dispatcher): Quote target_clones.
145 2019-05-20 Jakub Jelinek <jakub@redhat.com>
149 * function.h (struct function): Add calls_eh_return member.
150 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
151 gimplifying __builtin_eh_return call.
152 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
154 (expand_call_inline): Or in src_cfun->calls_eh_return into
155 dst_cfun->calls_eh_return.
156 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
157 cfun->calls_eh_return.
158 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
159 * lto-streamer-out.c (output_struct_function_base): Write
162 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
164 PR rtl-optimization/43147
165 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
168 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
170 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
171 (refs_may_alias_p_1): ... here; update stats.
172 (refs_may_alias_p): Do not update stats here.
174 2019-05-20 Richard Biener <rguenther@suse.de>
176 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
177 doesn't produce pointers.
178 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
179 the first operand points to.
181 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
183 * tree-ssa-alias.c (compare_sizes): New function.
184 (sompare_type_sizes): New function
185 (aliasing_component_refs_p): Use it.
186 (indirect_ref_may_alias_decl_p): Likewise.
188 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
190 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
192 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
194 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
195 (LIBLSAN_EARLY_SPEC): Likewise.
196 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
198 2019-05-20 Martin Liska <mliska@suse.cz>
200 * config/i386/i386.c (ix86_libc_has_fast_function):
201 Add ATTRIBUTE_UNUSED for the argument.
203 2019-05-20 Richard Biener <rguenther@suse.de>
205 * gimple-match-head.c: Include vec-perm-indices.h.
206 * generic-match-head.c: Likewise.
207 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
209 * fold-const.c (fold_vec_perm): Export.
210 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
213 2019-05-20 Jakub Jelinek <jakub@redhat.com>
215 * cfgloop.h (struct loop): Add simdlen member.
216 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
217 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
218 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
219 as new argument to autovectorize_vector_sizes target hook. If
220 loop->simdlen, pick up vector size where the vectorization factor
221 is equal to loop->simd, and if there is none, fall back to the first
223 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
225 * omp-low.c (omp_clause_aligned_alignment): Likewise.
226 * omp-general.c (omp_max_vf): Likewise.
227 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
228 * tree-vect-slp.c (vect_slp_bb): Likewise.
229 * target.def (autovectorize_vector_sizes): Add ALL argument and
231 * doc/tm.texi: Adjust documentation.
232 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
233 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
234 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
236 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
237 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
238 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
239 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
240 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
241 preferred vector size is not 512-bit or 256-bit, just put those
242 unpreferred ones last.
244 2019-05-20 Martin Liska <mliska@suse.cz>
246 * targhooks.c (default_libc_has_fast_function): New function.
247 * targhooks.h (default_libc_has_fast_function): Likewise.
249 2019-05-20 Martin Liska <mliska@suse.cz>
252 * builtins.c (expand_builtin_memory_copy_args): When having a
253 target with fast mempcpy implementation do now use memcpy.
254 * config/i386/i386.c (ix86_libc_has_fast_function): New.
255 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
256 * doc/tm.texi: Likewise.
257 * doc/tm.texi.in: Likewise.
259 * expr.c (emit_block_move_hints): Add 2 new arguments.
260 * expr.h (emit_block_move_hints): Bail out when libcall
261 to memcpy would be used.
263 2019-05-20 Martin Liska <mliska@suse.cz>
265 * profile-count.c: Add vertical spacing in order
266 to separate functions.
267 * profile-count.h: Likewise.
269 2019-05-20 Martin Liska <mliska@suse.cz>
271 * profile-count.h: Do not use full qualified
273 * profile-count.c (profile_count::to_frequency): Likewise.
275 2019-05-20 Martin Liska <mliska@suse.cz>
277 * profile-count.h (enum profile_quality): Use capital letters
278 for enum value names. Use the adjusted names.
279 * profile-count.c: Use the adjusted names.
281 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
283 * config/rs6000/constraints.md (define_register_constraint "wH"):
285 (define_register_constraint "wI"): Delete.
286 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
287 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
288 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
289 (rs6000_init_hard_regno_mode_ok): Adjust.
290 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
291 resp. "d", or with "wa" as appropriate, all with "p8v".
292 * config/rs6000/vsx.md: Ditto.
293 * doc/md.texi (Machine Constraints): Adjust.
295 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
297 * config/rs6000/constraints.md (define_register_constraint "wy"):
299 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
300 RS6000_CONSTRAINT_wy.
301 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
302 (rs6000_init_hard_regno_mode_ok): Adjust.
303 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
304 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
305 (define_mode_attr Fisa): New.
306 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
307 * doc/md.texi (Machine Constraints): Adjust.
309 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
311 * config/rs6000/constraints.md (define_register_constraint "wu"):
313 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
314 RS6000_CONSTRAINT_wu.
315 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
316 (rs6000_init_hard_regno_mode_ok): Adjust.
317 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
319 (define_mode_attr Fa): Delete.
320 * config/rs6000/vsx.md: Ditto.
321 * doc/md.texi (Machine Constraints): Adjust.
323 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
325 * config/rs6000/constraints.md (define_register_constraint "wJ"):
327 (define_register_constraint "wK"): Delete.
328 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
329 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
330 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
331 (rs6000_init_hard_regno_mode_ok): Adjust.
332 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
333 Replace "wK" constraint by "wH" with "p9v".
334 * config/rs6000/vsx.md: Ditto.
335 * doc/md.texi (Machine Constraints): Adjust.
337 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
339 * config/rs6000/constraints.md (define_register_constraint "wb"):
341 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
342 RS6000_CONSTRAINT_wb.
343 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
344 (rs6000_init_hard_regno_mode_ok): Adjust.
345 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
346 * config/rs6000/vsx.md: Ditto.
347 * doc/md.texi (Machine Constraints): Adjust.
349 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
351 * config/rs6000/constraints.md (define_register_constraint "wo"):
353 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
354 RS6000_CONSTRAINT_wo.
355 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
356 (rs6000_init_hard_regno_mode_ok): Adjust.
357 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
358 * config/rs6000/altivec.md: Ditto.
359 * doc/md.texi (Machine Constraints): Adjust.
361 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
363 * config/darwin-c.c (darwin_register_objc_includes): Do not
364 prepend the sysroot when building gnu-runtime header search
367 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
369 * config/darwin.c (darwin_file_end): Use switch_to_section ()
370 instead of direct output of the asm.
372 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
374 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
375 argument to be type bool (was int before).
376 (rs6000_emit_epilogue): Simplify some code. Declare some variables
377 at first use. Use type bool for some variables. Fix a theoretical
378 eh_return bug for svr4.
380 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
382 * config/rs6000/rs6000.md (isa): New attribute.
383 (enabled): New attribute.
385 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
387 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
388 assemble_start_function and assemble_end_function.
390 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
393 * omp-general.c (oacc_verify_routine_clauses): Change formal
394 parameters. Add checking if already marked with an OpenACC
395 'routine' directive. Adjust all users.
398 * omp-general.c (oacc_build_routine_dims): Move some of its
400 (oacc_verify_routine_clauses): ... this new function.
401 * omp-general.h (oacc_verify_routine_clauses): New prototype.
403 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
405 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
406 formating of picbase labels to match other ports.
408 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
410 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
411 in the generated code.
413 2019-05-16 Martin Sebor <msebor@redhat.com>
415 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
416 identifiers, keywords, operators, and types in diagnostics. Correct
417 quoting, spelling, and sentence capitalization issues.
418 (expand_builtin_atomic_is_lock_free): Same.
419 (fold_builtin_next_arg): Same.
420 * cfgexpand.c (expand_one_var): Same.
421 (tree_conflicts_with_clobbers_p): Same.
422 (expand_asm_stmt): Same.
423 (verify_loop_structure): Same.
424 * cgraphunit.c (process_function_and_variable_attributes): Same.
425 * collect-utils.c (collect_execute): Same.
426 * collect2.c (maybe_run_lto_and_relink): Same.
427 (is_lto_object_file): Same.
428 (scan_prog_file): Same.
429 * convert.c (convert_to_real_1): Same.
430 * dwarf2out.c (dwarf2out_begin_prologue): Same.
431 * except.c (verify_eh_tree): Same.
432 * gcc.c (execute): Same.
433 (eval_spec_function): Same.
435 (driver::set_up_specs): Same.
436 (compare_debug_auxbase_opt_spec_function): Same.
437 * gcov-tool.c (unlink_gcda_file): Same.
440 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
441 * gimplify.c (gimplify_asm_expr): Same.
442 (gimplify_adjust_omp_clauses): Same.
443 * hsa-gen.c (gen_hsa_addr_insns): Same.
444 (gen_hsa_insns_for_load): Same.
445 (gen_hsa_cmp_insn_from_gimple): Same.
446 (gen_hsa_insns_for_operation_assignment): Same.
447 (gen_get_level): Same.
448 (gen_hsa_alloca): Same.
449 (omp_simple_builtin::generate): Same.
450 (gen_hsa_atomic_for_builtin): Same.
451 (gen_hsa_insns_for_call): Same.
452 * input.c (dump_location_info): Same.
453 * ipa-devirt.c (compare_virtual_tables): Same.
454 * ira.c (ira_setup_eliminable_regset): Same.
455 * lra-assigns.c (lra_assign): Same.
456 * lra-constraints.c (lra_constraints): Same.
457 * lto-streamer-in.c (lto_input_mode_table): Same.
458 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
459 (merge_and_complain): Same.
460 (compile_offload_image): Same.
461 (compile_images_for_offload_targets): Same.
462 (debug_objcopy): Same.
465 * opts.c (print_specific_help): Same.
466 (parse_no_sanitize_attribute): Same.
468 (handle_param): Same.
469 * plugin.c (add_new_plugin): Same.
470 (parse_plugin_arg_opt): Same.
471 (try_init_one_plugin): Same.
472 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
473 operators, and types in diagnostics. Correct quoting and spelling
475 * read-rtl-function.c (parse_edge_flag_token): Same.
476 (function_reader::parse_enum_value): Same.
477 * reg-stack.c (check_asm_stack_operands): Same.
478 * regcprop.c (validate_value_data): Same.
479 * sched-rgn.c (make_pass_sched_fusion): Same.
480 * stmt.c (check_unique_operand_names): Same.
481 * targhooks.c (default_target_option_pragma_parse): Same.
482 * tlink.c (recompile_files): Same.
483 * toplev.c (process_options): Same.
485 * trans-mem.c (diagnose_tm_1): Same.
486 (ipa_tm_scan_irr_block): Same.
487 (ipa_tm_diagnose_transaction): Same.
488 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
489 format a tree code name in a diagnostic.
490 (verify_types_in_gimple_min_lval): Same.
491 (verify_types_in_gimple_reference): Same.
492 (verify_gimple_call): Same.
493 (verify_gimple_assign_unary): Same.
494 (verify_gimple_assign_binary): Same.
495 (verify_gimple_assign_ternary): Same.
496 (verify_gimple_assign_single): Same.
497 (verify_gimple_switch): Same.
498 (verify_gimple_label): Same.
499 (verify_gimple_phi): Same.
500 (verify_gimple_in_seq): Same.
501 (verify_eh_throw_stmt_node): Same.
502 (collect_subblocks): Same.
503 (gimple_verify_flow_info): Same.
504 (do_warn_unused_result): Same.
505 * tree-inline.c (expand_call_inline): Same.
506 * tree-into-ssa.c (update_ssa): Same.
507 * tree.c (tree_int_cst_elt_check_failed): Same.
508 (tree_vec_elt_check_failed): Same.
509 (omp_clause_operand_check_failed): Same.
510 (verify_type_variant): Same.
512 * value-prof.c (verify_histograms): Same.
513 * varasm.c (assemble_start_function): Same.
515 2019-05-16 Martin Sebor <msebor@redhat.com>
517 * config/i386/i386-expand.c (get_element_number): Quote keywords
518 and other internal names in diagnostics. Adjust other diagnostic
519 formatting issues noted by -Wformat-diag.
520 * config/i386/i386-features.c
521 (ix86_mangle_function_version_assembler_name): Same.
522 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
523 * config/i386/i386.c (ix86_function_type_abi): Same.
524 (ix86_function_ms_hook_prologue): Same.
525 (classify_argument): Same.
526 (ix86_expand_prologue): Same.
527 (ix86_md_asm_adjust): Same.
528 (ix86_memmodel_check): Same.
530 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
532 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
533 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
536 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
539 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
540 intrinsics without SSE/SSE2/SSSE3.
541 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
543 (*mmx_uavgv8qi3): Likewise.
545 2019-05-17 Richard Biener <rguenther@suse.de>
547 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
548 VEC_PERM_EXPR as __VEC_PERM with -gimple.
550 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
552 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
553 vec_sldw insn pattern.
555 2019-05-17 Richard Biener <rguenther@suse.de>
557 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
559 2019-05-17 Martin Liska <mliska@suse.cz>
562 * toplev.c (output_stack_usage): With LTO and sanitizer it
563 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
564 has no file location.
566 2019-05-16 Jakub Jelinek <jakub@redhat.com>
569 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
570 sz0 is equal to sz1, instead return false in that case.
572 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
573 has non-constant expression, force sctx.lane and use two
574 argument IFN_GOMP_SIMD_LANE instead of single argument.
575 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
576 two argument IFN_GOMP_SIMD_LANE without lhs.
577 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
579 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
581 (LOOP_REQUIRES_VERSIONING): Or in
582 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
583 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
585 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
586 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
587 from simd if clause if needed.
589 2019-05-16 Richard Biener <rguenther@suse.de>
591 * tree-affine.c (expr_to_aff_combination): New function split
593 (tree_to_aff_combination): ... here.
594 (aff_combination_expand): Avoid building a GENERIC tree.
596 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
598 * cgraphunit.c (cgraph_node::expand_thunk): Remove
599 assemble_start_function and assemble_end_function calls.
600 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
601 assemble_start_function and assemble_end_function.
602 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
603 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
604 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
605 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
606 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
607 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
608 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
609 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
610 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
611 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
612 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
613 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
615 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
616 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
617 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
618 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
619 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
620 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
621 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
622 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
623 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
624 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
625 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
626 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
627 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
628 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
630 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
631 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
632 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
634 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
636 * tree-ssa-alias.c (alias_stats): Add
637 aliasing_component_refs_p_may_alias and
638 aliasing_component_refs_p_no_alias.
639 (dump_alias_stats): Print aliasing_component_refs_p stats.
640 (aliasing_component_refs_p): Update stats.
642 2019-05-16 Martin Liska <mliska@suse.cz>
645 * multiple_target.c (expand_target_clones): Do not allow
646 target_clones being used with a symbol that is an alias.
648 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
650 PR tree-optimization/90394
651 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
652 positives rather than ICE for cases where (code2 == NE_EXPR
653 && code1 == BIT_AND_EXPR).
655 2019-05-16 Jakub Jelinek <jakub@redhat.com>
658 * tree-core.h (struct tree_decl_common): Document
659 decl_nonshareable_flag for PARM_DECLs.
660 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
661 * calls.c (expand_call): Don't try tail call if caller
662 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
663 passed on the stack and callee needs to pass any arguments on the
665 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
666 else if instead of series of mutually exclusive ifs. Handle
667 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
668 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
670 * lto-streamer.h (LTO_major_version): Bump to 9.
672 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
674 PR tree-optimization/90106
675 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
676 new parameter as new internal function call, also move it to new
678 (use_internal_fn): Pass internal function call to
679 shrink_wrap_one_built_in_call_with_conds.
681 2019-05-15 Jakub Jelinek <jakub@redhat.com>
683 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
685 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
686 safelen_int and set loop->dont_vectorize.
688 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
691 * config/i386/i386-builtin.def: Enable MMX intrinsics with
693 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
695 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
696 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
697 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
700 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
703 * config/i386/mmx.md (*vec_dupv2sf): Changed to
704 define_insn_and_split to support SSE emulation.
705 (*vec_extractv2sf_0): Likewise.
706 (*vec_extractv2sf_1): Likewise.
707 (*vec_extractv2si_0): Likewise.
708 (*vec_extractv2si_1): Likewise.
709 (*vec_extractv2si_zext_mem): Likewise.
710 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
711 (vec_extractv2sf_1 splitter): Likewise.
712 (vec_extractv2sfsf): Likewise.
713 (vec_setv2si): Likewise.
714 (vec_extractv2si_1 splitter): Likewise.
715 (vec_extractv2sisi): Likewise.
716 (vec_setv4hi): Likewise.
717 (vec_extractv4hihi): Likewise.
718 (vec_setv8qi): Likewise.
719 (vec_extractv8qiqi): Likewise.
720 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
721 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
722 (vec_extractv2sisi): Likewise.
723 (vec_extractv4hihi): Likewise.
724 (vec_extractv8qiqi): Likewise.
725 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
726 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
727 (vec_initv2sisi): Likewise.
728 (vec_initv4hihi): Likewise.
729 (vec_initv8qiqi): Likewise.
730 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
731 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
732 (vec_setv4hi): Likewise.
733 (vec_setv8qi): Likewise.
735 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
738 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
740 (MMXMODE:*mov<mode>_internal): Likewise.
741 (MMXMODE:movmisalign<mode>): Likewise.
743 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
746 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
747 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
748 (sse2_cvtpd2pi): Ditto.
749 (sse2_cvttpd2pi): Ditto.
750 (*vec_concatv2sf_sse4_1): Ditto.
751 (*vec_concatv2sf_sse): Ditto.
752 (*vec_concatv2si_sse4_1): Ditto.
753 (*vec_concatv2si): Ditto.
754 (*vec_concatv4si_0): Ditto.
755 (*vec_concatv2di_0): Ditto.
757 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
760 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
762 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
765 * config/i386/sse.md (ssse3_palignrdi): Changed to
766 define_insn_and_split to support SSE emulation.
768 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
771 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
773 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
776 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
777 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
780 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
783 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
784 or TARGET_MMX_WITH_SSE.
785 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
787 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
790 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
792 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
795 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
796 Changed to define_insn_and_split to support SSE emulation.
798 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
801 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
802 Changed to define_insn_and_split to support SSE emulation.
804 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
807 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
809 (mmx_<emms>): New expander.
811 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
814 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
816 (*sse2_umulv1siv1di3): Add SSE2 emulation.
818 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
821 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
823 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
826 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
828 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
831 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
833 (*mmx_uavgv4hi3): Add SSE emulation.
835 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
838 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
839 and TARGET_MMX_WITH_SSE.
840 (*mmx_uavgv8qi3): Add SSE emulation.
842 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
845 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
846 maskmovdqu for __MMX_WITH_SSE__.
848 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
851 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
852 TARGET_MMX and TARGET_MMX_WITH_SSE.
853 (*mmx_umulv4hi3_highpart): Add SSE emulation.
855 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
858 * config/i386/mmx.md (mmx_pmovmskb): Changed to
859 define_insn_and_split to support SSE emulation.
861 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
864 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
865 and TARGET_MMX_WITH_SSE.
866 (mmx_<code>v8qi3): Likewise.
867 (smaxmin:<code>v4hi3): New.
868 (umaxmin:<code>v8qi3): Likewise.
869 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
870 (umaxmin:*mmx_<code>v8qi3): Likewise.
872 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
875 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
877 (*mmx_pinsrw): Add SSE emulation.
879 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
882 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
884 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
887 * config/i386/sse.md (sse_cvtpi2ps): Changed to
888 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
891 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
894 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
895 (sse_cvttps2pi): Likewise.
897 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
900 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
902 (mmx_pshufw_1): Add SSE emulation.
903 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
904 TARGET_MMX_WITH_SSE to support SSE emulation.
906 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
909 * config/i386/constraints.md (Yw): New constraint.
910 * config/i386/mmx.md (*vec_dupv2si): Changed to
911 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
912 support SSE emulation.
914 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
917 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
919 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
921 (mmx_gt<mode>3): Likewise.
923 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
926 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
927 TARGET_MMX_WITH_SSE. Add SSE support.
929 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
932 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
934 (any_logic:<code><mode>3): New.
935 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
938 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
941 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
942 TARGET_MMX_WITH_SSE. Add SSE emulation.
943 (mmx_<shift_insn><mode>3): Likewise.
945 (<shift_insn><mode>3): Likewise.
947 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
950 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
951 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
953 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
956 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
958 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
961 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
964 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
967 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
970 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
973 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
974 (plusminus:mmx_<plusminus_insn><mode>3): Check
976 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
977 (<plusminus_insn><mode>3): New.
978 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
979 (*mmx_<plusminus_insn><mode>3): Likewise.
981 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
984 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
985 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
987 * config/i386/mmx.m (mmx_punpckhbw): Changed to
988 define_insn_and_split to support SSE emulation.
989 (mmx_punpcklbw): Likewise.
990 (mmx_punpckhwd): Likewise.
991 (mmx_punpcklwd): Likewise.
992 (mmx_punpckhdq): Likewise.
993 (mmx_punpckldq): Likewise.
995 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
996 Uros Bizjak <ubizjak@gmail.com>
999 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
1001 (ix86_split_mmx_pack): Likewise.
1002 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
1004 (ix86_split_mmx_pack): Likewise.
1005 * config/i386/i386.md (mmx_isa): New.
1006 (enabled): Also check mmx_isa.
1007 * config/i386/mmx.md (any_s_truncate): New code iterator.
1008 (s_trunsuffix): New code attr.
1009 (mmx_packsswb): Removed.
1010 (mmx_packssdw): Likewise.
1011 (mmx_packuswb): Likewise.
1012 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
1013 MMX packsswb/packuswb with SSE2.
1014 (mmx_packssdw): Likewise.
1015 * config/i386/predicates.md (register_mmxmem_operand): New.
1017 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1020 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1021 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
1022 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
1023 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
1024 (ix86_vector_mode_supported_p): Likewise.
1025 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
1027 2019-05-15 Martin Liska <mliska@suse.cz>
1030 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
1033 2019-05-15 Richard Biener <rguenther@suse.de>
1035 * tree-into-ssa.c (pass_build_ssa::execute): Run
1036 update_address_taken before going into SSA.
1038 2019-05-15 Richard Biener <rguenther@suse.de>
1040 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
1041 as __BIT_FIELD_REF with type with -gimple.
1043 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
1045 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
1046 semantically equivalent branches (left over after prior refactorings).
1048 2019-05-15 Richard Biener <rguenther@suse.de>
1050 PR tree-optimization/88828
1051 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
1054 2019-05-14 Richard Biener <rguenther@suse.de>
1056 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
1057 as __VIEW_CONVERT with -gimple.
1059 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1062 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
1065 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
1067 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
1068 define_split to become a define_insn_and_split.
1070 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
1072 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
1074 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
1075 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
1076 (sibcall_epilogue): Adjust.
1079 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1081 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
1082 to unsupported ones.
1083 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
1084 * config.host: Likewise.
1085 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
1086 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
1087 __svr4__]: Remove "brand" fallback.
1088 [!KSTAT_DATA_STRING]: Remove.
1089 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
1091 (comdat_group): Likewise.
1092 (set_have_as_tls): Likewise.
1093 (gcc_cv_target_dl_iterate_phdr): Likewise.
1094 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
1095 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
1096 * configure: Regenerate.
1097 * doc/install.texi: Simplify Solaris target triplets.
1098 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
1099 (Specific, *-*-solaris2*): Document Solaris 10 removal.
1100 Remove Solaris 10 references.
1101 Remove obsolete Solaris bug reference.
1102 (Specific, sparc-sun-solaris2.10): Remove.
1104 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
1106 * config/i386/i386.md (any_div): New code iterator.
1107 (paired_mod): New code attribute.
1108 (sgnprefix): Handle DIV and UDIV RTXes.
1110 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
1111 and udivmod<mode>4 patterns using any_div code iterator.
1112 (divmod splitters): Macroize splitters using any_div code iterator.
1113 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
1114 (*udivmodsi4_pow2_zext_2): Ditto.
1115 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
1116 and *udivmod<mode>4_noext patterns using any_div code iterator.
1117 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
1118 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
1119 patterns using any_div code iterator.
1120 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
1121 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
1122 patterns using any_div code iterator.
1123 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
1124 udivmodhiqi3 patterns using any_extend code iterator.
1126 2019-05-14 Richard Biener <rguenther@suse.de>
1127 H.J. Lu <hongjiu.lu@intel.com>
1129 PR tree-optimization/88828
1130 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1131 permuting in a single non-constant element not extracted
1134 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1136 * internal-fn.def (SIGNBIT): New.
1137 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
1139 (signbitv4sf2): Likewise.
1141 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
1144 * config/mips/mips.c (mips_split_move): Skip forward SRC into
1145 next insn when the SRC reg is dead.
1147 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
1149 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
1150 (alloc_cand_and_find_basis): Ditto.
1151 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
1152 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
1153 (create_add_imm_cand, slsr_process_cast): Ditto.
1154 (slsr_process_copy, replace_mult_candidate): Ditto.
1155 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
1156 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
1157 (pass_strength_reduction::execute): Init the first NULL element.
1159 2019-05-13 Nathan Sidwell <nathan@acm.org>
1161 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
1162 (run_attempt): Reformat line break.
1164 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
1167 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
1168 data registers in sibcall epilogues.
1169 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
1171 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
1174 * configure.ac (--enable-frame-pointer):
1175 Disable by default for cygwin and mingw.
1176 * configure: Regenerate.
1178 2019-05-13 Nathan Sidwell <nathan@acm.org>
1180 * dwarf2out.c (breakout_comdat_types): Move comment to correct
1182 (const_ok_for_output_1): Balance parens around #if/#else/#endif
1183 (gen_member_die): Move abstract origin check earlier. Only VARs
1184 can be static_inline_p. Simplify splicing control flow.
1186 2019-05-13 Richard Biener <rguenther@suse.de>
1188 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
1190 (vect_build_slp_tree_1): Likewise.
1192 2019-05-13 Richard Biener <rguenther@suse.de>
1194 PR tree-optimization/90402
1195 * tree-if-conv.c (tree_if_conversion): Value number only
1196 the loop body by making the latch an exit of the region
1198 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
1200 (do_rpo_vn): Deal with multiple edges into the entry block
1201 that are not backedges inside the region by skipping PHIs
1204 2019-05-13 Richard Biener <rguenther@suse.de>
1206 PR tree-optimization/90316
1207 * tree-ssa-pre.c (insert_aux): Fold into ...
1208 (insert): ... this function. Use a RPO walk to reduce the
1209 number of required iterations.
1211 2019-05-13 Martin Liska <mliska@suse.cz>
1213 PR tree-optimization/90416
1214 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
1215 string instead of passing the second part as va_arg argument.
1217 2019-05-13 Martin Liska <mliska@suse.cz>
1219 PR gcov-profile/90380
1220 * gcov.c (handle_cycle): Do not support zero cycle count,
1221 it should not be possible.
1222 (path_contains_zero_cycle_arc): New function.
1223 (circuit): Ignore zero cycle arc counts.
1225 2019-05-13 Martin Liska <mliska@suse.cz>
1227 PR gcov-profile/90380
1228 * gcov.c (enum loop_type): Remove the enum and
1230 (handle_cycle): Assert that we should not reach
1232 (circuit): Use loop_found instead of a tri-state loop_type.
1233 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
1236 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1239 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
1240 (ix86_output_indirect_branch_via_reg): Use output mechanism
1241 accounting for __USER_LABEL_PREFIX__.
1242 (ix86_output_indirect_branch_via_push): Likewise.
1243 (ix86_output_function_return): Likewise.
1244 (ix86_output_indirect_function_return): Likewise.
1246 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
1248 * doc/md.texi: Document use of code attributes in rtx patterns.
1249 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
1250 * read-rtl.c (find_code): Split out search loops into...
1251 (maybe_find_code): ...this new function.
1252 (check_code_iterator): Make the error message more informative.
1253 (check_code_attribute): New function.
1254 (rtx_reader::rtx_alloc_for_name): Likewise.
1255 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
1256 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
1257 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
1258 <max_opp> directly as an rtx code instead of via a match_operator.
1259 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
1260 (<su>abd<mode>_3): Update accordingly.
1262 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1264 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
1265 is given, print the state of the EH "save world" computation for
1268 2019-05-11 Jakub Jelinek <jakub@redhat.com>
1271 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
1272 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
1274 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
1276 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
1277 Use pinsrd for TARGET_SSE4_1.
1278 * config/i386/sse.md (movdi_to_sse): Ditto.
1280 2019-05-10 Richard Biener <rguenther@suse.de>
1282 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
1283 (do_rpo_vn): Initialize next_value_id.
1285 2019-05-10 Martin Liska <mliska@suse.cz>
1287 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
1290 2019-05-10 Jakub Jelinek <jakub@redhat.com>
1292 PR tree-optimization/90385
1293 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
1294 arguments of the exit phis.
1297 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
1298 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
1300 (copy_tree_body_r): Likewise.
1301 (copy_fn): Set id.do_not_fold to true.
1303 2019-05-10 Martin Liska <mliska@suse.cz>
1305 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
1306 Reapply changes from r269790.
1308 2019-05-10 Martin Liska <mliska@suse.cz>
1311 * doc/invoke.texi: New params.
1312 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
1313 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
1314 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
1316 * tree-switch-conversion.h (struct jump_table_cluster):
1319 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
1321 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
1323 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
1325 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
1327 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
1329 PR rtl-optimization/88879
1330 * sel-sched.c (sel_target_adjust_priority): Remove assert.
1332 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
1335 * config/arm/arm.c (callee_saved_reg_p): Move before
1336 thumb_find_work_register.
1337 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
1338 thumb_find_work_register. Only call df_get_live_out once.
1339 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
1340 (thumb_find_work_register): Use
1341 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
1342 algorithms to locate a spare call clobbered reg.
1344 2019-05-09 Martin Liska <mliska@suse.cz>
1346 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
1347 and MAX_EXPR in GIMPLE FE format.
1349 2019-05-09 Martin Liska <mliska@suse.cz>
1351 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
1352 * gimple-pretty-print.c (dump_gimple_bb_header):
1354 (pp_cfg_jump): Dump edge probability.
1355 * profile-count.c (profile_quality_as_string): Simplify
1356 with a static array.
1357 (parse_profile_quality): New function.
1358 (profile_count::dump): Simplify with a static array.
1359 (profile_count::from_gcov_type): Add new argument.
1360 * profile-count.h (parse_profile_quality): Likewise.
1361 * predict.h (set_hot_bb_threshold): New.
1362 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
1364 * predict.c (get_hot_bb_threshold): Set from the new param.
1365 (set_hot_bb_threshold): New.
1367 2019-05-09 Richard Biener <rguenther@suse.de>
1369 PR tree-optimization/90395
1370 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
1371 rewrite vector stores that throw internally.
1373 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
1375 * cif-code.def (CHKP): Remove.
1378 * configure.ac (--enable-frame-pointer): Disable by default for
1380 * configure: Regenerate.
1382 2019-05-09 Alan Modra <amodra@gmail.com>
1385 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
1386 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
1387 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
1388 cost for general <-> vsx when direct moves are available.
1389 Cost union classes at minimal cost for any reg in the class.
1390 Correct calculation for moves between vsx, float, and altivec.
1391 Don't return a low cost for moves between special regs. Don't
1392 use hard coded register numbers.
1393 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
1394 (rs6000_ira_change_pseudo_allocno_class): New function.
1395 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
1396 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
1398 (movsi_internal1): Don't disparage vector alternatives.
1399 (mov<mode>_internal): Likewise, excepting alternative that
1401 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
1402 we <- b alternative.
1404 2019-05-08 Jakub Jelinek <jakub@redhat.com>
1407 PR tree-optimization/89060
1408 * tree-ssa-live.h (live_vars_map): New typedef.
1409 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
1410 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
1411 (struct compute_live_vars_data): New type.
1412 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
1413 live_vars_at_stmt, destroy_live_vars): New functions.
1414 * tree-tailcall.c: Include tree-ssa-live.h.
1415 (live_vars, live_vars_vec): New global variables.
1416 (find_tail_calls): Perform variable life analysis before punting.
1417 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
1418 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
1420 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
1421 Perform variable life analysis to select variables that really need
1423 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
1424 instead set id->eh_landing_pad_dest and assert it is the same.
1425 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
1427 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
1428 Richard Earnshaw <rearnsha@arm.com>
1431 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
1433 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
1434 (thumb1_compute_save_core_reg_mask): Don't force a spare work
1435 register if both the epilogue and prologue can use call-clobbered
1437 (thumb1_unexpanded_epilogue): Use
1438 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
1439 picking temporaries for restoring high regs to match that of the
1440 prologue where possible.
1441 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
1442 the list of work registers. Detect if the return address is still live
1443 at the end of the prologue and avoid using it for a work register if so.
1444 If the return address is not live, add LR to the list of pushable regs
1445 after the first pass.
1447 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
1449 PR tree-optimization/90078
1450 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
1451 (INFTY): Increase the value for infinite cost.
1452 (struct comp_cost): Promote type of members to int64_t.
1453 (infinite_cost): Don't set complexity in initialization.
1454 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
1455 overflows to infinite_cost.
1456 (adjust_setup_cost): Promote type of parameter and cost computation
1458 (struct ainc_cost_data, struct iv_ca): Promote type of member to
1460 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
1461 cost computation to int64_t.
1462 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
1463 int64_t's format specifier in dump.
1465 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
1467 PR tree-optimization/90240
1468 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
1469 with respect to scaling factor pre-computed for each basic block.
1470 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
1471 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
1472 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
1473 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
1474 live range for array of loop's basic blocks. Cleanup aux field of
1475 loop's basic blocks.
1477 2019-05-08 Jakub Jelinek <jakub@redhat.com>
1479 PR tree-optimization/90356
1480 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
1482 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
1484 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
1485 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
1486 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
1487 (ix86_handle_option): Handle -mavx512bf16.
1488 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
1490 * config/i386/avx512bf16vlintrin.h: New.
1491 * config/i386/avx512bf16intrin.h: New.
1492 * config/i386/cpuid.h (bit_AVX512BF16): New.
1493 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
1494 * config/i386/i386-builtin-types.def: Add new types.
1495 * config/i386/i386-builtin.def: Add new builtins.
1496 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1498 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
1499 (ix86_option_override_internal): Handle BF16.
1500 (ix86_valid_target_attribute_inner_p): Ditto.
1501 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
1502 * config/i386/i386-builtin.c (enum processor_features): Add
1504 (static const _isa_names_table isa_names_table): Ditto.
1505 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
1506 (PTA_AVX512BF16): Ditto.
1507 * config/i386/i386.opt: Add -mavx512bf16.
1508 * config/i386/immintrin.h: Include avx512bf16intrin.h
1509 and avx512bf16vlintrin.h.
1510 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
1511 avx512f_cvtneps2bf16_<mode><mask_name>,
1512 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
1513 * config/i386/subst.md (mask_half): Add new subst.
1514 * doc/invoke.texi: Document -mavx512bf16.
1516 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
1518 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
1520 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
1521 (rs6000_debug_legitimize_reload_address): Delete.
1522 (rs6000_legitimize_reload_address_ptr): Delete.
1523 (rs6000_option_override_internal): Adjust.
1524 (mem_operand_gpr): Adjust comment.
1525 (legitimate_lo_sum_address_p): Ditto.
1526 (rs6000_legitimize_reload_address): Delete.
1527 (rs6000_debug_legitimize_reload_address): Delete.
1528 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
1530 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
1533 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1534 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
1535 to compute vector element selector for both constant and variable
1538 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
1540 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
1541 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
1542 ashrdi3_cvt using SWI48 mode iterator.
1544 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1546 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
1547 (aarch64_<su>abd<mode>_3): Likewise.
1548 (*aarch64_<su>abd<mode>_3): New define_insn.
1549 (<sur>sad<vsi2qi>): New define_expand.
1550 * config/aarch64/iterators.md: Added MAX_OPP attribute.
1551 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
1552 (build_vect_cond_expr): Likewise.
1554 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
1556 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
1557 clobbers outside of accessible_reg_set.
1558 * config/i386/i386.c (ix86_conditional_register_usage):
1559 Disable register sets by clearing corresponding bits in
1560 accessible_reg_set. Do not set corresponding bits in fixed_regs,
1561 call_used_regs and don't clear corresponding reg_names array members.
1563 2019-05-07 Richard Biener <rguenther@suse.de>
1565 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
1566 not specified still compute a comp_vectype for invariant
1569 2019-05-07 Richard Biener <rguenther@suse.de>
1571 PR tree-optimization/90316
1572 * tree-ssa-pre.c (translate_vuse_through_block): When
1573 same_valid is NULL do not bother to search for a virtual
1575 (phi_translate_1): When operands changed we cannot keep
1576 the same value-number so do not bother to ask whether
1577 that's possible from translate_vuse_through_block.
1579 2019-05-07 Martin Liska <mliska@suse.cz>
1581 * bitmap.c (bitmap_register): Come up with
1582 alloc_descriptor_max_uid and assign it for
1584 (register_overhead): Use get_descriptor as
1586 (release_overhead): New.
1587 (bitmap_elem_to_freelist): Call it.
1588 (bitmap_elt_clear_from): Likewise.
1589 (bitmap_obstack_free): Likewise.
1590 (bitmap_move): Sensitively release memory.
1591 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
1592 (bitmap_initialize): Initialize alloc_descriptor to zero.
1593 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
1595 2019-05-07 Richard Biener <rguenther@suse.de>
1597 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
1598 we build a SLP node. Remove max_size and limiting.
1599 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
1601 2019-05-07 Richard Biener <rguenther@suse.de>
1603 PR tree-optimization/90316
1604 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
1606 (walk_non_aliased_vuses): Take walking limit argument.
1607 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
1608 walking if it is reached instead of just counting.
1609 (get_continuation_for_phi): Likewise.
1610 (walk_non_aliased_vuses): Likewise, instead of leaving counter
1611 limiting to the callback.
1612 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
1613 (vn_reference_lookup_3): Likewise.
1614 (vn_reference_lookup_pieces): Likewise.
1615 (vn_reference_lookup): Likewise.
1616 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
1617 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
1618 (avail_exprs_stack::lookup_avail_expr): Likewise.
1620 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
1622 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
1623 for comparaible types in the second direction even if first one
1624 hits incomparable type.
1626 2019-05-07 Richard Biener <rguenther@suse.de>
1629 * lto-wrapper.c (debug_objcopy): Use the original filename
1630 including archive offset for the filename used for -save-temps.
1632 2019-05-07 Li Jia He <helijia@linux.ibm.com>
1634 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
1637 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1639 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
1640 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
1641 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
1642 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
1643 (FRAME_POINTER_REGNUM): Change numbering.
1644 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
1645 (alt_reg_names): Adjust.
1646 (rs6000_conditional_register_usage): Don't mark hard register 64 as
1648 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
1649 (DWARF_FRAME_REGISTERS): Delete.
1650 (DWARF2_FRAME_REG_OUT): Fix whitespace.
1651 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1653 (REG_ALLOC_ORDER): Adjust.
1654 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
1655 (REG_CLASS_CONTENTS): Adjust.
1656 (RETURN_ADDR_RTX): Change comment.
1657 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
1659 (REGISTER_NAMES): Adjust.
1660 (ADDITIONAL_REGISTER_NAMES): Adjust.
1661 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
1663 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1665 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
1667 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
1668 (DWARF_FRAME_REGISTERS): Adjust.
1669 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1671 (REG_ALLOC_ORDER): Adjust.
1672 (enum reg_class): Delete SPR_REGS.
1673 (REG_CLASS_NAMES): Delete SPR_REGS.
1674 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
1675 (REGISTER_NAMES): Adjust.
1676 (ADDITIONAL_REGISTER_NAMES): Adjust.
1677 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
1678 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
1679 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
1680 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
1681 (htm_spr_regno): Delete.
1682 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
1684 (rs6000_dbx_register_number): Adjust.
1686 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1688 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
1690 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1692 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
1693 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
1695 2019-05-06 Jakub Jelinek <jakub@redhat.com>
1697 PR tree-optimization/88709
1698 PR tree-optimization/90271
1699 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
1700 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
1701 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
1703 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
1704 of the store merging group is larger than
1705 PARAM_STORE_MERGING_MAX_SIZE parameter.
1706 (split_group): Add bzero_first argument. If set, always emit first
1707 the first store which must be = {} of the whole area and then for the
1708 rest of the stores consider all zero bytes as paddings.
1709 (imm_store_chain_info::output_merged_store): Check if first store
1710 is = {} of the whole area and if yes, determine which setting of
1711 bzero_first for split_group gives smaller number of stores. Adjust
1712 split_group callers.
1713 (lhs_valid_for_store_merging_p): Allow decls.
1714 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
1716 (pass_store_merging::process_store): Likewise.
1718 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
1721 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1722 handling of V1TImode.
1724 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
1727 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
1728 and enable_frame_pointer ...
1729 * configure.ac: ... here. Update help strings for
1730 --enable-frame-pointer.
1731 * configure: Regenerate.
1732 * config/i386/i386-options.c (ix86_option_override_internal): Remove
1733 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
1734 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
1735 (USE_X86_64_FRAME_POINTER): Ditto.
1737 2019-05-06 Martin Liska <mliska@suse.cz>
1739 * config.gcc: Append to target_gtfiles and fix indentation.
1741 2019-05-06 Richard Biener <rguenther@suse.de>
1743 PR tree-optimization/90358
1744 * tree-vect-stmts.c (get_group_load_store_type): Properly
1745 detect unused upper half of load.
1746 (vectorizable_load): Likewise.
1748 2019-05-06 Richard Biener <rguenther@suse.de>
1750 PR tree-optimization/88828
1751 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
1752 (simplify_vector_constructor): ...here. Handle constants in
1755 2019-05-06 Richard Biener <rguenther@suse.de>
1757 PR tree-optimization/90328
1758 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
1759 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
1760 is valid in the loop nest before using it.
1761 (initialize_data_dependence_relation): Adjust.
1762 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
1763 loop as loop-nest to dr_may_alias_p.
1765 2019-05-06 Richard Biener <rguenther@suse.de>
1767 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
1769 2019-05-06 Richard Biener <rguenther@suse.de>
1771 PR tree-optimization/90316
1772 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
1773 compute target on demand.
1774 (get_continuation_for_phi): Remove code walking stmts to
1775 get to a target virtual operand which could end up being
1778 2019-05-06 Martin Liska <mliska@suse.cz>
1781 * config/i386/i386-options.c (ix86_option_override_internal): Error only
1782 when -mabi is selected to a non-default version.
1784 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
1785 Martin Liska <mliska@suse.cz>
1787 * Makefile.in: Add lto-dump.texi.
1788 * cgraph.h: Add new functions get_visibility_string and
1789 get_symtab_type_string.
1790 * doc/gcc.texi: Include lto-dump section.
1791 * doc/lto-dump.texi: New file.
1792 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
1793 (parse_dump_option): Factor out this function.
1794 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
1795 (parse_dump_option): Export the function.
1796 * symtab.c (symtab_node::get_visibility_string): New function.
1797 (symtab_node::get_symtab_type_string): Likewise.
1799 2019-05-06 Martin Liska <mliska@suse.cz>
1801 * config/i386/i386-builtins.c: New file.
1802 * config/i386/i386-builtins.h: New file.
1803 * config/i386/i386-expand.c: New file.
1804 * config/i386/i386-expand.h: New file.
1805 * config/i386/i386-features.c: New file.
1806 * config/i386/i386-features.h: New file.
1807 * config/i386/i386-options.c: New file.
1808 * config/i386/i386-options.h: New file.
1809 * config.gcc: Add new files into extra_objs and
1811 * config/i386/i386.c: Split content of the file
1812 into newly introduced files.
1813 * config/i386/i386.h: Declare common variables
1815 * config/i386/t-i386: Define dependencies for new files.
1818 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
1821 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
1822 Restrict 'all' variant to 32-bit configurations.
1823 (unaligned_loadhiu): Likewise.
1824 (unaligned_storehi): Likewise.
1825 (unaligned_storesi): Likewise.
1826 (unaligned_loadhis): Disable when compiling for thumb1.
1828 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
1830 PR tree-optimization/90269
1831 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
1834 2019-05-03 Martin Liska <mliska@suse.cz>
1836 * hash-map.h: Add is_empty function.
1837 * hash-set.h: Likewise.
1838 * hash-table.h: Likewise.
1839 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
1840 elements () == 0 (and similar usages).
1841 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
1842 * gimplify.c (gimplify_bind_expr): Likewise.
1843 (gimplify_switch_expr): Likewise.
1844 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
1845 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
1846 * postreload-gcse.c (dump_hash_table): Likewise.
1847 (gcse_after_reload_main): Likewise.
1848 * predict.c (combine_predictions_for_bb): Likewise.
1849 * tree-parloops.c (reduction_phi): Likewise.
1850 (separate_decls_in_region): Likewise.
1851 (transform_to_exit_first_loop): Likewise.
1852 (gen_parallel_loop): Likewise.
1853 (gather_scalar_reductions): Likewise.
1854 (try_create_reduction_list): Likewise.
1855 * var-tracking.c (dump_vars): Likewise.
1856 (emit_notes_for_changes): Likewise.
1857 (vt_emit_notes): Likewise.
1859 2019-05-03 Richard Biener <rguenther@suse.de>
1861 PR tree-optimization/90316
1862 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
1865 2019-05-03 Richard Biener <rguenther@suse.de>
1867 * tree-vect-stmts.c (get_group_load_store_type): Avoid
1868 peeling for gaps by loading only lower halves of vectors
1870 (vectorizable_load): Likewise.
1872 2019-05-03 Richard Biener <rguenther@suse.de>
1875 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
1877 2019-05-03 Richard Biener <rguenther@suse.de>
1880 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
1881 Handle STRING_CST vs DECL or STRING_CST.
1883 2019-05-03 Richard Biener <rguenther@suse.de>
1885 PR tree-optimization/88963
1886 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
1887 vector loads feeding only BIT_FIELD_REFs to component
1888 loads. Rewrite stores fed by CONSTRUCTORs to component
1891 2019-05-03 Jakub Jelinek <jakub@redhat.com>
1893 * opts.h (finish_options): Remove lang_mask argument.
1894 (print_help, help_option_argument): Declare.
1895 * opts.c (print_help): Remove forward declaration, no longer static.
1896 (finish_options): Remove lang_mask argument, don't call print_help
1898 * opts-global.c (decode_options): Adjust finish_option caller, call
1901 PR tree-optimization/90303
1902 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
1903 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
1905 2019-05-03 Richard Biener <rguenther@suse.de>
1907 PR tree-optimization/89698
1908 * gimple-fold.c (canonicalize_constructor_val): Early out
1909 for constants, handle unfolded INTEGER_CSTs as they appear in
1910 C++ virtual table ctors.
1912 2019-05-03 Richard Biener <rguenther@suse.de>
1914 * passes.c (execute_function_todo): Remove dead code.
1916 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
1918 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
1919 the internal register number, for any "real" register.
1921 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
1923 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
1924 correct numbers for TFHAR, TFIAR, TEXASR.
1926 2019-05-02 Richard Biener <rguenther@suse.de>
1928 PR tree-optimization/89653
1929 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
1930 update-address-taken before the pass.
1931 * passes.def (pass_tree_loop_init): Put comment before it.
1933 2019-05-02 Richard Biener <rguenther@suse.de>
1935 PR tree-optimization/89509
1936 * tree-ssa-structalias.c (compute_dependence_clique): Look
1937 at the first subvar when determining whether it is restrict.
1939 2019-05-02 Richard Biener <rguenther@suse.de>
1941 PR tree-optimization/90273
1942 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
1943 useless debug stmts.
1945 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1947 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
1949 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
1951 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
1952 VEC_COND_EXPR be inserted to emulate a conditional internal function.
1953 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
1954 (vectorizable_reduction): Use the functions above to vectorize in a
1955 fully masked loop codes that don't have a conditional internal
1958 2019-05-02 Martin Liska <mliska@suse.cz>
1960 * cgraphclones.c: Call valid_attribute_p with 1 for
1962 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
1963 it's for target attribute.
1964 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
1965 Add new boolean argument.
1966 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1968 (ix86_valid_target_attribute_tree): Pass target_clone_attr
1969 to ix86_valid_target_attribute_inner_p.
1970 (ix86_valid_target_attribute_p): Pass flags argument to
1971 ix86_valid_target_attribute_inner_p.
1972 (get_builtin_code_for_version): Use 0 as it's target attribute.
1974 2019-05-02 Martin Liska <mliska@suse.cz>
1976 * gcc.c (process_command): Add dummy file only
1978 * opts-global.c (decode_options): Pass lang_mask.
1979 * opts.c (print_help): New function.
1980 (finish_options): Print --help if help_option_argument
1982 (common_handle_option): Factor out content of OPT__help_
1984 * opts.h (finish_options): Add new argument.
1986 2019-05-02 Martin Liska <mliska@suse.cz>
1989 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
1990 With -minline-all-stringops use inline expansion using 4B loop.
1991 * doc/invoke.texi: Document the change of
1992 -minline-all-stringops.
1994 2019-05-01 Jeff Law <law@redhat.com>
1996 PR tree-optimization/88797
1997 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
1998 PHI feeds a conditional on the RHS of an assignment.
2000 2019-04-30 Andrew Waterman <andrew@sifive.com>
2001 Jim Wilson <jimw@sifive.com>
2003 * config/riscv/constraints.md (L): New.
2004 * config/riscv/predicates.md (lui_operand): New.
2005 (sfb_alu_operand): New.
2006 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
2007 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
2008 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
2009 * config/riscv/risc.md (type): Add sfb_alu.
2010 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
2011 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
2012 (branch_zero<mode>): Delete.
2014 (mov<GPR:mode><X:mode>cc): Likewise.
2015 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
2017 2019-04-30 Nathan Sidwell <nathan@acm.org>
2019 * tree.h (MARK_TS_EXP): New.
2021 2019-04-30 Martin Liska <mliska@suse.cz>
2023 * opts.c (enable_warning_as_error): Provide hints
2024 for unknown options.
2026 2019-04-30 Martin Liska <mliska@suse.cz>
2029 * doc/invoke.texi: Add missing dash for gas-locview-support
2030 and gno-as-locview-support.
2032 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2035 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
2036 whitespace at the start of target attribute string.
2038 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2041 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
2042 Define __ARM_FEATURE_ATOMICS.
2044 2019-04-30 Martin Liska <mliska@suse.cz>
2046 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
2047 into built_in_function enum. Remove code for endp == 2 and
2048 use BUILT_IN_* constants.
2049 (gimple_fold_builtin): Call the function with fcode.
2051 2019-04-30 Martin Liska <mliska@suse.cz>
2053 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
2054 DECL_FUNCTION_CODE into ix86_builtins enum before
2055 the switch statement.
2057 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2059 PR tree-optimization/89475
2060 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
2063 2019-04-30 Martin Liska <mliska@suse.cz>
2065 PR translation/90274
2066 * opts.c (print_filtered_help): Wrap string in _(...).
2068 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
2070 PR tree-optimization/90240
2072 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2074 PR tree-optimization/90078
2075 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
2076 checks for infinite_cost overflow.
2078 2019-04-29 Jeff Law <law@redhat.com>
2080 * passes.def: Move -Wrestrict pass after copy propagation.
2082 2019-04-29 Maya Rashish <coypu@sdf.org>
2084 * config.gcc (default_gnu_indirect_function): Default to yes
2085 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
2086 sparc*-*-netbsd*, x86_64-*-netbsd*.
2088 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
2090 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
2091 where cond2 is NE_EXPR.
2092 (is_value_included_in): Update comment.
2094 2019-04-29 Richard Biener <rguenther@suse.de>
2096 PR tree-optimization/90278
2097 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
2098 EH on comparison simplification.
2100 2019-04-29 Jason Merrill <jason@redhat.com>
2102 PR c++/82081 - tail call optimization breaks noexcept
2103 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
2104 nothrow function to a might-throw function into a tail call.
2106 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
2108 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
2109 (DDR_INNER_LOOP): Likewise.
2110 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
2111 (initialize_data_dependence_relation): Likewise.
2112 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
2114 2019-04-29 Jakub Jelinek <jakub@redhat.com>
2116 PR rtl-optimization/90257
2117 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
2121 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
2125 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
2128 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
2131 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
2133 * lra-spills.c (lra_final_code_change): Remove useless move insns.
2135 2019-04-29 Richard Biener <rguenther@suse.de>
2137 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
2140 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
2142 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
2143 varasm.h, and netbsd-protos.h.
2145 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
2148 * config/i386/i386-protos.h (ix86_data_alignment): Change
2149 the second argument type to unsigned int.
2150 * config/i386/i386.c (ix86_data_alignment): Change "align"
2151 argument type to unsigned int.
2153 2019-04-27 Martin Liska <mliska@suse.cz>
2156 * opt-suggestions.c (option_proposer::build_option_suggestions):
2157 When get_valid_option_values returns empty values, add the
2158 misspelling candidate.
2160 2019-04-26 Jim Wilson <jimw@sifive.com>
2162 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
2164 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
2165 Pass orig_mode to riscv_build_integer.
2166 (riscv_split_integer): Pass mode to riscv_move_integer.
2167 (riscv_legitimize_const_move): Likewise.
2168 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
2169 promoted_mode. Replace force_reg call with code to load constant into
2170 promoted reg and then subreg it for the store.
2171 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
2174 2018-04-26 Eugene Sharygin <eush@ispras.ru>
2176 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
2179 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
2181 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
2182 commentary about the encoding of precision.
2184 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
2186 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
2187 * config/i386/t-freebsd64: New file.
2188 * config.gcc: Add the t-freebsd64 for multilib support.
2190 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
2192 * doc/extend.texi (vector_size): Add missing comma after @xref.
2194 2019-04-25 Jakub Jelinek <jakub@redhat.com>
2196 * BASE-VER: Set to 10.0.0.
2198 2019-04-25 Richard Biener <rguenther@suse.de>
2201 * gimplify.c (gimplify_expr): Avoid turning a lvalue
2202 VIEW_CONVERT_EXPR into one operating on an rvalue.
2204 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
2207 * config/i386/i386.c (feature_priority): Moved to file scope.
2208 (processor_features): Likewise.
2209 (processor_model): Likewise.
2210 (_arch_names_table): Likewise.
2211 (arch_names_table): Likewise.
2212 (_feature_list): Removed.
2213 (feature_list): Likewise.
2214 (_isa_names_table): Moved to file scope. Add priority.
2215 (isa_names_table): Likewise.
2216 (get_builtin_code_for_version): Replace feature_list with
2217 isa_names_table. Update error message for P_ZERO priority.
2219 2019-04-25 Richard Biener <rguenther@suse.de>
2221 * tree-pass.h (make_pass_phi_only_cprop): Remove.
2222 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
2224 2019-04-24 Jeff Law <law@redhat.com>
2226 PR tree-optimization/90037
2227 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
2228 * passes.def: Replace all instance of phi-only cprop with the
2229 lattice propagator. Move propagation pass from after erroneous
2230 path isolation to before erroneous path isolation.
2231 * tree-ssa-phionlycprop.c: Remove.
2233 2019-04-24 Richard Biener <rguenther@suse.de>
2236 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
2237 by size and BITS_PER_UNIT on poly-wide-ints.
2239 2019-04-25 Richard Biener <rguenther@suse.de>
2242 * match.pd: Add pattern to simplify view-conversion of an
2245 2019-04-24 Clement Chigot <clement.chigot@atos.net>
2247 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
2248 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
2249 for Go on 32 bit AIX.
2250 * config/rs6000/aix72.h: Likewise.
2252 2019-04-24 Jakub Jelinek <jakub@redhat.com>
2255 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
2256 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
2258 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
2261 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
2262 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
2263 for restored hard frame pointer.
2264 (s390_sched_dependencies_evaluation): Implement new target hook.
2265 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
2267 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
2269 * config/arc/arc-options.def: Fix typos and spelling mistakes.
2270 * config/arc/arc.c (arc_init): Cleanup warning message.
2271 (arc_override_options): Likewise.
2273 2019-04-24 Jakub Jelinek <jakub@redhat.com>
2276 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
2277 a register if both if_true and if_false are MEMs.
2279 PR tree-optimization/90208
2280 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
2281 after labels of new_bb, not before them.
2283 PR tree-optimization/90211
2284 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
2285 which are not SSA_NAMEs.
2287 2018-04-23 Sudakshina Das <sudi.das@arm.com>
2289 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
2291 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
2293 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
2295 PR rtl-optimization/87979
2296 * modulo-sched.c (sms_schedule): Start ii value "mii" should
2299 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
2301 PR rtl-optimization/84032
2302 * modulo-sched.c (ps_insn_find_column): Change condition so that
2303 branch will always be the last insn in a row inside partial
2306 2019-04-23 Richard Biener <rguenther@suse.de>
2309 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
2310 dest_single_pred_p argument.
2311 (remove_forwarder_block): Adjust.
2312 (remove_forwarder_block_with_phi): Likewise.
2314 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2315 Bernd Edlinger <bernd.edlinger@hotmail.de>
2316 Jakub Jelinek <jakub@redhat.com>
2319 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
2320 if used with general-regs-only.
2321 (arm_conditional_register_usage): Don't add non-general regs if
2323 (arm_valid_target_attribute_rec): Handle general-regs-only.
2324 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
2326 (TARGET_HARD_FLOAT_SUB): Define.
2327 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
2328 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
2329 (TARGET_REALLY_IWMMXT2): Likewise.
2330 * config/arm/arm.opt: Add -mgeneral-regs-only.
2331 * doc/extend.texi: Document ARM general-regs-only target.
2332 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
2334 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2336 PR tree-optimization/90078
2337 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
2338 checks for infinite_cost overflow.
2340 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2342 PR tree-optimization/90021
2343 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
2344 and check univariate against it.
2345 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
2346 * tree-data-ref.c (add_other_self_distances): Pass new argument.
2348 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
2352 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
2355 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
2358 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
2360 * lra-spills.c (lra_final_code_change): Remove useless move insns.
2362 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
2364 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
2365 names using operand format, rather than hard-wired.
2366 (speculation_barrier): Likewise.
2368 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
2370 PR tree-optimization/88055
2371 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
2372 (gen_one_condition): Use it if !HONOR_NANS.
2374 2019-04-19 Jakub Jelinek <jakub@redhat.com>
2377 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
2378 assign_temp instead of gen_reg_rtx.
2380 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
2382 PR translation/90118
2383 * config/aarch64/aarch64.c (aarch64_override_options_internal):
2384 Add missing space before %<.
2386 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
2388 PR rtl-optimization/87871
2389 * ira-lives.c (make_object_dead): Don't add conflicts to
2390 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
2392 2019-04-18 Martin Sebor <msebor@redhat.com>
2395 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
2396 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
2397 assuming type size fits in SHWI.
2399 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
2402 * ipa-inline.c (flatten_function): New parameter UPDATE.
2403 (ipa_inline, early_inliner): Use it.
2405 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
2407 * fold-const.c (int_const_binop): Return early on failure.
2409 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
2412 * combine.c (force_int_to_mode): Cast the argument rather than
2413 the result of known_alignment.
2414 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
2416 2019-04-18 Richard Biener <rguenther@suse.de>
2419 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
2421 (remove_forwarder_block): ... here.
2422 (remove_forwarder_block_with_phi): Also move debug stmts here.
2424 2019-04-18 Jakub Jelinek <jakub@redhat.com>
2426 PR translation/79183
2427 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
2428 inform where appropriate.
2430 2019-04-18 Richard Biener <rguenther@suse.de>
2432 * tree.c (get_qualified_type): Put found type variants at the
2433 head of the variant list.
2435 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2437 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
2439 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
2442 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
2443 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
2444 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
2445 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
2446 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
2448 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
2450 * ira-conflicts.c (print_allocno_conflicts): Always print something,
2451 even for allocno's with no conflicts.
2452 (print_conflicts): Print an extra newline.
2454 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2456 * auto-inc-dec.c (attempt_change): Set the alignment of the
2457 temporary memory to that of the original.
2459 2019-04-17 Joao Moreira <jmoreira@suse.de>
2461 * targhooks.c (default_print_patchable_function_entry): Emit
2462 __patchable_function_entries section with writable flags to allow
2463 relocation resolution.
2465 2019-04-17 Jonny Grant <jg@jguk.org>
2467 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
2469 2019-04-17 Jakub Jelinek <jakub@redhat.com>
2472 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
2475 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
2477 * config/arc/arc.c (arc_init): Format diagnostic string.
2478 (arc_override_options): Likewise.
2479 (check_if_valid_regno_const): Likewise.
2480 (arc_reorg): Likewise.
2482 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2485 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
2487 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
2489 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
2490 (*movdi_update1): Use Pmode.
2491 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
2492 (movdi_<mode>_update_stack): Rename to ...
2493 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
2495 (*movsi_update1): Use Pmode.
2496 (*movsi_update2): Use Pmode.
2497 (movsi_update): Rename to ...
2498 (movsi_<mode>_update): ... this. Use Pmode.
2499 (movsi_update_stack): Fix condition.
2500 (*movhi_update1): Use Pmode. Fix argument to
2501 avoiding_indexed_address_p.
2502 (*movhi_update2): Ditto.
2503 (*movhi_update3): Ditto.
2504 (*movhi_update4): Ditto.
2505 (*movqi_update1): Ditto.
2506 (*movqi_update2): Ditto.
2507 (*movqi_update3): Ditto.
2508 (*movsf_update1, *movdf_update1): Merge, rename to...
2509 (*mov<mode>_update1): This. Use Pmode. Fix argument to
2510 avoiding_indexed_address_p. Add "size" attribute.
2511 (*movsf_update2, *movdf_update2): Merge, rename to...
2512 (*mov<mode>_update2): This. Ditto.
2513 (*movsf_update3): Use Pmode. Fix argument to
2514 avoiding_indexed_address_p.
2515 (*movsf_update4): Ditto.
2516 (allocate_stack): Simplify condition. Adjust pattern names.
2518 2019-04-17 Jakub Jelinek <jakub@redhat.com>
2521 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
2522 whitespace at the start of target attribute string.
2524 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
2527 * config/rs6000/power9.md: Add store forwarding bypass.
2529 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
2532 * valtrack.c (dead_debug_insert_temp): Reset debug references
2533 to the return value of a call being removed.
2535 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2537 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
2538 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
2539 implement target hook.
2540 (arc_memory_move_cost): New function.
2541 (TARGET_REGISTER_MOVE_COST): Define.
2542 (TARGET_MEMORY_MOVE_COST): Likewise.
2543 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
2544 (MEMORY_MOVE_COST): Likewise.
2546 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2548 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
2549 (sibcall_value_insn): Likewise.
2550 * config/arc/constraints.md (Rs5): Remove.
2552 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2554 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
2555 for last two fake registers.
2556 (arc_conditional_register_usage): Make sure fake frame and arg
2557 pointer regs are in general regs class.
2558 (FRAME_POINTER_MASK): Remove.
2559 (RETURN_ADDR_MASK): Remove.
2560 (arc_must_save_register): Use hard frame regnum.
2561 (frame_restore_reg): Use hard_frame_pointer_rtx.
2562 (arc_save_callee_saves): Likewise.
2563 (arc_restore_callee_saves): Likewise.
2564 (arc_save_callee_enter): Likewise.
2565 (arc_restore_callee_leave): Likewise.
2566 (arc_save_callee_milli): Likewise.
2567 (arc_eh_return_address_location): Likewise.
2568 (arc_check_multi): Use hard frame regnum.
2569 (arc_can_eliminate): Likewise.
2570 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
2571 for register allocator.
2572 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
2573 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
2574 (FRAME_POINTER_REGNUM): Change it to a fake register.
2575 (HARD_FRAME_POINTER_REGNUM): Defined.
2576 (ARG_POINTER_REGNUM): Change it to a new fake register.
2577 (ELIMINABLE_REGS): Update.
2578 (REGISTER_NAMES): Update names.
2579 * config/arc/arc.md (LP_START): Remove.
2581 (shift_si3_loop): Update pattern.
2583 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2585 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
2586 to avoid delay slot scheduling.
2587 (arc_must_save_register): Don't save SP.
2588 * config/arc/arc.md (stack_tie): Remove.
2589 (UNSPEC_ARC_STKTIE): Likewise.
2591 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
2592 Shiva Chen <shiva0217@gmail.com>
2594 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
2595 code gen with large shift amount.
2597 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
2599 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
2602 2019-04-16 Jakub Jelinek <jakub@redhat.com>
2605 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
2606 print -m64/-mx32/-m32 if it is true.
2607 (ix86_debug_options, ix86_function_specific_print): Pass true as
2608 ADD_ABI_P to ix86_target_string.
2609 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
2610 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
2611 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
2613 PR rtl-optimization/90082
2614 * dce.c (can_delete_call): New function.
2615 (deletable_insn_p, mark_insn): Use it.
2617 PR tree-optimization/90090
2618 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
2620 (is_division_by_square): Likewise. Formatting fix.
2622 2019-04-16 Richard Biener <rguenther@suse.de>
2624 PR tree-optimization/56049
2625 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
2626 equality check if alias-set zero will prevail.
2628 2019-04-15 Jeff Law <law@redhat.com>
2630 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
2631 size and alignment as unsigned.
2633 2019-04-15 Richard Biener <rguenther@suse.de>
2636 * tree-loop-distribution.c (destroy_loop): Preserve correct
2639 2019-04-15 Richard Biener <rguenther@suse.de>
2641 PR tree-optimization/90071
2642 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
2643 abnormal operands from def stmts.
2645 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
2647 PR rtl-optimization/89794
2648 * combine.c (count_auto_inc): New function.
2649 (try_combine): Count how many auto_inc expressions there were in the
2650 original instructions. Ensure we have the same number in the new
2651 instructions. Remove the code that tried to ensure auto_inc side
2652 effects on i1 and i0 are not lost.
2654 2019-04-15 Richard Biener <rguenther@suse.de>
2657 * tree.h (auto_var_p): Declare.
2658 * tree.c (auto_var_p): New function, split out from ...
2659 (auto_var_in_fn_p): ... here.
2660 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
2662 (new_var_info): Initialize it.
2663 (set_uids_in_ptset): Also set the shadow variable uid if required.
2664 (ipa_pta_execute): Postprocess points-to solutions assigning
2665 shadow variable uids for locals that may reach their containing
2666 function recursively.
2667 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
2668 assert but instead check whether the points-to solution is
2671 2019-04-15 Martin Jambor <mjambor@suse.cz>
2674 * cgraph.c (clone_of_p): Loop over clone chain for each step in
2677 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
2679 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
2681 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
2682 Kito Cheng <kito.cheng@gmail.com>
2683 Shiva Chen <shiva0217@gmail.com>
2685 * config/nds32/nds32-md-auxiliary.c
2686 (nds32_legitimize_pic_address): Use new PIC pattern.
2687 (nds32_legitimize_tls_address): Use new TLS pattern.
2688 (nds32_output_symrel): New.
2689 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
2690 (nds32_alloc_relax_group_id): Ditto.
2691 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
2692 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
2694 (nds32_group_tls_insn): Ditto.
2695 (nds32_group_float_insns): Ditto.
2696 * config/nds32/nds32.md (tls_le): New.
2699 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
2701 * configure: Add nds32 target for dwarf2 debug_line checking.
2702 * configure.ac: Regenerated.
2704 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
2707 * ipa-devirt.c (skip_in_fields_list_p): New.
2708 (odr_types_equivalent_p): Use it.
2710 2019-04-13 Jakub Jelinek <jakub@redhat.com>
2713 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
2714 instead of strncmp when checking for thumb and arm. Formatting fixes.
2716 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
2718 * doc/install.texi: Document --with-target-system-zlib.
2720 2019-04-12 Martin Sebor <msebor@redhat.com>
2726 * targhooks.c (default_vector_alignment): Avoid assuming
2727 argument fits in SHWI.
2728 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
2730 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
2732 2019-04-12 Jakub Jelinek <jakub@redhat.com>
2734 PR rtl-optimization/89965
2735 * dce.c: Include rtl-iter.h.
2736 (struct check_argument_load_data): New type.
2737 (check_argument_load): New function.
2738 (find_call_stack_args): Check for loads from stack slots still tracked
2739 in sp_bytes and punt if any is found.
2741 * config/mips/loongson-mmiintrin.h: Fix up #error message.
2743 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
2745 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
2746 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
2748 2019-04-12 Martin Liska <mliska@suse.cz>
2751 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
2753 (separate_attrs): Handle multiple 'default's.
2754 (expand_target_clones): Rework error handling code.
2756 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
2759 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
2760 mode of vector rather than mode of destination for move instruction.
2761 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
2762 Use QI inner mode with V16QI vector mode.
2764 2019-04-12 Jakub Jelinek <jakub@redhat.com>
2767 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
2768 "invalid %%t operand" in output_operand_lossage message.
2770 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
2772 * config/s390/predicates.md (permute_pattern_operand): New
2774 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
2775 operand for the permute pattern.
2776 ("*vec_perm<mode>"): New insn definition.
2777 ("bswap<mode>"): Generate the permute pattern operand in the
2778 expander and perform the operand reloads for pre arch13 level
2780 ("*bswap<mode>_emu"): Rename to ...
2781 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
2782 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
2783 Add the USE operand for the permute pattern.
2784 ("*vec_set_bswap_vec<mode>"): Likewise.
2786 2019-04-12 Jakub Jelinek <jakub@redhat.com>
2789 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
2790 and gcc_unreachable if it fails, just call tree_to_uhwi which
2791 verifies that too. Test TREE_CHAIN instead of list_length > 1.
2792 Start warning message with a lower-case letter. Formatting fixes.
2794 PR rtl-optimization/90026
2795 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
2796 successors, look for BARRIERs inside of the whole BB_FOOTER chain
2797 rather than just at the start of it. If e->src BB_FOOTER is not NULL
2798 in cfglayout mode, use emit_barrier_after_bb.
2800 2018-04-11 Steve Ellcey <sellcey@marvell.com>
2802 PR rtl-optimization/87763
2803 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
2806 2019-04-11 Tom de Vries <tdevries@suse.de>
2808 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
2809 max macro using statement expression.
2811 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
2813 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
2814 * xcoffout.c (xcoff_private_rodata_section_name): Define.
2815 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
2816 read_only_private_data_section using xcoff_private_rodata_section_name.
2817 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
2819 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
2822 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
2824 2019-04-11 Jakub Jelinek <jakub@redhat.com>
2826 PR rtl-optimization/89965
2827 * dce.c (sp_based_mem_offset): New function.
2828 (find_call_stack_args): Use sp_based_mem_offset.
2830 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
2832 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
2834 2019-04-11 Richard Biener <rguenther@suse.de>
2836 PR tree-optimization/90020
2837 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
2838 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
2839 * tree-ssa-pre.c (compute_avail): Use it to not put
2840 possibly trapping references after a call that might not
2841 return into EXP_GEN.
2842 * gcse.c (compute_hash_table_work): Do not elide
2843 marking a block containing a call if the call might not
2846 2019-04-11 Richard Biener <rguenther@suse.de>
2848 PR tree-optimization/90018
2849 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
2850 Test both SLP and interleaving variants.
2852 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
2854 * config/s390/8561.md: New file.
2855 * config/s390/driver-native.c (s390_host_detect_local_cpu):
2856 Add arch13 cpu model.
2857 * config/s390/s390-opts.h (enum processor_type): Likewise.
2858 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
2859 (s390_get_unit_mask): Likewise.
2860 (s390_is_fpd): Likewise.
2861 (s390_is_fxd): Likewise.
2862 * config/s390/s390.h (s390_tune_attr): Likewise.
2863 * config/s390/s390.md: Include arch13 pipeline description.
2864 * config/s390/s390.opt: Add arch13.
2866 2018-04-10 Steve Ellcey <sellcey@marvell.com>
2868 PR rtl-optimization/87763
2869 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
2871 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
2873 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
2875 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
2876 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
2877 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
2878 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
2880 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
2882 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
2883 "Although" in -fipa-icf documentation.
2885 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
2886 of using multiple -g options.
2888 2019-04-10 Martin Liska <mliska@suse.cz>
2890 PR gcov-profile/89959
2891 * doc/gcov.texi: Make documentation of -x option
2894 2019-04-10 Richard Biener <rguenther@suse.de>
2896 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
2898 (DR_GROUP_SAME_DR_STMT): Remove.
2899 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
2900 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
2901 replace with assert.
2902 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
2903 (vect_record_grouped_load_vectors): Remove unreachable code.
2905 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
2908 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
2909 obsolete reference to N.
2911 2019-04-10 Jakub Jelinek <jakub@redhat.com>
2914 * expr.c (store_expr): Set properly size on the MEM passed to
2918 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
2919 with strlen in between hostsz-3 and hostsz-1 inclusive when no
2920 translation is needed, and when translation is needed, only append
2921 ... if the string length is hostsz or more bytes long. Avoid using
2924 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
2927 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
2928 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
2930 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
2931 differences directly.
2932 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
2934 2019-04-09 Jakub Jelinek <jakub@redhat.com>
2936 PR translation/90011
2937 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
2939 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
2941 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
2942 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
2943 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
2944 trailing space from -gsplit-dwarf diagnostics.
2946 PR tree-optimization/89998
2947 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
2948 instead of integer_type_node if possible, don't add ranges if return
2949 type is not compatible with int.
2950 * gimple-fold.c (gimple_fold_builtin_sprintf,
2951 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
2954 2019-04-09 Martin Liska <mliska@suse.cz>
2956 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
2957 * doc/install.texi: Document the new config.
2959 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
2961 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
2962 use gimple_expr_type for load and store calls. Skip over the
2963 condition argument in a conditional internal function.
2964 Protect use of TREE_INT_CST_LOW.
2966 2019-04-09 Jakub Jelinek <jakub@redhat.com>
2969 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
2970 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
2971 trailing period from it too.
2973 2019-04-08 wu yuan <wuyuan5@huawei.com>
2975 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
2976 * config/aarch64/aarch64.md : Add "tsv110.md"
2977 * config/aarch64/tsv110.md: New file.
2979 2019-04-08 Richard Biener <rguenther@suse.de>
2981 PR tree-optimization/90006
2982 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
2985 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
2988 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
2990 (fma_root_node): Likewise.
2991 (func_fma_steering): Likewise.
2993 2019-04-08 Jakub Jelinek <jakub@redhat.com>
2995 PR rtl-optimization/89865
2996 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
2998 PR rtl-optimization/89865
2999 * config/i386/i386.md
3000 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
3001 numbers not to clash with the additional operands[4].
3002 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
3003 with extra register copy in the middle.
3005 2019-04-08 Martin Liska <mliska@suse.cz>
3007 PR gcov-profile/89961
3008 * doc/gcov.texi: Document data_file.
3009 * gcov.c (generate_results): Add data_info into JSON output.
3011 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
3013 PR tree-optimization/89725
3014 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
3015 loop's chrec as invariant symbol.
3016 * tree-chrec.h (chrec_contains_symbols): New parameter.
3017 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
3018 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
3019 function of loops not in DDR's loop_nest.
3020 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
3022 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
3025 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
3028 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
3031 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
3032 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
3034 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
3036 * sched-deps.c (sched_macro_fuse_insns): Check return value of
3037 targetm.fixed_condition_code_regs.
3039 2019-04-05 Richard Biener <rguenther@suse.de>
3043 * tree-cfgcleanup.c (remove_forwarder_block): Always move
3044 debug bind stmts but reset them if they are not valid at the
3047 2019-04-05 Martin Liska <mliska@suse.cz>
3049 PR translation/89936
3050 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
3051 order to wrap keywords or arguments.
3052 * collect2.c (main): Likewise.
3053 (scan_prog_file): Likewise.
3054 (scan_libraries): Likewise.
3055 * common/config/riscv/riscv-common.c
3056 (riscv_subset_list::parsing_subset_version): Likewise.
3057 (riscv_subset_list::parse_std_ext): Likewise.
3058 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3060 * config/arm/arm.c (arm_option_override): Likewise.
3061 * config/cris/cris.c (cris_print_operand): Likewise.
3062 * config/darwin-c.c (darwin_pragma_options): Likewise.
3063 (darwin_pragma_unused): Likewise.
3064 (darwin_pragma_ms_struct): Likewise.
3065 * config/ft32/ft32.c (ft32_print_operand): Likewise.
3066 * config/i386/i386.c (print_reg): Likewise.
3067 (ix86_print_operand): Likewise.
3068 * config/i386/xm-djgpp.h: Likewise.
3069 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
3070 * config/m32c/m32c.c (m32c_option_override): Likewise.
3071 * config/msp430/msp430.c (msp430_option_override): Likewise.
3072 * config/nds32/nds32.c (nds32_option_override): Likewise.
3073 * config/nvptx/mkoffload.c (main): Likewise.
3074 * config/rx/rx.c (rx_print_operand): Likewise.
3075 (valid_psw_flag): Likewise.
3076 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
3077 (vms_pragma_nomember_alignment): Likewise.
3078 (vms_pragma_extern_model): Likewise.
3079 * lto-wrapper.c (compile_offload_image): Likewise.
3080 * omp-offload.c (oacc_parse_default_dims): Likewise.
3081 * symtab.c (symtab_node::verify_base): Likewise.
3082 * tlink.c (recompile_files): Likewise.
3083 (start_tweaking): Likewise.
3084 * tree-profile.c (parse_profile_filter): Likewise.
3086 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
3088 PR tree-optimization/89956
3089 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
3090 multiple negates of the same value.
3092 2019-04-04 Martin Sebor <msebor@redhat.com>
3096 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
3097 have the same precision since the function crashes otherwise.
3098 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
3099 has non-zero arguments.
3101 2019-04-04 Martin Sebor <msebor@redhat.com>
3104 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
3105 out if the number of arguments is less than expected.
3107 2019-04-04 Jeff Law <law@redhat.com>
3109 PR rtl-optimization/89399
3110 * ree.c (combine_set_extension): Use single_set rather than
3111 digging into PATTERN for items on the candidate list.
3112 (combine_reaching_defs): Likewise.
3114 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
3116 PR rtl-optimization/46590
3117 * loop-invariant.c (find_defs): Move df_remove_problem and
3118 df_process_deferred_rescans to move_invariants.
3119 Move df_live_add_problem and df_live_set_all_dirty calls
3121 (move_invariants): Likewise.
3122 (move_loop_invariants): Likewise, making the df_live calls
3123 conditional on -O. Remove the problem again if we added it
3126 2019-04-03 qing zhao <qing.zhao@oracle.com>
3128 PR tree-optimization/89730
3129 * ipa-inline.c (can_inline_edge_p): Delete the checking for
3130 -flive-patching=inline-only-static.
3131 (can_inline_edge_by_limits_p): Add the checking for
3132 -flive-patching=inline-only-static and grant always_inline
3133 even when -flive-patching=inline-only-static is specified.
3135 2019-04-03 Jeff Law <law@redhat.com>
3137 PR rtl-optimization/81025
3138 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
3140 2019-04-03 Richard Biener <rguenther@suse.de>
3142 PR tree-optimization/84101
3143 * tree-vect-stmts.c: Include explow.h for hard_function_value,
3144 regs.h for hard_regno_nregs.
3145 (cfun_returns): New helper.
3146 (vect_model_store_cost): When vectorizing a store to a decl
3147 we return and the function ABI returns in a multi-reg location
3148 account for the possible spilling that will happen.
3150 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
3152 * config/s390/s390.c (s390_legitimate_address_p): Reject long
3153 displacement addresses for vector mode operands.
3155 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
3157 * config/arc/arc.c (GMASK_LEN): Define.
3158 (arc_restore_callee_saves): Restore first blink when
3161 2019-04-03 Sudakshina Das <sudi.das@arm.com>
3163 * doc/extend.texi: Add deprecated comment on sign-return-address
3164 function attribute and add mbranch-protection.
3165 * doc/invoke.texi: Add bti to the options for mbranch-protection.
3167 2019-04-03 Richard Biener <rguenther@suse.de>
3170 * lto-wrapper.c (run_gcc): Avoid implicit rules making
3171 the all target phony.
3173 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
3177 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
3178 Return false for variable DImode shifts.
3179 (dimode_scalar_chain::compute_convert_gain): Do not handle
3180 register count operand in variable DImode shifts.
3181 (dimode_scalar_chain::make_vector_copies): Remove support to copy
3182 count argument of a variable shift instruction to a vector register.
3183 (dimode_scalar_chain::convert_reg): Remove support to convert
3184 count argument of a variable shift instruction.
3186 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
3188 PR rtl-optimization/84206
3189 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
3190 iterating over loop headers.
3192 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
3194 PR rtl-optimization/85876
3195 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
3196 beyond the original fence.
3198 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
3200 * config.gcc: Mark spu* targets as deprecated/obsolete.
3202 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3204 * config/s390/s390-builtin-types.def: New builtin function type
3205 definitions. Remove unused types.
3206 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
3207 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
3208 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
3209 overloaded builtins.
3210 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
3211 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
3212 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
3213 (vec_double, vec_signed, vec_unsigned): Define to use the new
3214 overloaded builtins.
3215 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
3218 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3220 * config/s390/s390-builtin-types.def: New builtin function type
3222 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
3223 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
3224 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
3225 (s390_vstrszh, s390_vstrszf): New low-level builtins.
3226 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
3227 constant definitions.
3228 * config/s390/vecintrin.h (vec_search_string_cc)
3229 (vec_search_string_until_zero_cc): New builtin name definitions.
3230 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
3232 ("vec_vstrs<mode>"): New insn definition.
3234 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3236 * config/s390/s390-builtin-types.def: Add new builtin function
3238 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
3239 New overloaded builtins.
3240 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
3242 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
3243 (UNSPEC_VEC_SLDBYTE): ... this.
3244 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
3245 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
3247 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
3248 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
3249 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
3251 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3253 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
3254 New insn definition.
3255 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
3256 * config/s390/vector.md (V_HW_HSD): ... here.
3258 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3260 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
3261 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
3262 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
3263 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
3264 New insn definitions.
3266 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3268 * config/s390/s390-builtin-types.def: Add new builtin function type.
3269 * config/s390/s390-builtins.def: Add overloaded builtin
3270 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
3271 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
3272 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
3273 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
3274 ("eltswap<mode>"): New expander.
3275 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
3278 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3280 * config/s390/s390-builtin-types.def: Add new builtin function types.
3281 * config/s390/s390-builtins.def: Add overloaded builtin
3282 s390_vec_revb. Add low-level builtins for vlbr and vstbr
3284 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
3285 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
3286 ("bswap<mode>"): New expander.
3287 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
3289 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3291 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
3292 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
3293 vector builtin version number in __VEC__.
3295 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3297 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
3299 (SFSI): New mode attribute.
3300 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
3301 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
3303 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
3304 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
3305 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
3306 ("floatsi<mode>2"): Add wcefb instruction.
3308 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3310 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
3311 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
3313 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
3314 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
3315 support 32 bit fp-int conversions. Rename to ...
3316 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
3317 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
3318 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
3319 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
3322 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3324 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
3325 if-then-else constructs if we can use the select instruction.
3326 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
3328 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3330 * config/s390/s390.md ("*popcountdi_arch13_cc")
3331 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
3333 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
3334 Append _z196 to make it ...
3335 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
3336 ("popcounthi2_z196"): ... this.
3337 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
3338 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
3340 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3342 * config/s390/s390.c (s390_canonicalize_comparison): Convert
3343 certain compares for arch13 in order to make use of the condition
3344 code result produced by the new instructions.
3345 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
3346 nxrk, and nxgrk instruction patterns.
3347 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
3348 (inv_no): Add new code iterator together with some attributes.
3349 ("*andc_split_<mode>"): Disable splitter for arch13.
3350 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
3351 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
3352 ("*<ANDOR:bitops_name>c<GPR:mode>")
3353 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
3354 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
3355 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
3356 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
3358 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3360 * common/config/s390/s390-common.c (processor_flags_table): New
3362 * config.gcc: Support arch13 with the --with-arch= configure flag.
3363 * config/s390/driver-native.c (s390_host_detect_local_cpu):
3364 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
3365 * config/s390/s390.c (s390_get_sched_attrmask)
3366 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
3367 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
3368 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
3369 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
3370 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
3372 * config/s390/s390.opt: Support arch13 as processor type in
3373 command line options.
3375 2019-04-02 Martin Liska <mliska@suse.cz>
3377 PR translation/89912
3378 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
3379 Fix param description of graphite-max-arrays-per-scop.
3381 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
3383 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
3384 (ASAN_CC1_SPEC): Use it in 64-bit mode.
3385 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
3387 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
3389 PR rtl-optimization/85412
3390 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
3391 sel_sched_region_1, not after.
3393 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
3395 PR rtl-optimization/86928
3396 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
3397 compute_live if necessary.
3398 (sel_redirect_edge_and_branch): Likewise.
3400 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
3402 PR rtl-optimization/89865
3403 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
3404 register if it is a part of small class.
3406 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
3408 PR rtl-optimization/87273
3409 * sel-sched-ir.c (merge_fences): Remove assert.
3411 2019-04-01 Richard Biener <rguenther@suse.de>
3413 PR tree-optimization/46590
3414 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
3415 (dom_walker::m_reachability): Add in place of...
3416 (dom_walker::m_skip_unreachable_blocks): ...this.
3417 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
3418 Move complex initialization ...
3419 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
3420 lazily and initialize edge flags on each invocation.
3421 (dom_walker::bb_reachable): Use m_reachability.
3423 2019-04-01 Martin Liska <mliska@suse.cz>
3426 * opt-suggestions.c (option_proposer::build_option_suggestions):
3427 Add variant without any argument in order to provide better
3430 2019-04-01 Richard Biener <rguenther@suse.de>
3433 * gimple.c: Include langhooks.h.
3434 (gimple_get_alias_set): Treat enumeral types as the underlying
3437 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
3438 Eric Botcazou <ebotcazou@adacore.com>
3440 PR rtl-optimization/89862
3441 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
3442 that operates on the full registers for WORD_REGISTER_OPERATIONS
3445 2019-03-29 Jim Wilson <jimw@sifive.com>
3447 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
3448 Clear MASK_RVC and then set if C subset supported.
3450 2019-03-29 Jakub Jelinek <jakub@redhat.com>
3453 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
3454 non-addressable complit into its initializer if it is volatile.
3456 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
3458 * opts-common.c (integral_argument): Set errno properly in one case.
3460 2019-03-29 Martin Liska <mliska@suse.cz>
3462 * doc/invoke.texi: Remove -Wchkp from documentation.
3464 2019-03-29 Martin Liska <mliska@suse.cz>
3466 * dbgcnt.c (print_limit_reach): New function.
3469 2019-03-29 Martin Liska <mliska@suse.cz>
3471 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
3472 (dbg_cnt_process_opt): Parse first tokens aas
3473 dbg_cnt_process_single_pair is also using strtok.
3475 2019-03-29 Jakub Jelinek <jakub@redhat.com>
3477 PR rtl-optimization/87485
3478 * function.c (expand_function_end): Move stack_protect_epilogue
3479 before loading of return value into hard register(s).
3481 2019-03-28 Jakub Jelinek <jakub@redhat.com>
3484 * tree-inline.h (struct copy_body_data): Add
3485 dont_remap_vla_if_no_change flag.
3486 * tree-inline.c (remap_type_3, remap_type_2): New functions.
3487 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
3488 and remap_type_2 returns false.
3489 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
3490 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
3491 only from where it is copied to nested contexts.
3493 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
3496 * config/i386/i386.md (RMW operation with LEA peephole):
3497 Use LEAMODE mode attribute instead of SWI mode iterator for
3500 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
3503 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
3504 Also process XEXP (src, 0) of a shift insn.
3506 2019-03-28 David Malcolm <dmalcolm@redhat.com>
3509 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
3510 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
3512 2019-03-28 Jakub Jelinek <jakub@redhat.com>
3514 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
3516 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
3517 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
3518 immediately after first one with df_analyze in between, but rather
3519 process all bbs, queueing ones that need second pass in a worklist,
3520 df_analyze, process queued debug insn changes and if second pass is
3521 needed, process bbs from worklist, df_analyze, process queued debug
3524 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
3525 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
3526 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
3528 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
3531 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
3534 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
3537 * config/i386/i386.c (ix86_function_value_1): Call the newly added
3538 function for 32-bit MS_ABI.
3539 (function_value_ms_32): New function.
3541 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
3543 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
3544 (movdi): Call gen_movdi_symbol_save_scc.
3545 (gen_movdi_symbol_save_scc): New insn and split.
3547 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
3549 PR rtl-optimization/89313
3550 * function.c (matching_constraint_num): New static function.
3551 (match_asm_constraints_1): Use it. Fixup white space and comment.
3552 Don't replace inputs with non-matching constraints which conflict
3553 with early clobber outputs.
3555 2019-03-27 Jeff Law <law@redhat.com>
3558 PR rtl-optimization/87761
3559 PR rtl-optimization/89826
3560 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
3562 (pass_cprop_hardreg::execute): Call df_analyze after adding the
3563 note problem to get REG_DEAD/REG_UNUSED notes updated.
3565 2019-03-27 Richard Biener <rguenther@suse.de>
3567 PR tree-optimization/89463
3568 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
3569 queue edges to remove.
3570 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
3571 dead stmts. Delay edge removal until PHIs are removed to
3572 make debug-stmt creation not confused by seemingly degenerate
3575 2019-03-27 Alan Modra <amodra@gmail.com>
3577 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
3579 * config/rs6000/darwin.h: Likewise.
3580 * config/rs6000/rs6000.c: Likewise.
3582 2019-03-27 Alan Modra <amodra@gmail.com>
3584 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
3585 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
3587 2019-03-26 Andrew Waterman <andrew@sifive.com>
3588 Jim Wilson <jimw@sifive.com>
3590 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
3591 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
3592 (generic_idivdi, generic_fmul_single, generic_fmul_double)
3593 (generic_fdiv, generic_fsqrt): Add check for generic tune.
3594 (generic_alu): Add auipc to type list.
3595 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
3596 (riscv_microarchitecture): Declare.
3597 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
3598 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
3600 (riscv_microarchitecture): New.
3601 (sifive_7_tune_info): New.
3602 (riscv_cpu_info_table): Add microarchitecture value for rocket and
3603 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
3605 (riscv_store_data_bypass_p): New.
3606 (riscv_option_override): Set riscv_microarchitecture from
3607 cpu->microarchitecture.
3608 * config/riscv/riscv.md: Include sifive-7.md.
3611 (auipc<mode>): Change type to auipc.
3612 (restore_stack_nonlocal): New.
3613 * config/riscv/sifive-7.md: New.
3614 * doc/invoke.texi (RISC-V Options): Update mtune docs.
3616 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
3619 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
3620 Also process XEXP (src, 0) of a shift insn.
3622 2019-03-26 Richard Biener <rguenther@suse.de>
3624 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
3625 (copy_debug_stmt): Likewise.
3626 (expand_call_inline): Likewise.
3627 (copy_bb): Avoid redundant lookup & set of gimple_block.
3628 * gimple-low.c (lower_gimple_return): Likewise.
3629 (lower_builtin_setjmp): Likewise.
3631 2019-03-26 Jakub Jelinek <jakub@redhat.com>
3633 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
3634 is constant 0, turn into static const data member initialized to false.
3635 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
3636 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
3638 2019-03-26 Jason Merrill <jason@redhat.com>
3639 Jakub Jelinek <jakub@redhat.com>
3641 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
3643 (mem_alloc_description::release_object_overhead): Fix comment typos.
3644 * hash-table.h (hash_table::~hash_table): Call
3645 release_instance_overhead only if m_entries is non-NULL, otherwise
3646 call unregister_descriptor.
3648 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
3650 PR tree-optimization/81740
3651 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3652 In case of outer loop vectorization, check for backward dependence
3653 at the inner loop if outer loop dependence is reversed.
3655 2019-03-26 Alan Modra <amodra@gmail.com>
3657 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
3658 rs6000_vector_mem init. Correct wI and wJ comment.
3660 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
3662 PR rtl-optimization/88347
3663 PR rtl-optimization/88423
3664 * sched-deps.c (sched_analyze_insn): Take into account that for
3665 tablejumps the barrier appears after a label and a jump_table_data.
3667 2019-03-25 Martin Sebor <msebor@redhat.com>
3670 * c-common.c (check_user_alignment): Rename local. Correct maximum
3671 alignment in diagnostic. Avoid assuming argument fits in SHWI,
3672 convert it to UHWI when it fits.
3674 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
3677 * dwarf2out.c (premark_used_variables): New function.
3678 (prune_unused_types_walk): Do not mark not premarked external
3680 (prune_unused_types): Call premark_used_variables.
3682 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
3684 PR rtl-optimization/89676
3685 * lra-constraints.c (curr_insn_transform): Do match reload for
3686 early clobbers when the match was successful only for different
3689 2019-03-25 Martin Sebor <msebor@redhat.com>
3691 * doc/extend.texi (Common Type Attributes): Document vector_size.
3692 (Common Variable Attributes): Mention size constraint. Correct
3694 (Vector Extensions): Use @dfn when defining bas type. Clarify
3695 base type and size constraints.
3697 2019-03-25 Richard Biener <rguenther@suse.de>
3699 PR tree-optimization/89789
3700 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
3701 changes from non-undefined back to undefined.
3703 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
3705 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
3706 heap string and a gc string, but since this variable is unknown to
3707 ggc the gc string might get reused and corrupted. Fixed by always
3708 using a heap string.
3710 2019-03-25 Richard Biener <rguenther@suse.de>
3712 PR tree-optimization/89779
3713 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
3714 to remove IV defs, delay actual removal.
3715 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
3716 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
3717 very end, properly also reset loop control IV information.
3719 2019-03-25 Richard Biener <rguenther@suse.de>
3721 PR tree-optimization/89802
3722 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
3723 move EH data to folded stmt.
3725 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
3727 * config/s390/s390-builtin-types.def: Remove few unused types and
3728 fix sort order for others.
3730 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
3732 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
3733 expected and found types with -mdebug during builtin matching.
3735 2019-03-25 Richard Biener <rguenther@suse.de>
3738 * fold-const.c (operand_equal_p): Revert last change with
3741 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
3743 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
3744 notes for the result of the __tls_get_addr calls.
3745 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
3747 2019-03-24 Jeff Law <law@redhat.com>
3749 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
3751 PR rtl-optimization/87761
3752 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
3753 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
3755 (pass_cprop_hardreg::execute): Add df note problem and defer insn
3756 rescans. Reprocess blocks as needed, calling df_analyze before
3757 reprocessing. Always call df_analyze before fixing up debug bind
3760 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
3762 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
3765 2019-03-22 Andrew Pinski <apinski@marvell.com>
3767 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
3768 attrribute for uxtw.
3770 2019-03-26 Jeff Law <law@redhat.com>
3772 PR rtl-optimization/87761
3773 * config/mips/mips-protos.h (mips_split_move): Add new argument.
3774 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
3775 (mips_split_move): Accept new INSN argument. Try to forward SRC
3776 into the next instruction.
3777 (mips_split_move_insn): Pass INSN through to mips_split_move.
3779 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
3781 PR rtl-optimization/89676
3782 * lra-constraints.c (curr_insn_transform): Do match reload for
3783 early clobbers even if the match was successful.
3785 2019-03-22 Jakub Jelinek <jakub@redhat.com>
3788 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
3790 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
3792 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
3794 2019-03-22 Jakub Jelinek <jakub@redhat.com>
3796 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
3797 <avx512>_fmsub_<mode>_mask3<round_name>,
3798 <avx512>_fnmadd_<mode>_mask3<round_name>,
3799 <avx512>_fnmsub_<mode>_mask3<round_name>,
3800 avx512f_vmfmadd_<mode>_mask3<round_name>,
3801 avx512f_vmfmsub_<mode>_mask3<round_name>,
3802 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
3803 instead of register_operand and %v instead of v for match_operand 1.
3804 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
3805 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
3806 <round_nimm_predicate> instead of register_operand and %v instead of v
3807 for match_operand 1.
3809 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
3810 <avx512>_fmadd_<mode>_mask3<round_name>,
3811 <avx512>_fmsub_<mode>_mask<round_name>,
3812 <avx512>_fmsub_<mode>_mask3<round_name>,
3813 <avx512>_fnmadd_<mode>_mask<round_name>,
3814 <avx512>_fnmadd_<mode>_mask3<round_name>,
3815 <avx512>_fnmsub_<mode>_mask<round_name>,
3816 <avx512>_fnmsub_<mode>_mask3<round_name>,
3817 <avx512>_fmaddsub_<mode>_mask<round_name>,
3818 <avx512>_fmaddsub_<mode>_mask3<round_name>,
3819 <avx512>_fmsubadd_<mode>_mask<round_name>,
3820 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
3821 <round_nimm_predicate> instead of nonimmediate_operand.
3822 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
3823 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
3824 Use register_operand instead of <round_nimm_predicate> for the
3825 operand that needs to match output.
3826 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
3827 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
3828 Likewise. Formatting fixes.
3831 * config/i386/i386.c (enum ix86_builtins): Remove
3832 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
3833 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
3834 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
3835 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
3836 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
3837 __builtin_ia32_vfmsubss3_mask3): New builtins.
3838 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
3839 avx512f_vmfmadd_<mode>_mask3<round_name>,
3840 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
3841 *avx512f_vmfmsub_<mode>_mask<round_name>,
3842 avx512f_vmfmsub_<mode>_mask3<round_name>,
3843 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
3844 *avx512f_vmfnmadd_<mode>_mask<round_name>,
3845 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
3846 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
3847 *avx512f_vmfnmsub_<mode>_mask<round_name>,
3848 avx512f_vmfnmsub_<mode>_mask3<round_name>,
3849 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
3850 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
3851 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
3852 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
3853 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
3854 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
3855 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
3856 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
3857 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
3858 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
3859 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
3860 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
3861 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
3862 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
3863 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
3864 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
3865 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
3866 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
3867 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
3868 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
3869 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
3870 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
3872 2019-03-21 Martin Sebor <msebor@redhat.com>
3874 PR tree-optimization/89350
3875 * builtins.c (compute_objsize): Also ignore offsets whose upper
3877 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
3878 (builtin_memref::builtin_memref): Initialize new member.
3879 Allow EXPR to be null.
3880 (builtin_memref::extend_offset_range): Replace local with a member.
3881 Avoid assuming pointer offsets are unsigned.
3882 (builtin_memref::set_base_and_offset): Determine base object
3883 before computing offset range.
3884 (builtin_access::builtin_access): Handle memset.
3885 (builtin_access::generic_overlap): Replace local with a member.
3886 (builtin_access::strcat_overlap): Same.
3887 (builtin_access::overlap): Same.
3888 (maybe_diag_overlap): Same.
3889 (maybe_diag_access_bounds): Same.
3890 (wrestrict_dom_walker::check_call): Handle memset.
3891 (check_bounds_or_overlap): Same.
3893 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
3894 Jakub Jelinek <jakub@redhat.com>
3897 * tree.c (fld_type_variant, fld_incomplete_type_of,
3898 fld_process_array_type): Call fld->pset.add and don't call
3899 add_tree_to_fld_list if it returns true.
3900 (free_lang_data_in_type): Similarly with self-recursive call. Purge
3901 non-marked types from TYPE_NEXT_VARIANT list.
3902 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
3904 2019-03-21 Jakub Jelinek <jakub@redhat.com>
3906 * hash-table.h (hash_table): Add Lazy template parameter defaulted
3907 to false, if true, don't alloc_entries during construction, but defer
3908 it to the first method that needs m_entries allocated.
3909 (hash_table::hash_table, hash_table::~hash_table,
3910 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
3911 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
3912 hash_table::clear_slot, hash_table::traverse_noresize,
3913 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
3914 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
3916 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
3917 NO_INSERT instead of find_with_hash.
3918 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
3919 hash_set::m_table): Add Lazy to template params of hash_table.
3920 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
3921 * attribs.c (test_attribute_exclusions): Likewise.
3922 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
3923 hash_set. Add tests for hash_set with Lazy = true.
3925 2019-03-21 Richard Biener <rguenther@suse.de>
3927 PR tree-optimization/89779
3928 * tree.c (tree_nop_conversion): Consolidate and fix defensive
3929 checks with respect to released SSA names now having error_mark_node
3931 * fold-const.c (operand_equal_p): Likewise.
3933 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
3936 * config/s390/s390.c (global_not_special_regno_p): Move to make it
3938 (s390_optimize_register_info): Use global_not_special_regno_p to
3939 check for global regs.
3941 2019-03-20 Jakub Jelinek <jakub@redhat.com>
3944 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
3945 update this_alternative nor this_alternative_set.
3947 2019-03-19 Jim Wilson <jimw@sifive.com>
3950 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
3951 align, size, offset. Use them to handle a BLKmode reference. Update
3953 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
3955 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3957 PR rtl-optimization/89768
3958 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
3960 (unroll_loop_runtime_iterations): Likewise.
3962 2019-03-19 Martin Sebor <msebor@redhat.com>
3964 PR tree-optimization/89644
3965 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
3966 rather than endptr as an indicator of nul-termination.
3968 PR tree-optimization/89644
3969 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
3970 arrays in determining sequence sizes in strncpy and stpncpy.
3972 2019-03-19 Martin Liska <mliska@suse.cz>
3975 * predict.c (combine_predictions_for_bb): Empty likely_edges and
3976 unlikely_edges if there's an edge that belongs to both these sets.
3978 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
3981 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
3982 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
3983 go via a stack temporary.
3985 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3988 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
3989 instead of gen_rtx_SUBREG.
3990 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
3992 2019-03-19 Richard Biener <rguenther@suse.de>
3995 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
3997 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
4001 * tree.c (free_lang_data_in_decl): Do not free context of C++
4004 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4007 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
4008 subs for the first alternative except when operands[3] is 1.
4011 * gimplify.c (gimplify_asm_expr): For output argument with
4012 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
4015 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
4017 PR rtl-optimization/89753
4018 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
4019 explicit unrolling factor even more robust.
4021 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4024 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
4025 compensation use x2 += 1 instead of x2 -= -1 and when honoring
4026 signed zeros, do another copysign after the compensation.
4028 2019-03-18 Martin Sebor <msebor@redhat.com>
4030 PR tree-optimization/89720
4031 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
4032 more conservatively, the same as anti-range.
4034 2019-03-18 Richard Biener <rguenther@suse.de>
4037 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
4038 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
4039 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
4040 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
4042 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
4044 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
4045 Extend queue to 1024 entries.
4046 Add "consumed" field.
4047 (gomp_print_output): Remove print_index parameter.
4048 Add final parameter.
4049 Change limit to unsigned.
4050 Use consumed field to implement circular buffer.
4051 Detect interrupted print in final pass.
4052 Flush output at the end.
4053 (run): Update gomp_print_output usage.
4054 (main): Initialize kernargs->output_data.consumed.
4056 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
4058 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
4059 calculation of the minimum number of scalar iterations for
4060 fully-predicated loops.
4062 2019-03-18 Martin Jambor <mjambor@suse.cz>
4064 PR tree-optimization/89546
4065 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
4066 any propagation to its children took place.
4068 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
4071 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
4072 parameter, and make use of it.
4073 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
4075 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4077 * config/arc/arc.opt (mcode-density-frame): Get the inital value
4078 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
4079 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
4080 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
4081 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
4082 match what the ops is doing.
4083 (push_multi_fp_blink): Likewise.
4084 * config/arc/arc.c (arc_override_options): Enable enter/leave when
4085 compiling for size and elf target.
4086 (arc_save_callee_enter): Adjust note to match what enter/leave
4089 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4091 * config/arc/arc.md (tst_movb): Fix constraint.
4093 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4095 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
4097 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4099 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
4100 * config/arc/arc.c (arc_conditional_register_usage): Remove all
4101 reg_alloc_order references.
4102 (size_alloc_order): Define.
4103 (arc_adjust_reg_alloc_order): New function.
4104 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
4106 (ADJUST_REG_ALLOC_ORDER): Define.
4107 (HONOR_REG_ALLOC_ORDER): Likewise.
4109 2019-03-18 Richard Biener <rguenther@suse.de>
4112 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
4113 loads and stores a bit more.
4115 2019-03-18 Richard Biener <rguenther@suse.de>
4118 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
4119 load pessimization to stores as well.
4121 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
4124 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
4125 successor, use NULL as its av set.
4127 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
4129 PR rtl-optimization/89721
4130 * lra-constraints (invariant_p): Return false if side_effects_p holds.
4132 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
4135 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4136 When handling vec_extract, use modular arithmetic to allow
4137 constant selectors greater than vector length.
4138 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
4139 V1TImode vectors to have constant selector values greater than 0.
4140 Use modular arithmetic to compute vector index.
4141 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
4142 index for in-memory vectors. Correct code generation for
4143 in-register vectors.
4144 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
4147 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
4151 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
4154 2019-03-15 Jakub Jelinek <jakub@redhat.com>
4157 * tree.c (inchash::add_expr): Strip any location wrappers.
4158 * fold-const.c (operand_equal_p): Move stripping of location wrapper
4159 after hash verification.
4162 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
4163 SIGN_EXTEND and ZERO_EXTEND.
4165 2019-03-14 Jason Merrill <jason@redhat.com>
4166 Jakub Jelinek <jakub@redhat.com>
4168 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
4169 than if is_empty (*slot).
4170 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
4171 existing elt and for elt removal.
4172 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
4173 of already removed elt.
4175 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
4178 * config/i386/i386.c (remove_partial_avx_dependency): Handle
4181 2019-03-14 Martin Liska <mliska@suse.cz>
4184 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
4186 2019-03-14 Richard Biener <rguenther@suse.de>
4189 * config/i386/i386.c (make_resolver_func): Properly set
4190 DECL_CONTEXT on the RESULT_DECL.
4191 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
4193 2019-03-14 Richard Biener <rguenther@suse.de>
4195 * gimple-pretty-print.c: Include cfgloop.h.
4196 (dump_gimple_phi): Adjust.
4197 (dump_gimple_bb_header): Dump loop header for GIMPLE.
4198 (pp_cfg_jump): Adjust.
4199 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
4200 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
4201 (lower_phi_internal_fn): Remove.
4202 (verify_gimple_call): Remove IFN_PHI special-casing.
4203 (dump_function_to_file): Dump IL state.
4204 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
4205 done to deal with PHI nodes being present in non-SSA state.
4207 2019-03-14 Jakub Jelinek <jakub@redhat.com>
4210 * multiple_target.c (create_dispatcher_calls): Change
4211 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
4212 In the node->iterate_referring loop, push *ref rather than ref, call
4213 ref->remove_reference () and always pass 0 to iterate_referring.
4215 PR rtl-optimization/89679
4216 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
4217 would contain a paradoxical SUBREG.
4219 2019-03-14 Richard Biener <rguenther@suse.de>
4221 PR tree-optimization/89710
4222 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
4225 2019-03-14 Martin Liska <mliska@suse.cz>
4227 * coverage.c (coverage_begin_function): Stream also
4229 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
4230 documentation about function declaration location.
4231 * gcov-dump.c (tag_function): Print whole range
4232 of function declaration.
4233 * gcov.c (struct function_info): Add end_column field.
4234 (function_info::function_info): Initialize it.
4235 (output_json_intermediate_file): Output {start,end}_column
4237 (read_graph_file): Read end_column.
4239 2019-03-14 Richard Biener <rguenther@suse.de>
4242 * fold-const.c (operand_equal_p): For INDIRECT_REF check
4243 that the access types are similar.
4245 2019-03-14 Jakub Jelinek <jakub@redhat.com>
4247 PR tree-optimization/89703
4248 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
4249 aren't compatible also with builtin_decl_explicit. Check pure
4250 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
4251 and BUILT_IN_STPNCPY{,_CHK}.
4253 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
4256 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
4257 addr32 prefix to VSIB address for X32.
4258 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
4260 (*avx512pf_gatherpf<mode>df_mask): Likewise.
4261 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
4262 (*avx512pf_scatterpf<mode>df_mask): Likewise.
4263 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
4264 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
4265 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
4266 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
4267 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
4268 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
4269 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
4270 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
4271 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
4272 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
4273 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
4274 (*avx512f_scatterdi<mode>): Likewise.
4276 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
4279 * lra-constraints.c (inherit_in_ebb): Update
4280 potential_reload_hard_regs along with live_hard_regs.
4282 2019-03-13 Jakub Jelinek <jakub@redhat.com>
4285 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
4287 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
4289 2019-03-13 Martin Sebor <msebor@redhat.com>
4291 PR tree-optimization/89662
4292 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
4295 2019-03-13 Richard Biener <rguenther@suse.de>
4298 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
4299 throw FP expressions at tree-affine.
4301 2019-03-14 Richard Biener <rguenther@suse.de>
4303 * tree-pretty-print.c (dump_generic_node): For -gimple properly
4304 dump negative integer constants using _Literal (type) -num.
4306 2019-03-13 Jakub Jelinek <jakub@redhat.com>
4308 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
4309 nonlocal_value member.
4312 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
4313 (ipa_simd_modify_function_body): Handle PHIs.
4315 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4317 * config/s390/s390.c (s390_option_override_internal): Use more
4318 aggressive inlining parameters.
4320 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4322 * config/s390/3906.md: New file.
4323 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
4324 (LONGRUNNING_THRESHOLD): Remove.
4325 (MAX_SCHED_MIX_SCORE): Decrease.
4326 (MAX_SCHED_MIX_DISTANCE): Decrease.
4327 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
4328 (struct s390_sched_state): New struct to hold scheduling state.
4329 (S390_SCHED_STATE_NORMAL): Remove.
4330 (S390_SCHED_STATE_CRACKED): Remove.
4331 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
4332 (s390_get_sched_attrmask): Use new attribute.
4333 (s390_get_unit_mask): Use new units.
4334 (s390_is_fpd): New function.
4335 (s390_is_fxd): New function.
4336 (s390_is_longrunning): New function.
4337 (s390_sched_score): Use new functions.
4338 (s390_sched_reorder): Likewise.
4339 (s390_sched_variable_issue): Rework and use new functions.
4340 (s390_sched_init): Use new functions.
4341 * config/s390/s390.h (s390_tune_attr): Add z14.
4342 * config/s390/s390.md: Add z14.
4344 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4346 * config/s390/2964.md: Update pipeline description.
4347 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
4348 (LONGRUNNING_THRESHOLD): Remove.
4349 (LATENCY_FACTOR): Remove.
4350 (s390_get_unit_mask): Add unit.
4351 (s390_sched_score): Use fxd/fpd.
4352 (s390_sched_variable_issue): Use fxd/fpd.
4354 2019-03-12 Martin Liska <mliska@suse.cz>
4356 * config/i386/i386.c: Reword an error message.
4358 2019-03-12 Martin Jambor <mjambor@suse.cz>
4360 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
4361 terminate with newline.
4363 2019-03-12 Jakub Jelinek <jakub@redhat.com>
4366 * config/s390/s390.md (tabort): Use %wd instead of
4367 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
4368 letters and periods.
4369 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
4370 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
4374 * builtins.c (expand_builtin_int_roundingfn,
4375 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
4376 gcc_unreachable if validate_arglist fails.
4378 2019-03-12 Richard Biener <rguenther@suse.de>
4380 PR tree-optimization/89664
4381 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
4382 free the occurance tree after the early out.
4384 2019-03-11 Jakub Jelinek <jakub@redhat.com>
4388 * vr-values.c (vr_values::update_value_range): If
4389 old_vr->varying_p (), don't update it, make new_vr also VARYING
4392 2019-03-11 Martin Liska <mliska@suse.cz>
4394 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4395 Fix double string quoting.
4397 2019-03-11 Martin Liska <mliska@suse.cz>
4399 * collect-utils.c (collect_wait): Wrap apostrophes
4400 in gcc internal format with %'.
4401 * collect2.c (main): Likewise.
4402 (scan_prog_file): Likewise.
4403 (scan_libraries): Likewise.
4404 * config/i386/i386.c (ix86_expand_call): Likewise.
4405 (ix86_handle_interrupt_attribute): Likewise.
4406 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
4407 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
4408 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
4409 * lto-wrapper.c (find_crtoffloadtable): Likewise.
4410 * symtab.c (symtab_node::verify_base): Likewise.
4411 * tree-cfg.c (verify_gimple_label): Likewise.
4412 * tree.c (verify_type_variant): Likewise.
4414 2019-03-11 Martin Liska <mliska@suse.cz>
4416 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
4417 in a string format message and fix GNU coding style.
4418 (expand_builtin_set_thread_pointer): Likewise.
4419 * common/config/aarch64/aarch64-common.c
4420 (aarch64_rewrite_selected_cpu): Likewise.
4421 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
4422 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
4423 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
4424 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
4425 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
4426 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
4427 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
4428 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
4429 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
4430 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
4432 * common/config/riscv/riscv-common.c
4433 (riscv_subset_list::parsing_subset_version): Likewise.
4434 (riscv_subset_list::parse_std_ext): Likewise.
4435 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
4436 (riscv_subset_list::parse): Likewise.
4437 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
4438 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
4439 (aarch64_override_options_internal): Likewise.
4440 (aarch64_validate_mcpu): Likewise.
4441 (aarch64_validate_march): Likewise.
4442 (aarch64_validate_mtune): Likewise.
4443 (aarch64_override_options): Likewise.
4444 * config/alpha/alpha.c (alpha_option_override): Likewise.
4445 * config/arc/arc.c (arc_init): Likewise.
4446 (parse_mrgf_banked_regs_option): Likewise.
4447 (arc_override_options): Likewise.
4448 (arc_expand_builtin_aligned): Likewise.
4449 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
4450 (arm_expand_builtin): Likewise.
4451 * config/arm/arm.c (arm_option_check_internal): Likewise.
4452 (arm_configure_build_target): Likewise.
4453 (arm_option_override): Likewise.
4454 (arm_options_perform_arch_sanity_checks): Likewise.
4455 (arm_handle_cmse_nonsecure_entry): Likewise.
4456 (arm_handle_cmse_nonsecure_call): Likewise.
4457 (arm_tls_referenced_p): Likewise.
4458 (thumb1_expand_prologue): Likewise.
4459 * config/avr/avr.c (avr_option_override): Likewise.
4460 * config/bfin/bfin.c (bfin_option_override): Likewise.
4461 * config/c6x/c6x.c (c6x_option_override): Likewise.
4462 * config/cr16/cr16.c (cr16_override_options): Likewise.
4463 * config/cris/cris.c (cris_option_override): Likewise.
4464 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
4465 * config/darwin-c.c (macosx_version_as_macro): Likewise.
4466 * config/darwin.c (darwin_override_options): Likewise.
4467 * config/frv/frv.c (frv_expand_builtin): Likewise.
4468 * config/h8300/h8300.c (h8300_option_override): Likewise.
4469 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
4470 (ix86_option_override_internal): Likewise.
4471 (warn_once_call_ms2sysv_xlogues): Likewise.
4472 (ix86_expand_prologue): Likewise.
4473 (split_stack_prologue_scratch_regno): Likewise.
4474 (ix86_warn_parameter_passing_abi): Likewise.
4475 * config/ia64/ia64.c (fix_range): Likewise.
4476 * config/m68k/m68k.c (m68k_option_override): Likewise.
4477 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
4478 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
4479 (mips_set_compression_mode): Likewise.
4480 * config/mmix/mmix.c (mmix_option_override): Likewise.
4481 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
4482 * config/msp430/msp430.c (msp430_option_override): Likewise.
4483 * config/nds32/nds32.c (nds32_option_override): Likewise.
4484 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
4485 (nios2_option_override): Likewise.
4486 (nios2_expand_custom_builtin): Likewise.
4487 * config/nvptx/mkoffload.c (main): Likewise.
4488 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
4489 * config/pa/pa.c (fix_range): Likewise.
4490 (pa_option_override): Likewise.
4491 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
4492 (riscv_option_override): Likewise.
4493 * config/rl78/rl78.c (rl78_option_override): Likewise.
4494 * config/rs6000/aix61.h: Likewise.
4495 * config/rs6000/aix71.h: Likewise.
4496 * config/rs6000/aix72.h: Likewise.
4497 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
4498 * config/rs6000/freebsd64.h: Likewise.
4499 * config/rs6000/linux64.h: Likewise.
4500 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4501 (rs6000_expand_zeroop_builtin): Likewise.
4502 (rs6000_expand_mtfsb_builtin): Likewise.
4503 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
4504 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
4505 (rs6000_invalid_builtin): Likewise.
4506 (rs6000_expand_split_stack_prologue): Likewise.
4507 * config/rs6000/rtems.h: Likewise.
4508 * config/rx/rx.c (valid_psw_flag): Likewise.
4509 (rx_expand_builtin): Likewise.
4510 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
4511 * config/s390/s390.c (s390_expand_builtin): Likewise.
4512 (s390_function_profiler): Likewise.
4513 (s390_option_override_internal): Likewise.
4514 (s390_option_override): Likewise.
4515 * config/sh/sh.c (sh_option_override): Likewise.
4516 (sh_builtin_saveregs): Likewise.
4517 (sh_fix_range): Likewise.
4518 * config/sh/vxworks.h: Likewise.
4519 * config/sparc/sparc.c (sparc_option_override): Likewise.
4520 * config/spu/spu.c (spu_option_override): Likewise.
4521 (fix_range): Likewise.
4522 * config/visium/visium.c (visium_option_override): Likewise.
4523 (visium_handle_interrupt_attr): Likewise.
4524 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
4525 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
4526 (dbg_cnt_process_opt): Likewise.
4527 * dwarf2out.c (output_dwarf_version): Likewise.
4528 * except.c (expand_eh_return): Likewise.
4529 * gcc.c (defined): Likewise.
4530 (driver_handle_option): Likewise.
4531 (process_command): Likewise.
4532 (compare_files): Likewise.
4533 (driver::prepare_infiles): Likewise.
4534 (driver::do_spec_on_infiles): Likewise.
4535 (driver::maybe_run_linker): Likewise.
4536 * omp-offload.c (oacc_parse_default_dims): Likewise.
4537 * opts-global.c (handle_common_deferred_options): Likewise.
4538 * opts.c (parse_sanitizer_options): Likewise.
4539 (common_handle_option): Likewise.
4540 (enable_warning_as_error): Likewise.
4541 * passes.c (enable_disable_pass): Likewise.
4542 * plugin.c (parse_plugin_arg_opt): Likewise.
4543 (default_plugin_dir_name): Likewise.
4544 * targhooks.c (default_expand_builtin_saveregs): Likewise.
4545 (default_pch_valid_p): Likewise.
4546 * toplev.c (init_asm_output): Likewise.
4547 (process_options): Likewise.
4548 (toplev::run_self_tests): Likewise.
4549 * tree-cfg.c (verify_gimple_call): Likewise.
4550 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
4551 (tree_inlinable_function_p): Likewise.
4552 * var-tracking.c (vt_find_locations): Likewise.
4554 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
4556 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
4557 only on the else branch.
4559 2019-03-11 Martin Liska <mliska@suse.cz>
4561 * gcov.c (output_intermediate_json_line): Print function
4563 (output_json_intermediate_file): Add new argument.
4564 * doc/gcov.texi: Document the change.
4566 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
4568 PR rtl-optimization/89588
4569 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
4570 explicit unrolling factor more robust.
4572 2019-03-11 Richard Biener <rguenther@suse.de>
4574 PR tree-optimization/89649
4575 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
4576 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
4577 on the prolog and epilog loops.
4578 (vect_loop_versioning): Return copy of loop.
4579 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
4580 on the non-vectorized version of the loop.
4582 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
4585 * config/i386/sse.md (*vec_extractv2di_0_sse):
4586 Add (=r,x) alternative and corresponding splitter.
4588 2019-03-10 Martin Jambor <mjambor@suse.cz>
4590 PR tree-optimization/85762
4591 PR tree-optimization/87008
4592 PR tree-optimization/85459
4593 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
4594 it points to if there is a type changing MEM_REF. Adjust all callers.
4595 (build_accesses_from_assign): Disable total scalarization if
4596 contains_vce_or_bfcref_p returns true through the new parameter, for
4599 2019-03-09 Jakub Jelinek <jakub@redhat.com>
4602 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
4603 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
4606 * common.opt (fdiagnostics-show-labels,
4607 fdiagnostics-show-line-numbers, fdiagnostics-format=,
4608 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
4609 gas-locview-support, ginline-points, ginternal-reset-location-views):
4610 Terminate description text with a dot.
4611 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
4612 * config/mcore/mcore.opt (m210, m340): Likewise.
4613 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
4614 mnops=): Start description text with a capital letter.
4615 * config/arc/arc.opt (msize-level=): Likewise.
4616 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
4617 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
4619 * config/ft32/ft32.opt (msim): Likewise.
4620 (mft32b, mcompress): Likewise. Terminate description text with a dot.
4621 (mnodiv, mnopm): Terminate description text with a dot.
4622 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
4624 * config/i386/i386.opt (prefer_vector_width, instrument_return):
4626 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
4629 PR rtl-optimization/89634
4630 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
4631 are modified in BB_END (e->src) instruction.
4633 2019-03-08 David Malcolm <dmalcolm@redhat.com>
4636 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
4637 messages more amenable to translation, and improve wording.
4639 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
4641 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
4642 ud- and du-chains between phases.
4644 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
4647 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
4648 instead of POLY_INT_CST.
4650 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4652 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
4655 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
4660 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
4661 (_mm_storeu_si64): Ditto.
4663 2019-03-08 Martin Liska <mliska@suse.cz>
4666 * config/i386/i386.c (ix86_option_override_internal): Disable
4667 jump tables when retpolines are used.
4669 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
4672 * ipa-split.c (execute_split_functions): Do not split
4673 'noinline' or 'section' function.
4675 2019-03-08 Jakub Jelinek <jakub@redhat.com>
4678 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
4679 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
4680 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
4683 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
4684 from diagnostics. Formatting fixes.
4687 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
4688 warn_odr diagnostics.
4691 * lra-constraints.c (process_alt_operands): Avoid one space before
4692 " at the end of line and another after " on another line in a string
4694 * attribs.c (handle_dll_attribute): Likewise.
4695 * config/avr/avr-devices.c (avr_texinfo): Likewise.
4697 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
4698 warning_at or inform messages in G_() if there is no ?:.
4700 PR tree-optimization/89550
4701 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
4702 returned true. Formatting fixes.
4703 (expand_builtin_strnlen): Formatting fixes.
4704 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
4705 if warning_at returned true.
4706 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
4708 2019-03-08 Richard Biener <rguenther@suse.de>
4711 * cfgloop.h (struct loop): Add owned_clique field.
4712 * cfgloopmanip.c (copy_loop_info): Copy it.
4713 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
4715 * tree-inline.c (copy_loops): Remap owned_clique.
4716 * lto-streamer-in.c (input_cfg): Stream owned_clique.
4717 * lto-streamer-out.c (output_cfg): Likewise.
4719 2019-03-08 Jakub Jelinek <jakub@redhat.com>
4722 * config/darwin.c: Include intl.h.
4723 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
4724 composing the message out of two separate parts.
4726 2019-03-07 Jakub Jelinek <jakub@redhat.com>
4729 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
4730 doesn't start with a capital letter and doesn't end with a dot.
4731 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
4732 with a capital letter.
4733 (ix86_mangle_function_version_assembler_name): Likewise.
4734 (ix86_generate_version_dispatcher_body): Likewise.
4735 (fold_builtin_cpu): Likewise.
4736 (get_builtin_code_for_version): Likewise. Remove extraneous space.
4737 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
4738 translators, wrap full type name in %qs.
4740 PR translation/79999
4741 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
4742 depend clause with source (or sink) modifier.
4743 * omp-expand.c (expand_omp_ordered_sink): Likewise.
4746 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
4747 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
4748 (avx512f_load<mode>_mask): New define_expand.
4749 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
4750 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
4751 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
4752 __builtin_ia32_movess_mask): New builtins.
4753 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
4754 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
4755 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
4756 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
4758 2019-03-07 Martin Jambor <mjambor@suse.cz>
4761 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
4762 for extern inline functions.
4764 2019-03-07 Martin Jambor <mjambor@suse.cz>
4767 * cgraph.h (cgraph_node): New inline method former_thunk_p.
4768 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
4769 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
4770 have multiple callees. At the end check if declarations match as
4771 opposed to cgraph_nodes.
4773 2019-03-07 Martin Liska <mliska@suse.cz>
4775 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
4776 which is equivalent to searching for this in clones chain.
4777 * symtab.c (symtab_node::verify_base): Similarly compare ASM
4778 names with a neighbour and special case first node in a chain.
4780 2019-01-25 Jason Merrill <jason@redhat.com>
4782 PR c++/80916 - spurious "static but not defined" warning.
4783 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
4784 for an internal symbol with DECL_EXTERNAL.
4786 2019-04-07 Richard Biener <rguenther@suse.de>
4789 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
4790 * tree-inline.c (copy_loops): Simplify.
4792 2019-03-07 Martin Liska <mliska@suse.cz>
4794 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
4796 2019-03-07 Richard Biener <rguenther@suse.de>
4798 PR tree-optimization/89595
4799 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
4800 stmt iterator as reference, take boolean output parameter to
4801 indicate whether the stmt was removed and thus the iterator
4803 (dom_opt_dom_walker::before_dom_children): Re-iterate over
4804 stmts created by folding.
4806 2019-03-07 Jakub Jelinek <jakub@redhat.com>
4809 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
4812 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
4814 PR rtl-optimization/88845
4815 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
4817 * lra.c (remove_scratches_1): New function.
4818 (remove_scratches): Use it.
4819 (lra_emit_move): Likewise.
4821 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
4823 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
4824 unaligned_access variable.
4825 * config/arc/arc.c (arc_override_options): Set unaligned access
4826 default on for HS CPUs.
4827 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
4829 2019-03-06 Martin Liska <mliska@suse.cz>
4831 PR gcov-profile/89577
4832 * doc/gcov.texi: Prefer to use --coverage.
4833 * doc/sourcebuild.texi: Likewise.
4835 2019-03-02 Jason Merrill <jason@redhat.com>
4837 PR c++/86485 - -Wmaybe-unused with empty class ?:
4838 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
4840 2019-03-05 Jakub Jelinek <jakub@redhat.com>
4843 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
4847 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
4848 exactly one argument.
4850 2019-03-05 Jakub Jelinek <jakub@redhat.com>
4851 Richard Sandiford <richard.sandiford@arm.com>
4853 PR tree-optimization/89570
4854 * match.pd (vec_cond into cond_op simplification): Don't use
4855 get_conditional_internal_fn, use as_internal_fn (cond_op).
4857 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
4860 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
4861 to decide when to split off a non-zero offset from a symbol.
4862 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
4863 in function symbols.
4865 2019-03-05 Richard Biener <rguenther@suse.de>
4867 PR tree-optimization/89594
4868 * tree-if-conv.c (pass_if_conversion::execute): Handle
4869 case where .LOOP_VECTORIZED_FUNCTION was removed.
4871 2019-03-05 Jakub Jelinek <jakub@redhat.com>
4874 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
4875 instead alloca it only when needed with the needed size.
4877 PR tree-optimization/89570
4878 * match.pd (vec_cond into cond_op simplification): Guard with
4879 vectorized_internal_fn_supported_p test and #if GIMPLE.
4881 PR tree-optimization/89566
4882 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
4883 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
4884 Punt if get_user_idx_format succeeds, but idx_format argument is
4885 not provided or doesn't have pointer type, or if idx_args is above
4886 number of provided arguments.
4888 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
4890 PR tree-optimization/89437
4891 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
4893 2019-03-04 Richard Biener <rguenther@suse.de>
4896 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
4899 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
4901 PR tree-optimization/89487
4902 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
4903 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
4904 (distribute_loop): Don't do runtime alias check if there is non-
4905 addressable data reference.
4906 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
4907 is a register variable.
4909 2019-03-02 Jakub Jelinek <jakub@redhat.com>
4912 * config/arm/arm.md (cmpsi2_addneg): Use
4913 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
4914 If operands[2] is 0 or INT_MIN, force use of subs.
4915 (*compare_scc splitter): Use gen_int_mode.
4916 (*negscc): Likewise.
4917 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
4919 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
4920 Monk Chiang <sh.chiang04@gmail.com>
4922 * common/config/riscv/riscv-common.c: Include sstream.
4923 (riscv_subset_list::to_string): New.
4924 (riscv_arch_str): Likewise.
4925 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
4927 * config/riscv/riscv-protos.h (riscv_arch_str): New.
4928 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
4929 (riscv_emit_attribute): New.
4930 (riscv_file_start): Emit attribute if needed.
4931 (riscv_option_override): Init riscv_emit_attribute_p.
4932 * config/riscv/riscv.opt (mriscv-attribute): New option.
4933 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
4935 * doc/install.texi: Document --with-riscv-attribute.
4936 * doc/invoke.texi: Document -mriscv-attribute.
4938 * common/config/riscv/riscv-common.c:
4939 Include config/riscv/riscv-protos.h.
4940 (INCLUDE_STRING): Defined.
4941 (RISCV_DONT_CARE_VERSION): Defined.
4942 (riscv_subset_t): Declare.
4943 (riscv_subset_t::riscv_subset_t): New.
4944 (riscv_subset_list): Declare.
4945 (riscv_subset_list::riscv_subset_list): New.
4946 (riscv_subset_list::~riscv_subset_list): Likewise.
4947 (riscv_subset_list::parsing_subset_version): Likewise.
4948 (riscv_subset_list::parse_std_ext): Likewise.
4949 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
4950 (riscv_subset_list::add): Likewise.
4951 (riscv_subset_list::lookup): Likewise.
4952 (riscv_subset_list::xlen): Likewise.
4953 (riscv_subset_list::parse): Likewise.
4954 (riscv_supported_std_ext): Likewise.
4955 (current_subset_list): Likewise.
4956 (riscv_parse_arch_string): Using riscv_subset_list::parse to
4959 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
4961 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
4962 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
4963 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
4965 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
4967 PR rtl-optimization/85899
4968 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
4969 fallthru edges leading to the exit block.
4971 2019-03-01 Tamar Christina <tamar.christina@arm.com>
4974 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
4975 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
4977 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
4979 PR tree-optimization/89535
4980 * tree-vect-stmts.c (vectorizable_call): Record the vector types
4981 for each operand. Calculate the fallback choice for mask operands
4982 and pass it to vect_get_vec_def_for_operand.
4984 2019-03-01 Richard Biener <rguenther@suse.de>
4987 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
4988 get virtual operands.
4989 (get_expr_operands): Handle CONST_DECL like other decls.
4991 2019-03-01 Jakub Jelinek <jakub@redhat.com>
4994 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
4995 on DECL_P and EXPR_P.
4997 2019-03-01 Richard Biener <rguenther@suse.de>
5000 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
5001 argument, defaulted to zero.
5002 * passes.c (execute_function_todo): Pass down SSA update flags
5003 to cleanup_tree_cfg.
5004 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
5005 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
5007 (cleanup_tree_cfg): Get and pass down SSA update flags.
5009 2019-03-01 Jakub Jelinek <jakub@redhat.com>
5012 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
5013 early_lto_debug argument.
5015 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
5017 PR tree-optimization/89536
5018 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
5019 only whether bit #0 of the value is 0 instead of the entire value.
5021 2019-02-28 Marek Polacek <polacek@redhat.com>
5023 PR c++/87068 - missing diagnostic with fallthrough statement.
5024 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
5025 at the end of a seq, save its location to walk_stmt_info.
5026 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
5029 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
5032 * tree.c (find_atomic_core_type): Move ahead in file.
5033 (check_base_type): Correctly compare alignments of atomic types.
5035 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
5038 * config/i386/i386.c (get_builtin_code_for_version): Identify
5039 Westmere from PCLMUL, instead of AES.
5041 2019-02-28 Jakub Jelinek <jakub@redhat.com>
5044 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
5045 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
5048 2019-02-28 Tamar Christina <tamar.christina@arm.com>
5051 * config/aarch64/aarch64-option-extensions.def: Document it.
5052 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
5055 2019-02-28 Jakub Jelinek <jakub@redhat.com>
5058 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
5059 builtins if they don't have a single scalar floating point argument.
5062 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
5064 PR rtl-optimization/89490
5065 * varasm.c (get_block_for_section): Bail out for mergeable sections.
5066 (default_use_anchors_for_symbol_p, output_object_block): Assert the
5067 block section is not mergeable.
5069 2019-02-27 Jakub Jelinek <jakub@redhat.com>
5072 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
5073 old define_insn to ...
5074 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
5075 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
5076 Rename old define_insn to ...
5077 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
5078 (thumb2_casesi_internal_pic): New define_expand. Rename old
5080 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
5081 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
5082 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
5084 2019-02-27 Richard Biener <rguenther@suse.de>
5087 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
5089 2019-02-27 Richard Biener <rguenther@suse.de>
5091 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
5094 2019-02-27 Richard Biener <rguenther@suse.de>
5097 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
5098 parameter, prefix section name with .gnu.debuglto_ if true.
5099 (dwarf2out_finish): Pass false to output_comdat_type_unit.
5100 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
5102 2019-02-27 Richard Biener <rguenther@suse.de>
5105 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
5106 rather than on use_debug_types, doing what output_die does.
5107 (value_format): Likewise.
5109 2019-02-27 Martin Jambor <mjambor@suse.cz>
5110 Martin Sebor <msebor@redhat.com>
5112 * doc/invoke.texi (Warning Options): Reword description of
5113 -Wno-absolute-value.
5115 2019-02-27 Jakub Jelinek <jakub@redhat.com>
5117 PR tree-optimization/89280
5118 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
5119 builtin_setjmp_setup_bb): New functions.
5120 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
5121 When visiting __builtin_setjmp_setup block, queue in special
5122 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
5123 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
5124 from visited after the loop if they don't have any visited successor
5127 2018-02-26 Steve Ellcey <sellcey@marvell.com>
5129 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
5131 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
5133 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5136 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
5137 with types other than sizetype/ssizetype.
5139 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
5141 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
5142 (enum sparc_processor_type): ...this.
5143 (enum sparc_code_model_type): New enumeration type.
5144 (enum sparc_memory_model_type): Tweak comments.
5145 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
5147 (mcmodel): Use sparc_code_model enumeration and variable.
5148 (sparc_code_model): New enumeration.
5149 (mdebug): Add Undocumented marker.
5150 * config/sparc/sparc.h (enum cmodel): Delete.
5151 (sparc_cmodel): Likewise.
5152 (TARGET_CM_MEDLOW): Adjust to above renaming.
5153 (TARGET_CM_MEDMID): Likewise.
5154 (TARGET_CM_MEDANY): Likewise.
5155 (TARGET_CM_EMBMEDANY): Likewise.
5156 * config/sparc/sparc.c (sparc_cmodel): Delete.
5157 (sparc_option_override): Remove string/value mapping support for the
5158 code model. Move code and memory model support to after the handling
5159 of target flags. Do private machine setup last.
5160 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
5161 (sparc_legitimize_reload_address): Likewise.
5162 (sparc_output_mi_thunk): Likewise.
5163 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
5165 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5167 PR tree-optimization/89500
5168 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
5169 (handle_builtin_strlen): Remove noncst_bound variable. Always
5170 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
5171 cst if the first cst bytes starting at x are known to be non-zero,
5172 even if the string is not zero terminated. Don't try to modify
5173 *si for strnlen. Update strlen_to_stridx only for strlen or if
5174 we can prove strnlen returns the same value as strlen would.
5176 2019-02-26 Martin Liska <mliska@suse.cz>
5178 * alloc-pool.h (struct pool_usage): Remove extra
5180 * bitmap.h (struct bitmap_usage): Likewise.
5181 * ggc-common.c (struct ggc_usage): Likewise.
5182 * mem-stats.h (struct mem_usage): Likewise.
5183 (mem_alloc_description::dump): Print dash lines
5184 here and repeat header at the end of a table report.
5185 It's then more readable.
5186 * tree-phinodes.c (phinodes_print_statistics): Make
5187 horizontal alignment.
5188 * tree-ssanames.c (ssanames_print_statistics): Likewise.
5189 * vec.c (struct vec_usage): Remove extra print_dash_line.
5190 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
5192 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
5194 * doc/extend.texi (__builtin_object_size):
5195 Use @pxref instead of @xref inside parenthesis.
5196 (__builtin_has_attribute): Add missing comma after @xref.
5197 (__builtin_object_size): Ditto.
5198 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
5199 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
5202 2019-02-26 Jeff Law <law@redhat.com>
5204 PR rtl-optimization/87761
5205 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
5206 detect obviously dead insns and delete them.
5208 2019-02-26 Richard Biener <rguenther@suse.de>
5210 PR tree-optimization/89505
5211 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
5212 to handle restrict pointed-to vars with multiple subvars
5215 2019-02-26 Richard Biener <rguenther@suse.de>
5217 PR tree-optimization/89489
5218 * tree-parloops.c (create_loop_fn): Copy over last_clique.
5220 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
5222 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
5223 and move around comment.
5224 <BIT_AND_EXPR>: Likewise.
5225 <BIT_NOT_EXPR>: Add specific handling for boolean types.
5227 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5230 * config/i386/i386.c (remove_partial_avx_dependency): Call
5231 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
5232 after changing possibly many instructions to use that pseudo. Fix up
5233 insertion of v4sf_const0 setter at the start of bb.
5235 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
5238 * doc/extend.texi (Variadic Pointer Args): New section.
5240 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
5241 Martin Sebor <msebor@gmail.com>
5243 * common.opt (Wattribute-alias): Likewise.
5244 * doc/invoke.texi (Option Summary): List general form of
5245 -Wattribute-alias=. List positive form of -Wmissing-attributes.
5246 (-Wmissing-attributes): Invert entry, rewrite and correct default.
5247 Add cross-references.
5248 (-Wattribute-alias): Rewrite and correct default. Mention
5249 considered attributes (same as for -Wmissing-attributes).
5251 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
5253 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
5254 (_mm_cvtpd_ps): Likewise.
5255 (_mm_cvttpd_epi32): Likewise.
5258 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
5259 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
5262 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
5264 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5267 * common/config/aarch64/aarch64-common.c
5268 (struct aarch64_option_extension): Add is_synthetic.
5269 (all_extensions): Use it.
5270 (TARGET_OPTION_INIT_STRUCT): Define hook.
5271 (struct gcc_targetm_common): Moved to end.
5272 (all_extensions_by_on): New.
5273 (opt_ext_cmp, typedef opt_ext): New.
5274 (aarch64_option_init_struct): New.
5275 (aarch64_contains_opt): New.
5276 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
5277 * config/aarch64/aarch64-option-extensions.def
5278 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
5279 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
5280 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
5281 Set is_synthetic to false.
5282 (crypto): Set is_synthetic to true.
5283 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
5286 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5288 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
5289 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
5290 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
5291 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
5292 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
5293 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
5294 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
5295 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
5297 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
5298 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
5299 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
5300 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
5301 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
5302 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
5303 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
5304 vfmlsl_laneq_high_f16): ... To this.
5305 * config/arm/neon.md: Update comments.
5307 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5309 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
5310 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
5311 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
5312 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
5313 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
5314 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
5315 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
5316 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
5318 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
5319 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
5320 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
5321 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
5322 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
5323 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
5324 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
5325 vfmlslq_laneq_high_f16): ... To this.
5327 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
5329 PR rtl-optimization/86096
5330 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
5331 comparing mw_order values.
5333 2019-02-25 Jakub Jelinek <jakub@redhat.com>
5336 * config/arm/arm.md (*subsi3_carryin_const): Use
5337 arm_neg_immediate_operand predicate instead of
5338 arm_not_immediate_operand, "L" constraint instead of "K" and
5339 print it using %n2 instead of %B2.
5340 (*subsi3_carryin_const0): New define_insn.
5341 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
5342 instead of arm_not_operand and "I" constraint instead of "K" and
5343 print it using %n3 instead of %B2. Instead of using match_dup 2 add
5344 another match_operand and in the condition check that it is negation
5346 (*subsi3_carryin_compare_const0): New define_ins.
5347 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
5348 *subsi3_carryin_const.
5349 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
5350 split into *subsi3_carryin_compare_const0 if the highpart is zero.
5353 * config/arm.vfp.md (*negdf2_vfp): Use
5354 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
5355 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
5357 2019-02-24 Jakub Jelinek <jakub@redhat.com>
5359 PR rtl-optimization/89445
5360 * simplify-rtx.c (simplify_ternary_operation): Don't use
5361 simplify_merge_mask on operands that may trap.
5362 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
5363 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
5364 second operand is CONST_VECTOR, check if any element could be zero.
5365 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
5366 their operands can trap.
5368 2019-02-23 Martin Sebor <msebor@redhat.com>
5370 * gimple-ssa-sprintf.c (target_strtol): Rename...
5371 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
5372 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
5373 check for range error.
5375 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
5378 * opts-common.c (prune_options): Also prune joined switches
5379 with Negative and RejectNegative.
5380 * config/i386/i386.opt (march=): Add Negative(march=).
5381 (mtune=): Add Negative(mtune=).
5382 * doc/options.texi: Document Negative used together with Joined
5385 2019-02-22 Martin Sebor <msebor@redhat.com>
5387 * doc/extend.texi (Other Builtins): Add
5388 __builtin_is_constant_evaluated.
5390 2019-02-22 Richard Biener <rguenther@suse.de>
5392 PR tree-optimization/87609
5393 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
5395 2019-02-22 Jeff Law <law@redhat.com>
5397 PR rtl-optimization/87761
5398 * config/mips/mips.md: Add new combiner pattern to recognize
5399 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
5401 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
5404 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
5405 destination register in peepholes generating patterns for ADDS/SUBS.
5406 (add<mode>3_compare0,
5407 *addsi3_compare0_uxtw, add<mode>3_compareC,
5408 add<mode>3_compareV_imm, add<mode>3_compareV,
5409 *adds_<optab><ALLX:mode>_<GPI:mode>,
5410 *subs_<optab><ALLX:mode>_<GPI:mode>,
5411 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
5412 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
5413 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
5414 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
5415 sub<mode>3_compare1): Allow stack pointer for source register.
5416 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
5418 2019-02-22 Martin Sebor <msebor@redhat.com>
5420 PR tree-optimization/88993
5421 PR tree-optimization/88853
5422 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
5424 (sprintf_dom_walker::call_info::is_string_func): New helper.
5425 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
5426 for formatted string functions.
5427 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
5429 2019-02-22 Martin Sebor <msebor@redhat.com>
5432 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
5433 unreachable subexpressions.
5435 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
5436 Hongtao Liu <hongtao.liu@intel.com>
5437 Sunil K Pandey <sunil.k.pandey@intel.com>
5440 * config/i386/i386-passes.def: Add
5441 pass_remove_partial_avx_dependency.
5442 * config/i386/i386-protos.h
5443 (make_pass_remove_partial_avx_dependency): New.
5444 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
5446 (pass_data_remove_partial_avx_dependency): New.
5447 (pass_remove_partial_avx_dependency): Likewise.
5448 (make_pass_remove_partial_avx_dependency): Likewise.
5449 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
5450 (*extendsfdf2): Add avx_partial_xmm_update.
5451 (truncdfsf2): Likewise.
5452 (*float<SWI48:mode><MODEF:mode>2): Likewise.
5453 (SF/DF conversion splitters): Disabled for TARGET_AVX.
5455 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
5458 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
5461 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
5464 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
5465 (PTA_SKYLAKE): Add PTA_AES.
5466 (PTA_GOLDMONT): Likewise.
5468 2019-02-22 Sudakshina Das <sudi.das@arm.com>
5470 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
5471 instruction if enabled.
5472 (aarch64_override_options): Remove reference to return address key.
5474 2019-02-22 Richard Biener <rguenther@suse.de>
5476 PR tree-optimization/89440
5477 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
5478 not necessary assert.
5480 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
5483 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
5484 (oacc_replace_fn_attrib_attr): ... this new function.
5485 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
5486 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
5488 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5490 * config/arm/arm-cpus.in (ares): Rename to...
5491 (neoverse-n1): ... This. Add ares as alias.
5492 * config/arm/arm-tables.opt: Regenerate.
5493 * config/arm/arm-tune.md: Likewise.
5494 * doc/invoke.txt (ARM Options): Document neoverse-n1.
5496 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5498 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
5499 * config/aarch64/aarch64-tune.md: Regenerate.
5500 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
5502 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5504 * config/aarch64/aarch64.c (ares_tunings): Rename to...
5505 (neoversen1_tunings): ... This.
5506 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
5507 (neoverse-n1): New CPU.
5508 * config/aarch64/aarch64-tune.md: Regenerate.
5509 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
5511 2019-02-22 Richard Biener <rguenther@suse.de>
5514 * cfghooks.h (dependence_hash): New typedef.
5515 (struct copy_bb_data): New type.
5516 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
5517 (duplicate_block): Likewise.
5518 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
5519 (copy_bbs): Create and pass down copy_bb_data.
5520 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
5521 (rtl_duplicate_bb): Likewise.
5522 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
5523 remap dependence info.
5525 2019-02-22 Richard Biener <rguenther@suse.de>
5527 PR tree-optimization/87609
5528 * tree-core.h (tree_base): Document special clique values.
5529 * tree-inline.c (remap_dependence_clique): Do not use the
5530 special clique value of one.
5531 (maybe_set_dependence_info): Use clique one.
5532 (clear_dependence_clique): New callback.
5533 (compute_dependence_clique): Clear clique one from all refs
5534 before assigning it (again).
5536 2019-02-21 Martin Sebor <msebor@redhat.com>
5538 * doc/extend.texi (__clear_cache): Correct signature.
5540 2019-02-21 Ian Lance Taylor <iant@golang.org>
5543 * varasm.c (decode_addr_const): Call lookup_constant_def rather
5544 than output_constant_def.
5545 (add_constant_to_table): New static function.
5546 (output_constant_def): Call add_constant_to_table.
5547 (tree_output_constant_def): Likewise.
5549 2019-02-21 Jakub Jelinek <jakub@redhat.com>
5552 * builtins.c (fold_builtin_arith_overflow): If first two args are
5553 INTEGER_CSTs, set intres and ovfres to constants rather than calls
5556 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
5559 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
5560 error for -mindirect-branch/-mfunction-return with incompatible
5563 2019-02-21 Jakub Jelinek <jakub@redhat.com>
5566 * constraints.md (q): Remove.
5567 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
5570 2019-02-21 Martin Jambor <mjambor@suse.cz>
5573 * omp-general.c (omp_extract_for_data): Removed a duplicate call
5574 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
5575 (omp_adjust_for_condition): ...here. Added necessary parameters.
5576 * omp-general.h (omp_adjust_for_condition): Updated declaration.
5577 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
5578 proper values to new parameters of omp_adjust_for_condition.
5580 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5583 * expr.c (expand_assignment): If result is a MEM, use change_address
5584 instead of simplify_gen_subreg.
5586 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5587 David Malcolm <dmalcolm@redhat.com>
5590 * fold-const.c (decode_field_reference): Return NULL_TREE if
5591 lang_hooks.types.type_for_size returns NULL. Check it before
5592 overwriting *exp_. Use return NULL_TREE instead of return 0.
5594 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5598 * toplev.c (do_compile): Double the emin/emax exponents to workaround
5601 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
5604 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
5605 TARGET_SSE in addition to TARGET_SSE_MATH.
5607 (ix86_excess_precision): Ditto.
5608 (ix86_float_exceptions_rounding_supported_p): Ditto.
5609 (use_rsqrt_p): Ditto.
5610 * config/i386/sse.md (rsqrt<mode>2): Ditto.
5612 2019-02-20 David Malcolm <dmalcolm@redhat.com>
5615 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
5616 linenum_arith_t when determining if two adjacent line spans are
5617 close enough to merge.
5618 (diagnostic_show_locus): Use linenum_arith_t when iterating over
5619 lines within each line_span.
5621 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
5624 * lra-constraints.c(uses_hard_regs_p): Fix handling of
5625 paradoxical SUBREGS.
5627 2019-02-20 Li Jia He <helijia@linux.ibm.com>
5630 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
5631 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
5632 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
5635 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
5637 * config/gcn/gcn.c (print_operand): Fix typo.
5639 2019-02-19 Richard Biener <rguenther@suse.de>
5642 * toplev.c (do_compile): Initialize mpfr's exponent range
5643 based on available float modes.
5645 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
5647 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
5648 as long as the epilogue isn't completed.
5650 2019-02-18 Martin Sebor <msebor@redhat.com>
5652 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
5653 __has_cpp_attribute, and __has_include.
5655 2019-02-18 Martin Sebor <msebor@redhat.com>
5657 * doc/invoke.texi (-Wreturn-type): Correct and expand.
5659 2019-02-18 Martin Sebor <msebor@redhat.com>
5662 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
5664 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
5666 2019-02-18 Richard Biener <rguenther@suse.de>
5668 PR tree-optimization/89296
5669 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
5670 of no-warning flag to cases that might emit the bogus warning.
5672 2019-02-18 Jakub Jelinek <jakub@redhat.com>
5675 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
5677 * config/arm/vfp.md (*movdi_vfp): Likewise.
5678 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
5679 "q" constraint for operands[0].
5682 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
5683 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
5684 pattern in a temporary buffer.
5685 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
5686 than 64-operands[2].
5689 * config/s390/s390.c (s390_indirect_branch_attrvalue,
5690 s390_indirect_branch_settings): Define unconditionally.
5691 (s390_set_current_function): Likewise, but guard the whole body except
5692 the s390_indirect_branch_settings call with
5693 #if S390_USE_TARGET_ATTRIBUTE.
5694 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
5696 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
5697 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
5698 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
5699 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
5700 HOST_WIDE_INT_1U instead of 1ULL.
5701 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
5702 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
5703 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
5704 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
5706 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
5709 2019-02-18 Martin Jambor <mjambor@suse.cz>
5711 PR tree-optimization/89209
5712 * tree-sra.c (create_access_replacement): New optional parameter
5713 reg_tree. Use it as a type if non-NULL and access type is not of
5715 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
5716 to create_access_replacement.
5717 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
5718 Check lacc is non-NULL before attempting to re-create it on the RHS.
5720 2019-02-18 Martin Liska <mliska@suse.cz>
5723 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
5725 (symbol_table::free_edge): Recycle m_summary_id.
5726 * cgraph.h (get_summary_id): New.
5727 (symbol_table::release_symbol): Set m_summary_id to -1
5729 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
5730 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
5731 function_summary to fast_function_summary.
5732 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
5733 * ipa-pure-const.c (class funct_state_summary_t):
5734 Switch from function_summary to fast_function_summary.
5735 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
5736 (class ipa_ref_opt_summary_t): Switch from function_summary
5737 to fast_function_summary.
5738 * symbol-summary.h (class function_summary_base): New class
5739 that is created from base of former function_summary.
5740 (function_summary_base::unregister_hooks): New.
5741 (class function_summary): Inherit from function_summary_base.
5742 (class call_summary_base): New class
5743 that is created from base of former call_summary.
5744 (class call_summary): Inherit from call_summary_base.
5745 (struct is_same): New.
5746 (class fast_function_summary): New summary class.
5747 (class fast_call_summary): New summary class.
5748 * vec.h (vec_safe_grow_cleared): New function.
5750 2019-02-18 Martin Liska <mliska@suse.cz>
5752 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
5753 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
5754 * doc/tm.texi: Document new target hook.
5755 * doc/tm.texi.in: Likewise.
5756 * target.def: Add new target macro.
5757 * gcc.c (find_fortran_preinclude_file): Do not search multilib
5760 2019-02-17 Alan Modra <amodra@gmail.com>
5763 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
5764 output reg on add insn.
5765 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
5767 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
5770 * config/i386/sse.md (ssedoublemode): Remove V4HI.
5771 (PMULHRSW): Likewise.
5772 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
5774 (ssse3_pmulhrswv4hi3): New expander.
5776 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
5778 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
5779 MMX. Add isa attribute.
5781 2019-02-16 Jakub Jelinek <jakub@redhat.com>
5783 PR rtl-optimization/66152
5784 * builtins.h (c_readstr): Declare.
5785 * builtins.c (c_readstr): Remove forward declaration. Add
5786 null_terminated_p argument, if false, read all bytes from the
5787 string instead of stopping after '\0'.
5788 * expr.c (string_cst_read_str): New function.
5789 (store_expr): Use string_cst_read_str instead of
5790 builtin_strncpy_read_str. Try to store by pieces the whole
5791 exp_len first, and only if that fails, split it up into
5792 store by pieces followed by clear_storage. Formatting fix.
5794 * config/i386/i386.md (*movqi_internal): Remove static from
5795 buf variable. Use output_asm_insn (buf, operands); return "";
5796 instead of return buf;.
5797 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
5798 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
5799 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
5801 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
5803 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
5804 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
5805 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
5806 (CC1_SPEC): Likewise.
5807 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
5809 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
5811 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
5812 the base address on 64-bit strict-alignment platforms.
5814 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
5816 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
5818 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
5820 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
5822 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
5824 PR rtl-optimization/88308
5825 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
5826 on copied instruction.
5828 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
5830 * final.c (insn_current_reference_address): Replace test on JUMP_P
5831 with test on jump_to_label_p.
5832 * config/visium/visium-passes.def: New file.
5833 * config/visium/t-visium (PASSES_EXTRA): Define.
5834 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
5835 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
5836 (TRAMPOLINE_ALIGNMENT): Define.
5837 * config/visium/visium.c (visium_option_override): Do not register
5838 the machine-specific reorg pass here.
5839 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
5841 (output_branch): Adjust threshold for long branch instruction.
5842 * config/visium/visium.md (cpu): Move around.
5843 (length): Adjust for the GR6.
5845 2019-02-15 Richard Biener <rguenther@suse.de>
5846 Jakub Jelinek <jakub@redhat.com>
5848 PR tree-optimization/89278
5849 * tree-loop-distribution.c: Include tree-eh.h.
5850 (generate_memset_builtin, generate_memcpy_builtin): Call
5851 rewrite_to_non_trapping_overflow on builtin->size before passing it
5852 to force_gimple_operand_gsi.
5854 2019-02-15 Jakub Jelinek <jakub@redhat.com>
5857 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
5859 * opth-gen.awk: Likewise.
5861 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
5863 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
5864 Enable MMX, SSE and SSE2 by default.
5865 * config/i386/i386.c (ix86_option_override_internal): Do not
5866 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
5868 2019-02-14 Jakub Jelinek <jakub@redhat.com>
5870 PR rtl-optimization/89354
5871 * combine.c (make_extraction): Punt if extraction_mode is narrower
5874 2019-02-14 Maya Rashish <coypu@sdf.org>
5876 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
5877 * config/netbsd-d.c: New file.
5878 * config/t-netbsd: Add netbsd-d.o
5880 2018-02-14 Steve Ellcey <sellcey@marvell.com>
5882 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
5883 affects_type_identity to true for aarch64_vector_pcs.
5884 (aarch64_comp_type_attributes): New function.
5885 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
5887 2019-02-14 Tamar Christina <tamar.christina@arm.com>
5890 * config/arm/iterators.md (ANY64): Add V4HF.
5892 2019-02-14 Martin Liska <mliska@suse.cz>
5894 PR rtl-optimization/89242
5895 * dce.c (delete_unmarked_insns): Call free_dominance_info we
5896 process a transformation.
5898 2019-02-14 Jakub Jelinek <jakub@redhat.com>
5900 PR tree-optimization/89314
5901 * fold-const.c (fold_binary_loc): Cast strlen argument to
5902 const char * before dereferencing it. Formatting fixes.
5905 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
5907 2019-02-13 Ian Lance Taylor <iant@golang.org>
5909 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
5910 and set current index for other optimizations.
5912 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
5914 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
5915 nonimmediate_operand as operand 2 predicate.
5916 (vec_set<VF2_512_256:mode>_0): Ditto.
5917 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
5918 (*vec_concatv2si): Remove alternative 2.
5919 (*vec_concatv4si_0): Use vm constraint for alternative 0.
5920 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
5921 (vec_concatv2di): Split alternatives 4,5,6 to ...
5922 (*vec_concatv2di_0) ... new pattern.
5924 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
5927 * config/arm/arm.c (ldm_stm_operation_p) Set
5928 addr_reg_in_reglist correctly for first register.
5929 (load_multiple_sequence): Remove dead base check.
5930 (gen_ldm_seq): Correctly set write_back for Thumb-1.
5932 2019-02-13 Tamar Christina <tamar.christina@arm.com>
5935 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
5936 Expose as @aarch64_pred_mov.
5937 * config/aarch64/aarch64.c (aarch64_classify_address):
5938 Use expand_insn which legitimizes operands.
5940 2019-02-13 Martin Liska <mliska@suse.cz>
5942 * builtins.h (expand_builtin_with_bounds): Remove declaration.
5943 * calls.c (struct arg_data): Remove special_slot, pointer_arg
5944 and pointer_offset fields.
5945 (initialize_argument_information): Remove usage of dead
5947 * cgraph.h (struct cgraph_thunk_info): Remove
5948 add_pointer_bounds_args.
5949 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
5951 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
5953 * config/i386/i386.c (ix86_function_arg_advance): Remove
5955 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
5956 (def_builtin): Remove usage of dead
5958 (ix86_add_new_builtins): Likewise.
5959 * ipa-fnsummary.c (compute_fn_summary): Likewise.
5960 * ipa-icf.c (sem_function::equals_wpa): Likewise.
5961 (sem_function::init): Likewise.
5962 (sem_variable::merge): Likewise.
5963 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5964 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5965 * lto-cgraph.c (lto_output_node): Likewise.
5966 (lto_output_varpool_node): Likewise.
5967 (input_node): Likewise.
5968 (input_varpool_node): Likewise.
5969 * lto-streamer-out.c (lto_output): Likewise.
5970 * tree-inline.c (expand_call_inline): Remove usage of
5972 * tree-inline.h (struct copy_body_data): Likewise.
5973 * varpool.c (varpool_node::dump): Likewise.
5975 2019-02-13 Jakub Jelinek <jakub@redhat.com>
5978 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
5979 into pt->vars_contains_escaped_heap instead of setting
5980 pt->vars_contains_escaped_heap to it.
5983 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
5984 INTVAL (size), compare it to GET_MODE_MASK instead of
5985 1 << GET_MODE_BITSIZE.
5988 * config/i386/predicates.md (x86_64_immediate_operand): Allow
5989 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
5992 2019-02-13 Martin Liska <mliska@suse.cz>
5995 * cfgrtl.c (remove_barriers_from_footer): New function.
5996 (try_redirect_by_replacing_jump): Use it.
5997 (cfg_layout_redirect_edge_and_branch): Likewise.
5999 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
6001 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
6002 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
6003 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
6004 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
6005 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
6006 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
6008 * config/rs6000/rs6000.c (builtin_function_type)
6009 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
6010 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
6011 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
6012 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
6013 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
6015 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
6017 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
6018 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
6020 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
6023 * config/i386/i386.md (*movoi_internal_avx): Revert revision
6024 268678 and revision 268657.
6025 (*movti_internal): Likewise.
6027 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
6030 * config/s390/s390.c (s390_decompose_address): Update comment.
6031 (s390_check_qrst_address): Reject invalid address forms after
6034 2019-02-12 Martin Liska <mliska@suse.cz>
6037 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
6038 we need default values of funct_state for a function that
6041 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
6043 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
6044 the object to pick the size of stores on strict-alignment platforms.
6046 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
6047 (*movdi_insn_sp32): Likewise.
6048 (*movdi_insn_sp64): Likewise.
6050 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
6053 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
6054 types that needs constructiong.
6055 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
6057 2019-02-12 Richard Biener <rguenther@suse.de>
6059 PR tree-optimization/89253
6060 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
6063 2019-02-11 David Malcolm <dmalcolm@redhat.com>
6066 * input.c (selftest::test_line_offset_overflow): New selftest.
6067 (selftest::input_c_tests): Call it.
6069 2019-02-11 Martin Sebor <msebor@redhat.com>
6071 PR tree-optimization/88771
6072 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
6073 when -Wstringop-overflow is set.
6074 (builtin_memref::builtin_memref): Adjust excessive upper bound
6075 only when lower bound is not excessive.
6076 (maybe_diag_overlap): Detect and diagnose excessive bounds via
6077 -Wstringop-ovefflow.
6078 (maybe_diag_offset_bounds): Rename...
6079 (maybe_diag_access_bounds): ...to this.
6080 (check_bounds_or_overlap): Adjust for name change above.
6082 2019-02-11 Martin Sebor <msebor@redhat.com>
6085 * builtins.c (max_object_size): Move from here...
6086 * builtins.h (max_object_size): ...and here...
6087 * tree.c (max_object_size): ...to here...
6088 * tree.h (max_object_size): ...and here.
6090 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
6092 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
6093 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
6094 for correct semantics.
6096 2019-02-11 Alan Modra <amodra@gmail.com>
6098 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
6099 -mlongcall and -mpltseq.
6100 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
6101 (RS/6000 and PowerPC Options <-mpltseq>): Document.
6102 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
6103 * config/rs6000/sysv4.opt (mpltseq): New option.
6104 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
6105 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
6106 support is lacking. Don't allow -mpltseq with -mbss-plt.
6107 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
6108 -mpltseq given for ELFv1.
6109 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
6110 Only use UNSPEC_PLTSEQ for inline PLT calls.
6111 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
6112 use UNSPEC_PLTSEQ for inline PLT calls.
6113 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
6114 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
6115 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
6116 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
6117 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
6118 (pltseq_mtctr_<mode>): Likewise.
6120 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6122 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
6124 * configure: Regenerate.
6126 2019-02-11 Jakub Jelinek <jakub@redhat.com>
6129 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
6132 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
6134 * function.c (assign_parm_setup_block): Use the stored
6135 size, not the passed size, when allocating stack-space,
6136 also for a parameter with alignment larger than
6137 MAX_SUPPORTED_STACK_ALIGNMENT.
6139 2019-02-11 Martin Liska <mliska@suse.cz>
6142 * ipa-cp.c (build_toporder_info): Remove usage of a param.
6143 * ipa-inline.c (inline_small_functions): Likewise.
6144 * ipa-pure-const.c (propagate_pure_const): Likewise.
6145 (propagate_nothrow): Likewise.
6146 * ipa-reference.c (propagate): Likewise.
6147 * ipa-utils.c (struct searchc_env): Remove unused field.
6148 (searchc): Always search across AVAIL_INTERPOSABLE.
6149 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
6150 the only called IPA pure const can properly not propagate
6151 across interposable boundary.
6152 * ipa-utils.h (ipa_reduced_postorder): Remove param.
6154 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
6156 * config/nds32/nds32.md (call_internal, call_value_internal,
6157 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
6159 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
6161 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
6164 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
6166 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
6169 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
6171 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
6173 2019-02-10 Jakub Jelinek <jakub@redhat.com>
6175 PR tree-optimization/89268
6176 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
6177 if preds is non-NULL.
6179 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6182 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
6185 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
6187 * config/nds32/nds32.md (trap): New pattern.
6189 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
6191 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
6194 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
6196 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
6199 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6201 * ipa-visibility.c (localize_node): Also do not localize
6202 LDPR_PREVAILING_DEF_IRONLY_EXP.
6204 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6207 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
6208 instead of type_with_linkage.
6210 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6213 * params.def (uninlined-function-insns, uninlined-function-time,
6214 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
6215 bound so we don't get overflows.
6217 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
6219 * config/rs6000/rs6000-string.c (expand_compare_loop,
6220 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
6223 2019-02-09 Jakub Jelinek <jakub@redhat.com>
6226 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6227 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
6228 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
6230 2019-02-09 Alan Modra <amodra@gmail.com>
6233 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
6234 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
6237 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
6240 * lra-constraints.c (process_alt_operands): Don't increase reject
6241 for memory when offset memory is required.
6243 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
6245 * config/s390/vector.md: Implement vector copysign.
6247 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
6249 * expr.c (expand_constructor): Correct indentations.
6251 2019-02-08 Richard Biener <rguenther@suse.de>
6253 PR tree-optimization/89247
6254 * tree-if-conv.c: Include tree-cfgcleanup.h.
6255 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
6256 (tree_if_conversion): Pass through predicate vector.
6257 (pass_if_conversion::execute): Do CFG cleanup and SSA update
6258 inline, see if any if-converted loops we refrece in
6259 LOOP_VECTORIZED calls vanished and fixup.
6260 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
6262 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
6264 * config/s390/constraints.md (jdd): New constraint.
6266 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
6269 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
6270 upper 16 vector registers without TARGET_AVX512VL.
6271 (*movti_internal): Likewise.
6273 2019-02-08 Jakub Jelinek <jakub@redhat.com>
6275 PR rtl-optimization/89234
6276 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
6277 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
6278 (copy_reg_eh_region_note_backward): Likewise.
6280 2019-02-08 Richard Biener <rguenther@suse.de>
6283 * tree-data-ref.c (initialize_matrix_A): Fail if constant
6285 (analyze_subscript_affine_affine): Handle failure from
6286 initialize_matrix_A.
6288 2019-02-08 Jakub Jelinek <jakub@redhat.com>
6290 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
6293 2019-02-07 David Malcolm <dmalcolm@redhat.com>
6295 PR tree-optimization/86637
6296 PR tree-optimization/89235
6297 * tree-vect-loop.c (optimize_mask_stores): Add an
6298 auto_purge_vect_location sentinel to ensure that vect_location is
6301 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
6302 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
6303 to ensure that vect_location is purged on exit.
6304 (pass_slp_vectorize::execute): Likewise, replacing the manual
6306 * tree-vectorizer.h (class auto_purge_vect_location): New class.
6308 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6310 * config/aarch64/iterators.md (max_opp): New code_attr.
6311 (USMAX): New code iterator.
6312 * config/aarch64/predicates.md (aarch64_smin): New predicate.
6313 (aarch64_smax): Likewise.
6314 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
6315 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
6318 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
6321 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
6322 for TARGET_AVX512VL.
6323 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
6325 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
6327 * config/s390/s390-builtin-types.def: Add new types.
6328 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
6329 (s390_vec_xlw4): Make the memory operand into a const pointer.
6330 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
6332 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
6333 a new vector type with the alignment of the scalar memory operand.
6335 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
6336 Jakub Jelinek <jakub@redhat.com>
6339 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
6340 arm_count_ldrdstrd_insns): New declarations.
6341 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
6343 (valid_operands_ldrd_strd): New function.
6344 (arm_count_ldrdstrd_insns): New function.
6345 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
6346 sets instead of single DImode set and define new insns to match this.
6348 2019-02-07 Tamar Christina <tamar.christina@arm.com>
6350 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
6351 Make it a C initializer.
6353 2019-02-07 Tamar Christina <tamar.christina@arm.com>
6356 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
6358 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6360 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
6361 Use neon_dot<q> for type.
6362 (neon_<sup>dot_lane<vsi2qi>): Likewise.
6364 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6366 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
6367 Use neon_dot<q> for type.
6368 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
6369 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
6371 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
6373 PR rtl-optimization/89225
6374 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
6377 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
6379 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
6380 after restoring registers saved to allocate the frame on Windows.
6382 2019-02-06 Richard Biener <rguenther@suse.de>
6384 PR tree-optimization/89182
6385 * graphite.h (cached_scalar_evolution_in_region): Declare.
6386 * graphite.c (struct seir_cache_key): New.
6387 (struct sese_scev_hash): Likewise.
6388 (seir_cache): New global.
6389 (cached_scalar_evolution_in_region): New function.
6390 (graphite_transform_loops): Allocate and release seir_cache.
6391 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
6392 cached_scalar_evolution_in_region.
6393 * graphite-scop-detection.c (scop_detection::can_represent_loop):
6395 (scop_detection::graphite_can_represent_expr: Use
6396 cached_scalar_evolution_in_region.
6397 (scop_detection::stmt_simple_for_scop_p): Likewise.
6398 (find_params_in_bb): Likewise.
6399 (gather_bbs::before_dom_children): Likewise.
6400 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
6401 (add_loop_constraints): Likewise.
6403 2019-02-06 Jakub Jelinek <jakub@redhat.com>
6406 * fold-const-call.c (fold_const_vec_convert): Pass true as last
6407 operand to new_unary_operation only if both element types are integral
6408 and it isn't a widening conversion. Return NULL_TREE if
6409 new_unary_operation failed.
6411 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
6414 * config/s390/s390.md: Remove load and test FP splitter.
6416 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
6419 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
6420 expand_compare_loop, expand_block_compare_gpr,
6421 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
6422 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
6423 #include "profile-count.h" and "predict.h" for types and functions
6424 needed to work with REG_BR_PROB notes.
6426 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
6429 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
6430 for the long branch case.
6432 2019-02-05 Jakub Jelinek <jakub@redhat.com>
6435 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
6436 can throw, non-call exceptions are enabled and we can't delete
6437 dead exceptions or alter cfg. Set must_clean if
6438 delete_insn_and_edges returns true, don't set it blindly for calls.
6439 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
6441 PR rtl-optimization/89195
6442 * combine.c (make_extraction): For MEMs, don't extract bytes outside
6443 of the original MEM.
6445 2019-02-05 Martin Liska <mliska@suse.cz>
6447 PR gcov-profile/89000
6448 * gcov.c (function_summary): Remove argument.
6449 (file_summary): New function.
6450 (print_usage): Replace tabs with spaces.
6451 (generate_results): Use new function file_summary.
6453 2019-02-05 Jakub Jelinek <jakub@redhat.com>
6456 * optabs.c (prepare_cmp_insn): Pass x and y to
6457 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
6459 2019-02-05 Richard Biener <rguenther@suse.de>
6462 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
6463 (struct bitmap_element): Drop chain_prev so we properly recurse on
6464 the prev member, supporting tree views.
6465 (struct bitmap_head): GTY skip the obstack member.
6467 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
6470 * doc/extend.texi (Vector Extensions): Add an example of using vector
6471 types together with x86 intrinsics.
6473 2019-02-04 Alan Modra <amodra@gmail.com>
6475 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
6476 str[] size to 160, and comment.
6478 2019-02-04 Alan Modra <amodra@gmail.com>
6480 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
6481 (rs6000_pltseq_template): Guard output of TLS markers with
6483 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
6484 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
6485 to use inline PLT sequences.
6486 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
6487 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
6488 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
6490 2019-02-04 Martin Liska <mliska@suse.cz>
6493 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
6494 out when ipa_fn_summaries does not contain entry for callee.
6496 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
6498 * config/sparc/sparc.h: Remove superfluous blank lines.
6499 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
6500 (got_register_rtx): ...this.
6501 (sparc_got): Adjust to above renaming.
6502 (sparc_tls_got): Likewise.
6503 (sparc_delegitimize_address): Likewise.
6504 (sparc_output_mi_thunk): Likewise.
6505 (sparc_init_pic_reg): Likewise.
6506 (save_local_or_in_reg_p): Fix test on the GOT register.
6507 (USE_HIDDEN_LINKONCE): Move around.
6508 (get_pc_thunk_name): Likewise.
6509 (gen_load_pcrel_sym): Likewise.
6510 (load_got_register): Likewise.
6512 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
6514 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
6515 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
6517 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
6519 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
6522 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
6524 * config.gcc (with_nds32_lib, glibc):
6525 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
6526 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
6527 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
6529 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
6532 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
6533 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
6534 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
6535 (*rcpsf2_sse): Ditto.
6536 (*rsqrtsf2_sse): Ditto.
6537 (sse4_1_round<mode<2): Ditto.
6539 2019-02-03 Richard Biener <rguenther@suse.de>
6542 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
6545 2019-02-02 Jakub Jelinek <jakub@redhat.com>
6548 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6549 Punt with warning on aggregate return or argument types. Ignore
6550 type/mode checking for uniform arguments.
6552 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
6554 * combine.c (try_combine): Do not print "Can't combine" messages unless
6555 printing failed combination attempts.
6557 2019-02-01 Martin Jambor <mjambor@suse.cz>
6560 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
6561 segment and global segment variables before making them static.
6563 2019-02-01 Martin Jambor <mjambor@suse.cz>
6565 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
6566 missed optimization dump with dump_enabled_p.
6568 2019-02-01 Richard Biener <rguenther@suse.de>
6571 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
6572 the instantiate cache.
6573 (instantiate_scev_binary): Elide second operand procesing
6574 if equal to the first.
6575 * tree-chrec.c (chrec_contains_symbols): Add visited set.
6576 (chrec_contains_undetermined): Likewise.
6577 (tree_contains_chrecs): Likewise.
6579 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
6581 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
6583 2019-02-01 Jakub Jelinek <jakub@redhat.com>
6585 PR tree-optimization/89143
6586 * wide-int-range.h (wide_int_range_absu): Declare.
6587 * wide-int-range.cc (wide_int_range_absu): New function.
6588 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
6590 PR tree-optimization/88107
6591 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
6592 instead of assertion that eh_region_outermost is non-NULL, if it
6593 is NULL, set *ALL to true and return NULL.
6594 (move_sese_region_to_fn): Adjust caller, if all is set, call
6595 duplicate_eh_regions with NULL region.
6597 2019-02-01 Richard Biener <rguenth@suse.de>
6599 PR rtl-optimization/88593
6600 * mode-switching.c (optimize_mode_switching): Free dominators before
6601 calling cleanup_cfg.
6603 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
6605 PR tree-optimization/88932
6606 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
6608 2019-01-31 Jakub Jelinek <jakub@redhat.com>
6611 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
6612 bogus clang warning.
6614 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
6617 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
6618 alternative to avoid partial SSE register stall for TARGET_AVX.
6619 (truncdfsf2): Ditto.
6620 (sse4_1_round<mode>2): Ditto.
6622 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
6624 PR tree-optimization/89008
6625 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
6626 process anything of the form X * 0.
6628 2019-01-31 Richard Biener <rguenther@suse.de>
6630 PR tree-optimization/89135
6631 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
6632 with abnormal preds.
6634 2019-01-31 Jakub Jelinek <jakub@redhat.com>
6637 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
6638 always_inline callees into no_sanitize_address callers.
6640 2019-01-31 Richard Biener <rguenther@suse.de>
6642 PR rtl-optimization/89115
6643 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
6645 2019-01-30 Martin Sebor <msebor@redhat.com>
6648 * doc/extend.texi (cast to a union): Correct and expand.
6650 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
6652 PR rtl-optimization/87246
6653 * lra-constraints.c (simplify_operand_subreg): Reload memory
6654 in subreg if the address became invalid.
6656 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
6659 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
6660 Disable for little-endian.
6662 2019-01-30 Richard Biener <rguenther@suse.de>
6664 PR rtl-optimization/89115
6665 * opts.c (default_options_optimization): Reduce
6666 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
6667 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
6670 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
6672 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
6673 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
6674 type of vector element when vec_extract is implemented by direct
6677 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
6679 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
6681 2019-01-30 Richard Biener <rguenther@suse.de>
6683 PR tree-optimization/89111
6684 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
6685 canonicalization to appropriately sized access types.
6687 2019-01-30 Jakub Jelinek <jakub@redhat.com>
6690 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
6691 for arguments to functions that are TU-local and shouldn't be
6692 referenced by assembly.
6694 2019-01-30 Ulrich Drepper <drepper@redhat.com>
6696 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
6699 2019-01-29 Martin Sebor <msebor@redhat.com>
6702 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
6704 2019-01-29 Jakub Jelinek <jakub@redhat.com>
6708 * omp-simd-clone.c (simd_clone_clauses_extract)
6709 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
6710 OMP_CLAUSE_ALIGNED_ALIGNMENT.
6712 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
6714 * config.gcc: Force .init_array for ARC.
6716 2019-01-29 Richard Biener <rguenther@suse.de>
6719 * dwarf2out.c (collect_skeleton_dies): New helper.
6720 (copy_decls_for_unworthy_types): Call it.
6721 (build_abbrev_table): Assert we do not try to replace
6722 DW_AT_signature refs with local refs.
6724 2019-01-28 Jakub Jelinek <jakub@redhat.com>
6727 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
6728 for lastprivate/linear IV, push gimplify context around gimplify_assign
6729 and, if it needed any temporaries, pop it into a gimple bind around the
6732 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
6734 * common.opt (-Wattribute-alias): Remove "no-" from name.
6735 Make -Wattribute-alias command line option and
6736 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
6738 2019-01-28 Jakub Jelinek <jakub@redhat.com>
6741 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
6742 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
6744 (bmi2): Add missing @opindex.
6745 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
6746 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
6747 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
6748 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
6749 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
6750 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
6751 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
6752 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
6753 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
6754 xsavec, xsaveopt and xsaves options.
6756 2019-01-28 Richard Biener <rguenther@suse.de>
6759 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
6762 2019-01-28 Richard Biener <rguenther@suse.de>
6764 PR tree-optimization/88739
6765 * tree-cfg.c (verify_types_in_gimple_reference): Verify
6766 BIT_FIELD_REFs only are applied to mode-precision operands
6767 when they are integral.
6768 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
6769 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
6770 BIT_FIELD_REFs of non-mode-precision integral operands.
6772 2019-01-27 Jakub Jelinek <jakub@redhat.com>
6775 * config/i386/sse.md
6776 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
6777 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
6778 first constants in pairs are multiples of 2. Formatting fixes.
6779 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
6780 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
6781 first constants in each quadruple are multiples of 4. Formatting fixes.
6783 2019-01-26 Martin Jambor <mjambor@suse.cz>
6786 * tree-inline.c: Include tree-cfgcleanup.h.
6787 (delete_unreachable_blocks_update_callgraph): Move...
6788 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
6789 ...here, make externally visible, make second argument bool, adjust
6791 * tree-cfgcleanup.c: Include cgraph.h.
6792 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
6794 * ipa-prop.c: Include tree-cfgcleanup.h.
6795 (ipcp_transform_function): Call
6796 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
6798 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
6800 PR rtl-optimization/88846
6801 * ira.c (process_set_for_memref_referenced_p): New.
6802 (memref_referenced_p): Add new param. Use
6803 process_set_for_memref_referenced_p. Add new switch cases.
6804 (memref_used_between_p): Pass new arg to memref_referenced_p.
6806 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
6809 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
6810 argument ABI_BREAK. Set to true if the calculated alignment has
6811 changed in gcc-9. Check bit-fields for their base type alignment.
6812 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
6813 (aarch64_function_arg_boundary): Likewise.
6814 (aarch64_gimplify_va_arg_expr): Likewise.
6816 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
6819 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
6820 instead of accessing TREE_INT_CST_ELT directly.
6822 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
6824 * doc/sourcebuild.texi (Environment attributes): Add fenv and
6825 fenv_exceptions description.
6827 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
6829 PR rtl-optimization/87763
6830 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
6831 Allow SUBREG when matching CC_NZmode compare.
6833 2019-01-25 Richard Biener <rguenther@suse.de>
6835 PR tree-optimization/89049
6836 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
6837 Look at the pattern stmt to determine if the stmt is vectorized.
6839 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
6841 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
6842 (pred_mov<mode>): Handle all-register forms using both a new
6843 alternative and a split.
6845 2019-01-25 Richard Biener <rguenther@suse.de>
6847 PR tree-optimization/86865
6848 * graphite-scop-detection.c (scop_detection::can_represent_loop):
6849 Reject non-do-while loops.
6851 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
6853 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
6854 * config/rs6000/constraints.md (Q constraint): Use REG_P.
6855 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
6856 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
6857 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
6858 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6859 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
6860 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
6861 vlogical_operand, gpc_reg_operand, int_reg_operand,
6862 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
6863 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
6864 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
6865 (save_world_operation, restore_world_operation, lmw_operation,
6866 stmw_operation): Use MEM_P and REG_P.
6867 (tie_operand): Use MEM_P.
6868 (vrsave_operation, crsave_operation): Use REG_P.
6869 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
6870 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
6871 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
6872 (call_operand): Use HARD_REGISTER_P.
6873 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
6875 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
6876 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
6877 quad_aligned_load_p, replace_swapped_aligned_store,
6878 recombine_lvx_pattern, replace_swapped_aligned_load,
6879 recombine_stvx_pattern): Use MEM_P.
6880 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
6881 Use MEM_P and SYMBOL_REF_P.
6882 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
6883 (insn_is_swappable_p): Use REG_P and MEM_P.
6884 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
6885 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
6887 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
6889 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
6891 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
6892 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
6893 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
6894 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
6896 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
6897 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
6898 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
6899 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
6900 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
6901 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
6902 rs6000_split_logical_di): Use CONST_INT_P.
6903 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
6904 REG_P and SYMBOL_REF_P.
6905 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
6906 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
6907 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
6908 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
6909 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
6910 (small_data_operand, print_operand_address): Use CONST_INT_P and
6912 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
6913 (rs6000_init_hard_regno_mode_ok, direct_move_p):
6914 Use HARD_REGISTER_NUM_P.
6915 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
6916 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
6917 SUBREG_P and SYMBOL_REF_P.
6918 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
6919 and HARD_REGISTER_NUM_P.
6920 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
6922 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
6923 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
6925 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
6926 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
6927 find_addr_reg): Use REG_P.
6928 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
6929 (rs6000_emit_le_vsx_move): Use SUBREG_P.
6930 (offsettable_ok_by_alignment, constant_pool_expr_p,
6931 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
6932 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
6933 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
6934 rs6000_assemble_integer, create_TOC_reference,
6935 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
6936 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
6937 (rs6000_split_vec_extract_var): Use reg_or_subregno.
6938 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
6939 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
6940 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6941 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6942 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
6943 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
6944 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
6945 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
6946 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
6947 and cbranch<mode>4): Use CONST_INT_P.
6948 (multiple define_splits): Use REG_P and SUBREG_P.
6949 (define_expands call, call_value): Use MEM_P.
6950 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
6951 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
6952 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
6953 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
6954 and HARD_REGISTER_NUM_P.
6955 (multiple define_splits): Use HARD_REGISTER_NUM_P.
6957 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
6959 PR rtl-optimization/88948
6960 * rtl.h (prepare_copy_insn): New prototype.
6961 * gcse.c (prepare_copy_insn): New function, split out from
6962 process_insert_insn.
6963 (process_insert_insn): Use prepare_copy_insn.
6964 * store-motion.c (replace_store_insn): Use prepare_copy_insn
6965 instead of gen_move_insn.
6967 2019-01-24 Jakub Jelinek <jakub@redhat.com>
6970 * config/i386/i386.c (ix86_pic_register_p): Return true for
6973 PR tree-optimization/88964
6974 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
6975 punt if HONOR_SNANS (chrec).
6978 * tree-nested.c (convert_nonlocal_reference_stmt,
6979 convert_local_reference_stmt, convert_tramp_reference_stmt,
6980 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
6981 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
6984 PR tree-optimization/89027
6985 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
6986 for "omp simd array" variables.
6988 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
6991 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
6992 force the alignment of m_val.
6994 2019-01-24 Richard Biener <rguenther@suse.de>
6997 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
6998 When in "legacy" debug mode make sure to reset self-origins.
7000 2019-01-24 Martin Liska <mliska@suse.cz>
7002 PR gcov-profile/88994
7003 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
7004 result will be always smaller or equal to the original.
7005 * gcov.c (mangle_name): Fix else branch where we should
7006 also copy to PTR and shift the pointer.
7008 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
7010 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
7011 * vr-values.c (find_case_label_ranges): Fix a comment typo.
7013 2019-01-23 Bin Cheng <bin.cheng@arm.com>
7014 Steve Ellcey <sellcey@marvell.com>
7017 * recog.c (address_operand): Return false on wrong mode for address.
7018 (constrain_operands): Check for mode with 'p' constraint.
7020 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
7023 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
7024 Disparage MMX alternative.
7025 (sse2_cvtpd2pi): Ditto.
7026 (sse2_cvttpd2pi): Ditto.
7028 2019-01-23 David Malcolm <dmalcolm@redhat.com>
7031 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
7032 use-after-free of the result of
7033 aarch64_get_extension_string_for_isa_flags.
7035 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7038 * doc/extend.texi: Document break and continue behavior in
7039 statement expressions.
7041 2019-01-23 Richard Biener <rguenther@suse.de>
7043 PR tree-optimization/89008
7044 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
7045 not leave another stray operand.
7047 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7049 * BASE-VER: Bump to 9.0.1.
7051 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
7053 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
7054 thunk that returns by reference, use the type of the return object
7055 of the thunk instead of that of the alias to build the dereference.
7057 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
7059 * config/arc/atomic.md: Add operand to DMB instruction.
7061 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7063 PR tree-optimization/88964
7064 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
7065 build_zero_cst instead of build_int_cst. Return false for loop
7066 invariants which honor signed zeros.
7068 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
7070 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
7072 2019-01-22 Jakub Jelinek <jakub@redhat.com>
7075 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
7076 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
7077 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
7080 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
7081 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
7084 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
7085 Disable for little endian.
7087 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
7090 * config/arm/arm.c (arm_needs_double_word_align): Check
7091 DECL_BIT_FIELD_TYPE.
7093 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
7094 H.J. Lu <hongjiu.lu@intel.com>
7097 * config/i386/i386-builtin.def: Add mask2 to all builtin
7098 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
7100 * config/i386/i386.c (BDESC): Add mask2 to the definition.
7101 (BDESC_FIRST): Likewise.
7102 (define_builtin): Add an argument for mask2. Updated to handle
7103 both ix86_isa_flags and ix86_isa_flags2.
7104 (define_builtin_const): Likewise.
7105 (define_builtin_pure): Likewise.
7106 (define_builtin2): Deleted.
7107 (define_builtin_const2): Likewise.
7108 (builtin_description): Add a member, mask2.
7109 (bdesc_*): Add mask2 to builtin initializations.
7110 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
7111 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
7113 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
7115 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
7118 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
7121 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
7124 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
7125 alignment is dominated by a bitfield with 64-bit aligned base type.
7126 (arm_function_arg): Emit a warning if the alignment has changed since
7127 earlier GCC releases.
7128 (arm_function_arg_boundary): Likewise.
7129 (arm_setup_incoming_varargs): Likewise.
7131 2019-01-22 Richard Biener <rguenther@suse.de>
7133 PR tree-optimization/88862
7134 * graphite-scop-detection.c
7135 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
7137 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
7139 * doc/extend.tex (AMD GCN Function Attributes): New section.
7140 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
7141 * doc/invoke.texi (AMD GCN Options): New section.
7142 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
7144 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
7146 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
7147 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
7149 2019-01-22 Jakub Jelinek <jakub@redhat.com>
7151 PR tree-optimization/88044
7152 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
7153 is false in the first iteration, but !every_iteration, return false
7154 instead of true with niter->niter zero.
7156 PR rtl-optimization/88904
7157 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
7158 any nonequal registers before processing BB_END (b).
7161 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
7163 (expand_binop_directly, expand_doubleword_clz,
7164 expand_doubleword_popcount, expand_ctz, expand_ffs,
7165 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
7167 PR rtl-optimization/49429
7169 PR rtl-optimization/86334
7171 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
7172 addressable from here...
7173 (emit_block_op_via_libcall): ... to here.
7175 2019-01-22 Richard Biener <rguenther@suse.de>
7177 * tree-vect-loop.c (vect_analyze_loop_operations): Use
7178 auto_vec for cost vector to fix memleak.
7179 (vectorize_fold_left_reduction): Properly gather SLP defs.
7180 (vectorizable_comparison): Do not swap operands to properly
7183 2019-01-22 Alan Modra <amodra@gmail.com>
7186 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
7187 stays a reg. Allow a const_int.
7188 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
7189 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
7190 (IS_NOMARK_TLSGETADDR): Define.
7191 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
7192 (rs6000_output_tlsargs): New function.
7193 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
7194 __tls_get_addr call takes an arg.
7195 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
7196 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
7198 (call_value_nonlocal_sysv): ..or here, delete split.
7199 (tls_gdld_nomark): Delete.
7200 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
7201 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
7202 (call_value_nonlocal_sysv): Likewise.
7203 (call_value_nonlocal_sysv_secure): Likewise.
7204 (call_value_nonlocal_aix): Likewise.
7205 (call_value_indirect_aix): Likewise.
7206 (call_value_indirect_elfv2): Likewise.
7207 (call_value_local32, call_value_local64): Disable for no-mark tls.
7208 (call_value_local_aix): Likewise.
7210 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
7213 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
7214 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
7216 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
7218 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
7219 string contents as hash_map keys.
7221 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7224 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
7225 for rvalue context. Handle rvalues correctly. Use min_align_of_type
7226 instead of TYPE_ALIGN.
7227 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
7228 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
7229 pointer from TYPE_STUB_DECL.
7231 2019-01-21 Richard Biener <rguenther@suse.de>
7233 PR tree-optimization/88934
7234 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
7235 at the possibly non-constant operand.
7236 (vect_get_constant_vectors): Adjust.
7238 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7241 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
7242 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
7243 instead of _X86INTRIN_H_INCLUDED.
7244 * onfig/i386/clwbintrin.h: Likewise.
7245 * config/i386/pkuintrin.h: Likewise.
7246 * config/i386/prfchwintrin.h: Likewise.
7247 * config/i386/rdseedintrin.h: Likewise.
7248 * config/i386/wbnoinvdintrin.h: Likewise.
7249 * config/i386/xsavecintrin.h: Likewise.
7250 * config/i386/xsavesintrin.h: Likewise.
7251 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
7252 * config/i386/xsaveintrin.h: Likewise.
7253 * config/i386/xsaveoptintrin.h: Likewise.
7254 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
7255 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
7256 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
7257 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
7258 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
7259 * config/i386/immintrin.h: Here.
7261 2019-01-20 Martin Jambor <mjambor@suse.cz>
7264 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
7265 with aa_walk_budget.
7266 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
7267 aa_walk_budget_p parameter.
7268 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
7269 walk. Updated all callers.
7270 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
7271 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
7273 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
7274 parameter info. Extract info from fbi. Pass fbi to recursive calls
7275 and to unmodified_parm.
7276 (phi_result_unknown_predicate): New parameter fbi, removed parameter
7277 info, updated call to will_be_nonconstant_expr_predicate.
7278 (param_change_prob): New parameter fbi, limit AA walking.
7279 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
7280 calls to various above functions.
7281 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
7282 parameter. Use it to limit AA walking.
7283 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
7285 (detect_type_change): New parameter fbi, pass it on to
7286 detect_type_change_from_memory_writes.
7287 (detect_type_change_ssa): Likewise.
7288 (aa_overwalked): Removed.
7289 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
7290 accordingly, adjust to the neew AA limiting scheme.
7291 (parm_ref_data_preserved_p): Likewise.
7292 (ipa_compute_jump_functions_for_edge): Adjust call to
7294 (ipa_analyze_call_uses): Likewise.
7295 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
7296 (ipa_analyze_node): Initialize aa_walk_budget.
7297 (ipcp_transform_function): Likewise.
7298 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
7299 to get_dynamic_type.
7301 2019-01-19 Jakub Jelinek <jakub@redhat.com>
7303 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
7304 outside of #if CHECKING_P code.
7306 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
7308 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
7309 New function, split out from...
7310 (loop_versioning::analyze_stride): ...here.
7311 (loop_versioning::find_per_loop_multiplication): Use gassign.
7312 (loop_versioning::analyze_term_using_scevs): Return a success code.
7313 (loop_versioning::analyze_arbitrary_term): New function.
7314 (loop_versioning::analyze_address_fragment): Use
7315 analyze_arbitrary_term if all else fails.
7317 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
7320 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
7323 2019-01-18 Richard Biener <rguenther@suse.de>
7325 PR tree-optimization/88903
7326 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
7327 scalar stmts a SLP shift amount is composed of when detecting
7330 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
7333 * config/arm/arm-cpus.in (mp): New feature.
7335 (fgroup ARMv7ve): Add mp and sec features.
7336 (arch armv7-a): Add options to allow mp and sec extensions.
7337 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
7338 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
7339 extenstions to the base architecture.
7340 (cpu cortex-a8): Add sec extension to the base architecture.
7341 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
7342 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
7343 variants down to the base v7-a varaint.
7344 * config/arm/t-multilib (v7_a_arch_variants): New variable.
7345 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
7346 of permitted extensions for -march=armv7-a and for
7347 -mcpu=generic-armv7-a.
7349 2019-01-18 Martin Liska <mliska@suse.cz>
7351 * params.def: Fix comment.
7352 * tree-profile.c (gimple_init_gcov_profiler): Bump function
7354 (gimple_gen_ic_func_profiler): Likewise.
7356 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7358 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
7359 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
7360 and put in error checks for stack protector guard options.
7361 (aarch64_stack_protect_guard): New.
7362 (TARGET_STACK_PROTECT_GUARD): Define.
7363 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
7364 (reg_stack_protect_address<mode>): New.
7365 (stack_protect_set): Adjust for SSP_GLOBAL.
7366 (stack_protect_test): Likewise.
7367 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
7368 (-mstack-protector-guard): Likewise.
7369 (-mstack-protector-guard-offset): Likewise.
7371 2019-01-18 Jakub Jelinek <jakub@redhat.com>
7373 PR tree-optimization/86214
7374 * tree-inline.h (struct copy_body_data): Add
7375 add_clobbers_to_eh_landing_pads member.
7376 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
7377 (copy_edges_for_bb): Call it if EH edge destination is <
7378 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
7379 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
7380 if flag_stack_reuse != SR_NONE and clear it afterwards.
7382 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
7385 * doc/install.texi (with-multilib-list): Document for aarch64.
7387 2019-01-18 Jakub Jelinek <jakub@redhat.com>
7390 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
7391 (("..."))) with ("...").
7393 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
7395 * doc/extend.texi (Built-in Functions for Memory Model Aware
7396 Atomic Operations): Document atomic fetch and nand.
7398 2019-01-18 Martin Liska <mliska@suse.cz>
7399 Richard Biener <rguenther@suse.de>
7402 * cgraph.h (create_version_clone_with_body): Add new argument
7404 * cgraphclones.c (cgraph_node::create_version_clone): Add
7405 DECL_ATTRIBUTES to a newly created decl. And call
7406 valid_attribute_p so that proper cl_target_optimization_node
7407 is set for the newly created declaration.
7408 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
7410 (expand_target_clones): Do not call valid_attribute_p, it must
7412 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
7415 2019-01-17 Jakub Jelinek <jakub@redhat.com>
7418 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
7419 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
7420 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
7422 2019-01-17 Martin Sebor <msebor@redhat.com>
7425 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
7426 Handle anti-ranges the same as no range at all.
7428 2018-01-17 Steve Ellcey <sellcey@cavium.com>
7430 * config/aarch64/aarch64.c (cgraph.h): New include.
7431 (intl.h): New include.
7432 (supported_simd_type): New function.
7433 (currently_supported_simd_type): Ditto.
7434 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
7435 (aarch64_simd_clone_adjust): Ditto.
7436 (aarch64_simd_clone_usable): Ditto.
7437 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
7438 (TARGET_SIMD_CLONE_ADJUST): Ditto.
7439 (TARGET_SIMD_CLONE_USABLE): Ditto.
7440 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
7441 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
7444 2019-01-17 Martin Sebor <msebor@redhat.com>
7446 PR tree-optimization/88800
7447 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
7448 NO_WARNING bit here. Avoid folding out-of-bounds calls.
7449 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
7450 redundant argument. Add new argument and issue diagnostics under
7451 its control. Detect out-of-bounds access even with warnings
7453 (check_bounds_or_overlap): Change return type. Add argument.
7454 (wrestrict_dom_walker::check_call): Adjust.
7455 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
7456 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
7457 check_bounds_or_overlap's return value.
7458 (handle_builtin_stxncpy): Same.
7459 (handle_builtin_strcat): Same.
7461 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7462 Kwok Cheung Yeung <kcy@codesourcery.com>
7463 Julian Brown <julian@codesourcery.com>
7464 Tom de Vries <tom@codesourcery.com>
7466 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
7468 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7470 * doc/sourcebuild.texi: Document dg-require-effective-target
7471 llvm_binutils and offload_gcn.
7473 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7474 Kwok Cheung Yeung <kcy@codesourcery.com>
7475 Julian Brown <julian@codesourcery.com>
7476 Tom de Vries <tom@codesourcery.com>
7478 * doc/sourcebuild.texi: Document dg-required-effective-target
7481 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7482 Kwok Cheung Yeung <kcy@codesourcery.com>
7483 Julian Brown <julian@codesourcery.com>
7484 Tom de Vries <tom@codesourcery.com>
7485 Jan Hubicka <hubicka@ucw.cz>
7486 Martin Jambor <mjambor@suse.cz>
7488 * config.gcc: Add amdgcn*-*-amdhsa configuration.
7489 * configure.ac: Check for dlopen.
7490 * configure: Regenerate.
7492 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7493 Kwok Cheung Yeung <kcy@codesourcery.com>
7494 Julian Brown <julian@codesourcery.com>
7495 Tom de Vries <tom@codesourcery.com>
7496 Jan Hubicka <hubicka@ucw.cz>
7497 Martin Jambor <mjambor@suse.cz>
7499 * common/config/gcn/gcn-common.c: New file.
7500 * config/gcn/driver-gcn.c: New file.
7501 * config/gcn/gcn-builtins.def: New file.
7502 * config/gcn/gcn-hsa.h: New file.
7503 * config/gcn/gcn-modes.def: New file.
7504 * config/gcn/gcn-opts.h: New file.
7505 * config/gcn/gcn-passes.def: New file.
7506 * config/gcn/gcn-protos.h: New file.
7507 * config/gcn/gcn-run.c: New file.
7508 * config/gcn/gcn-tree.c: New file.
7509 * config/gcn/gcn.c: New file.
7510 * config/gcn/gcn.h: New file.
7511 * config/gcn/gcn.opt: New file.
7512 * config/gcn/t-gcn-hsa: New file.
7514 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7515 Kwok Cheung Yeung <kcy@codesourcery.com>
7516 Julian Brown <julian@codesourcery.com>
7517 Tom de Vries <tom@codesourcery.com>
7518 Jan Hubicka <hubicka@ucw.cz>
7519 Martin Jambor <mjambor@suse.cz>
7521 * config/gcn/constraints.md: New file.
7522 * config/gcn/gcn-valu.md: New file.
7523 * config/gcn/gcn.md: New file.
7524 * config/gcn/predicates.md: New file.
7526 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
7528 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
7529 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
7530 (stmt_uses_0_or_null_in_undefined_way): Likewise.
7531 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
7533 2019-01-17 Tamar Christina <tamar.christina@arm.com>
7536 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
7537 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
7538 it and document registers.
7540 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7542 * config/aarch64/aarch64.c (ares_tunings): Define.
7543 * config/aarch64/aarch64-cores.def (ares): Use the above.
7545 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7549 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
7551 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
7552 (_mm512_fixupimm_round_pd): Update parameters and builtin.
7553 (_mm512_maskz_fixupimm_round_pd): Ditto.
7554 (_mm512_fixupimm_round_ps): Ditto.
7555 (_mm512_maskz_fixupimm_round_ps): Ditto.
7556 (_mm_fixupimm_round_sd): Ditto.
7557 (_mm_maskz_fixupimm_round_sd): Ditto.
7558 (_mm_fixupimm_round_ss): Ditto.
7559 (_mm_maskz_fixupimm_round_ss): Ditto.
7560 (_mm512_fixupimm_pd): Ditto.
7561 (_mm512_maskz_fixupimm_pd): Ditto.
7562 (_mm512_fixupimm_ps): Ditto.
7563 (_mm512_maskz_fixupimm_ps): Ditto.
7564 (_mm_fixupimm_sd): Ditto.
7565 (_mm_maskz_fixupimm_sd): Ditto.
7566 (_mm_fixupimm_ss): Ditto.
7567 (_mm_maskz_fixupimm_ss): Ditto.
7568 (_mm512_mask_fixupimm_round_pd): Update builtin.
7569 (_mm512_mask_fixupimm_round_ps): Ditto.
7570 (_mm_mask_fixupimm_round_sd): Ditto.
7571 (_mm_mask_fixupimm_round_ss): Ditto.
7572 (_mm512_mask_fixupimm_pd): Ditto.
7573 (_mm512_mask_fixupimm_ps): Ditto.
7574 (_mm_mask_fixupimm_sd): Ditto.
7575 (_mm_mask_fixupimm_ss): Ditto.
7576 * config/i386/avx512vlintrin.h:
7577 (_mm256_fixupimm_pd): Update parameters and builtin.
7578 (_mm256_maskz_fixupimm_pd): Ditto.
7579 (_mm256_fixupimm_ps): Ditto.
7580 (_mm256_maskz_fixupimm_ps): Ditto.
7581 (_mm_fixupimm_pd): Ditto.
7582 (_mm_maskz_fixupimm_pd): Ditto.
7583 (_mm_fixupimm_ps): Ditto.
7584 (_mm_maskz_fixupimm_ps): Ditto.
7585 (_mm256_mask_fixupimm_pd): Update builtin.
7586 (_mm256_mask_fixupimm_ps): Ditto.
7587 (_mm_mask_fixupimm_pd): Ditto.
7588 (_mm_mask_fixupimm_ps): Ditto.
7589 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
7590 * config/i386/i386-builtin.def: Update builtin definitions.
7591 * config/i386/i386.c: Handle new builtin types and remove useless ones.
7592 * config/i386/sse.md: Update VFIXUPIMM* patterns.
7593 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7594 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7595 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
7596 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7597 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7598 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
7599 * config/i386/subst.md:
7600 (round_saeonly_sd_mask_operand4): Add new subst_attr.
7601 (round_saeonly_sd_mask_op4): Ditto.
7602 (round_saeonly_expand_operand5): Ditto.
7603 (round_saeonly_expand): Update.
7605 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7609 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
7611 * config/i386/sse.md: Combine VFIXUPIMM* patterns
7612 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7613 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7614 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
7615 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7616 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7617 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
7619 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7623 2018-12-15 Jakub Jelinek <jakub@redhat.com>
7626 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
7627 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
7628 instead of UNSPEC_FIXUPIMM.
7630 2019-01-17 Richard Biener <rguenther@suse.de>
7633 * dwarf2out.c (want_pubnames): Never generate pubnames sections
7634 and friends for the LTO part of debug info.
7636 2019-01-17 Jakub Jelinek <jakub@redhat.com>
7638 PR tree-optimization/86214
7639 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
7642 PR rtl-optimization/88870
7643 * dce.c (deletable_insn_p): Never delete const/pure calls that can
7644 throw if we can't alter the cfg or delete dead exceptions.
7645 (mark_insn): Don't call find_call_stack_args for such calls.
7647 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
7649 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
7650 prototypes for vec_st.
7651 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
7652 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
7653 mainly on signed/unsigned long long and double.
7655 2019-01-16 David Malcolm <dmalcolm@redhat.com>
7658 * combine.c (delete_noop_moves): Convert to "bool" return,
7659 returning true if any edges are eliminated.
7660 (combine_instructions): Also return true if delete_noop_moves
7663 2019-01-16 Tamar Christina <tamar.christina@arm.com>
7665 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
7666 correct max nunits for endian swap.
7667 (aarch64_expand_fcmla_builtin): Correct subreg code.
7668 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
7669 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
7672 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
7674 * config/alpha/alpha.c (alpha_gimplify_va_arg):
7675 Handle split indirect COMPLEX_TYPE arguments.
7677 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
7680 * config/aarch64/aarch64-modes.def: Add comment about how the carry
7681 bit is set by add and compare.
7682 (CC_ADC): New CC_MODE.
7683 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
7684 to cache the code and mode of X. Adjust the shape of a CC_Cmode
7685 comparison. Add detection for CC_ADCmode.
7686 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
7688 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
7689 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
7690 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
7691 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
7692 to eliminate the need for zero-extending the operands.
7693 (add<mode>3_compareC_imm): Delete. Merge into ...
7694 (add<mode>3_compareC): ... this. Restructure the comparison to
7695 eliminate the need for zero-extending the operands.
7696 (add<mode>3_carryin): Use LTU for the overflow detection.
7697 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
7698 Reexpress comparison for overflow.
7699 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
7700 (add<mode>3_carryinC): Likewise.
7701 (add<mode>3_carryinV): Use LTU for carry between partials.
7702 * config/aarch64/predicates.md (aarch64_carry_operation): Update
7703 handling of CC_Cmode and add CC_ADCmode.
7704 (aarch64_borrow_operation): Likewise.
7706 2019-01-16 Tamar Christina <tamar.christina@arm.com>
7708 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
7709 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
7710 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
7711 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
7713 2019-01-16 Martin Liska <mliska@suse.cz>
7715 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
7717 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
7719 * gcc.c (add_sysrooted_hdrs_prefix): New function.
7720 (path_prefix_reset): Move up in the source file.
7721 (find_fortran_preinclude_file): Make complex search for the
7722 fortran header files.
7724 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
7726 * godump.c (go_output_typedef): When outputting a typedef, refer
7727 to the underlying type by its name and not its structure.
7729 2019-01-15 David Malcolm <dmalcolm@redhat.com>
7732 * tree.c (build_function_type): Assert that arg_types is not
7735 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
7738 * doc/extend.texi: Document that listing the stack pointer in the
7739 clobber list of an asm is a deprecated feature.
7740 * common.opt (Wdeprecated): Moved from c-family/c.opt.
7741 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
7742 warning instead of an error for clobbers of the stack pointer.
7743 Add a note explaining why.
7745 2019-01-15 Richard Biener <rguenther@suse.de>
7748 * dwarf2out.c (gen_member_die): Do not generate inheritance
7751 2019-01-15 Richard Biener <rguenther@suse.de>
7753 PR tree-optimization/88855
7754 * tree-if-conv.c (combine_blocks): Collect
7755 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
7757 2019-01-15 Tom de Vries <tdevries@suse.de>
7760 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
7761 lhs == NULL_TREE for gang-level reduction.
7763 2019-01-15 Richard Biener <rguenther@suse.de>
7764 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7767 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
7768 return true if SSA_NAME is already marked in visited bitmap.
7769 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
7771 2019-01-15 Jakub Jelinek <jakub@redhat.com>
7773 PR tree-optimization/88775
7774 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
7775 equal == 0 equality pointer comparisons some more if compared in
7776 integral types and either one points to an automatic var and the
7777 other to a global, or we can prove at least one points to the middle
7778 or both point to start or both point to end.
7780 2019-01-14 Andi Kleen <ak@linux.intel.com>
7782 * Makefile.in: Lower autofdo sampling rate by 10x.
7783 * Makefile.tpl: Dito.
7785 2019-01-14 Tom Honermann <tom@honermann.net>
7787 * defaults.h: Define CHAR8_TYPE.
7789 2019-01-14 Martin Sebor <msebor@redhat.com>
7792 * doc/extend.texi (Darwin Format Checks): Clarify.
7794 2019-01-14 Richard Biener <rguenther@suse.de>
7796 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
7797 whether we are in (simplify ...) or (match ...) context.
7799 2019-01-14 Jakub Jelinek <jakub@redhat.com>
7801 PR rtl-optimization/88796
7802 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
7803 * cfgexpand.c (stack_protect_prologue): Initialize
7804 crtl->stack_protect_guard_decl.
7805 * function.c (stack_protect_epilogue): Use it instead of calling
7806 targetm.stack_protect_guard again.
7807 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
7808 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
7809 crtl->stack_protect_guard_decl.
7810 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
7811 on the returned MEM_EXPR.
7813 2019-01-12 Tom de Vries <tdevries@suse.de>
7815 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
7816 vector length using -fopenacc-dim.
7818 2019-01-12 Tom de Vries <tdevries@suse.de>
7820 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
7821 lengths into account.
7823 2019-01-12 Svante Signell <svante.signell@gmail.com>
7825 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
7826 (TARGET_CAN_SPLIT_STACK): Define.
7827 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
7829 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
7831 * params.def (inline-unit-growth): Set to 40.
7833 2019-01-12 Jakub Jelinek <jakub@redhat.com>
7835 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
7837 2019-01-12 Tom de Vries <tdevries@suse.de>
7839 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
7840 region calling vector-partitionable routine, set default_vector_length
7843 2019-01-12 Tom de Vries <tdevries@suse.de>
7845 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
7846 variable default_vector_length.
7848 2019-01-12 Tom de Vries <tdevries@suse.de>
7851 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
7852 from oacc_default_dims, as oacc_validate_dims would do it, and apply
7855 2019-01-12 Tom de Vries <tdevries@suse.de>
7857 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
7858 (nvptx_goacc_validate_dims): Add used parameter.
7859 * doc/tm.texi: Regenerate.
7860 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
7861 argument to call to targetm.goacc.validate_dims.
7862 (default_goacc_validate_dims): Add used
7864 * target.def (validate_dims): Add used parameter in DEFHOOK.
7865 * targhooks.h (default_goacc_validate_dims): Add used parameter.
7867 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7871 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
7873 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
7874 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
7875 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
7876 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
7878 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
7880 PR rtl-optimization/87305
7882 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
7883 for little endian pseudos used as paradoxical subreg.
7885 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7887 PR tree-optimization/88693
7888 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
7889 for STRING_CSTs that don't contain any NUL characters in the first
7890 TREE_STRING_LENGTH bytes.
7892 2019-01-11 Alan Modra <amodra@gmail.com>
7896 * genattrtab.c (min_fn): Don't translate values.
7897 (min_attr_value): Return INT_MAX when the value can't be calculated.
7898 Return minimum among any values that can be calculated.
7899 (max_attr_value): Adjust.
7901 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7903 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
7905 2019-01-11 Steve Ellcey <sellcey@marvell.com>
7907 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
7908 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
7909 (aarch64_return_call_with_max_clobbers): New function.
7910 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
7911 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
7913 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
7914 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
7915 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
7916 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
7917 * cselib.c (cselib_process_insn): Add argument to
7918 targetm.hard_regno_call_part_clobbered call.
7919 * ira-conflicts.c (ira_build_conflicts): Ditto.
7920 * ira-costs.c (ira_tune_allocno_costs): Ditto.
7921 * lra-constraints.c (inherit_reload_reg): Ditto.
7922 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
7923 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
7924 argument. Call targetm.return_call_with_max_clobbers.
7925 Add argument to targetm.hard_regno_call_part_clobbered call.
7926 (calls_have_same_clobbers_p): New function.
7927 (process_bb_lives): Add call_insn and last_call_insn variables.
7928 Pass call_insn to check_pseudos_live_through_calls.
7929 Modify if stmt to check targetm.return_call_with_max_clobbers.
7930 Update setting of flush variable.
7931 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
7933 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
7934 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
7935 targetm.hard_regno_call_part_clobbered call.
7936 * reginfo.c (choose_hard_reg_mode): Ditto.
7937 * regrename.c (check_new_reg_p): Ditto.
7938 * reload.c (find_equiv_reg): Ditto.
7939 * reload1.c (emit_reload_insns): Ditto.
7940 * sched-deps.c (deps_analyze_insn): Ditto.
7941 * sel-sched.c (init_regs_for_mode): Ditto.
7942 (mark_unavailable_hard_regs): Ditto.
7943 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
7944 * target.def (hard_regno_call_part_clobbered): Add insn argument.
7945 (return_call_with_max_clobbers): New target function.
7946 * doc/tm.texi: Regenerate.
7947 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
7948 * hooks.c (hook_bool_uint_mode_false): Change to
7949 hook_bool_insn_uint_mode_false.
7950 * hooks.h (hook_bool_uint_mode_false): Ditto.
7952 2019-01-11 Steve Ellcey <sellcey@marvell.com>
7954 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
7955 (aarch64_remove_extra_call_preserved_regs): New function.
7956 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
7957 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
7958 * doc/tm.texi: Regenerate.
7959 * final.c (get_call_reg_set_usage): Call new hook.
7960 * target.def (remove_extra_call_preserved_regs): New hook.
7961 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
7962 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
7964 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7967 * passes.c (finish_optimization_passes): Call print_combine_total_stats
7968 inside of pass_combine_1 dump rather than pass_profile_1.
7970 2019-01-11 Tom de Vries <tdevries@suse.de>
7972 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
7973 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
7974 (PTX_NUM_PER_WORKER_BARRIERS): Define.
7975 (nvptx_apply_dim_limits): Prevent vector_length 64 and
7978 2019-01-11 Tom de Vries <tdevries@suse.de>
7980 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
7982 2019-01-11 Jan Beulich <jbeulich@suse.com>
7984 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
7985 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
7986 sse2_cvtsi2sd): Add {l}.
7987 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
7990 2019-01-10 Jakub Jelinek <jakub@redhat.com>
7993 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
7995 (*float<floatunssuffix>v2div2sf2): New define_insn.
7996 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
7997 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
7998 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
7999 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
8000 match_operands with "const0_operand" "C".
8002 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8004 * config/aarch64/aarch64-builtins.c
8005 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
8006 (aarch64_init_simd_builtins): ...Here
8008 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
8010 PR rtl-optimization/87305
8012 (setup_live_pseudos_and_spill_after_risky_transforms): Check
8013 allocation for big endian pseudos used as paradoxical subregs and
8014 spill them if it is wrong.
8015 * lra-constraints.c (lra_constraints): Add a comment.
8017 2019-01-10 Richard Biener <rguenther@suse.de>
8019 PR tree-optimization/88792
8020 * tree-ssa-pre.c (get_representative_for): Do not return a
8023 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8027 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
8028 (assign_parm_setup_block): Do the argument slot realignment here
8031 2019-01-10 Stefan Agner <stefan@agner.ch>
8034 * config/arm/arm.c (arm_option_override_internal): Force
8035 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
8037 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8040 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
8043 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8045 * config/arm/arm-builtins.c
8046 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
8047 (MAC_LANE_PAIR_QUALIFIERS): New.
8048 (arm_expand_builtin_args): Use it.
8049 (arm_expand_builtin_1): Likewise.
8050 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
8051 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
8052 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
8053 * config/arm/arm_neon.h:
8054 (vcadd_rot90_f16): New.
8055 (vcaddq_rot90_f16): New.
8056 (vcadd_rot270_f16): New.
8057 (vcaddq_rot270_f16): New.
8060 (vcmla_lane_f16): New.
8061 (vcmla_laneq_f16): New.
8062 (vcmlaq_lane_f16): New.
8063 (vcmlaq_laneq_f16): New.
8064 (vcmla_rot90_f16): New.
8065 (vcmlaq_rot90_f16): New.
8066 (vcmla_rot90_lane_f16): New.
8067 (vcmla_rot90_laneq_f16): New.
8068 (vcmlaq_rot90_lane_f16): New.
8069 (vcmlaq_rot90_laneq_f16): New.
8070 (vcmla_rot180_f16): New.
8071 (vcmlaq_rot180_f16): New.
8072 (vcmla_rot180_lane_f16): New.
8073 (vcmla_rot180_laneq_f16): New.
8074 (vcmlaq_rot180_lane_f16): New.
8075 (vcmlaq_rot180_laneq_f16): New.
8076 (vcmla_rot270_f16): New.
8077 (vcmlaq_rot270_f16): New.
8078 (vcmla_rot270_lane_f16): New.
8079 (vcmla_rot270_laneq_f16): New.
8080 (vcmlaq_rot270_lane_f16): New.
8081 (vcmlaq_rot270_laneq_f16): New.
8082 (vcadd_rot90_f32): New.
8083 (vcaddq_rot90_f32): New.
8084 (vcadd_rot270_f32): New.
8085 (vcaddq_rot270_f32): New.
8088 (vcmla_lane_f32): New.
8089 (vcmla_laneq_f32): New.
8090 (vcmlaq_lane_f32): New.
8091 (vcmlaq_laneq_f32): New.
8092 (vcmla_rot90_f32): New.
8093 (vcmlaq_rot90_f32): New.
8094 (vcmla_rot90_lane_f32): New.
8095 (vcmla_rot90_laneq_f32): New.
8096 (vcmlaq_rot90_lane_f32): New.
8097 (vcmlaq_rot90_laneq_f32): New.
8098 (vcmla_rot180_f32): New.
8099 (vcmlaq_rot180_f32): New.
8100 (vcmla_rot180_lane_f32): New.
8101 (vcmla_rot180_laneq_f32): New.
8102 (vcmlaq_rot180_lane_f32): New.
8103 (vcmlaq_rot180_laneq_f32): New.
8104 (vcmla_rot270_f32): New.
8105 (vcmlaq_rot270_f32): New.
8106 (vcmla_rot270_lane_f32): New.
8107 (vcmla_rot270_laneq_f32): New.
8108 (vcmlaq_rot270_lane_f32): New.
8109 (vcmlaq_rot270_laneq_f32): New.
8110 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
8111 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
8112 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
8113 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
8114 vcmlaq_lane270): New.
8115 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
8116 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
8117 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
8118 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
8119 (arm_option_reconfigure_globals): Use them.
8120 * config/arm/iterators.md (VDF, VQ_HSF): New.
8121 (VCADD, VCMLA): New.
8122 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
8123 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
8125 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
8126 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
8128 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8130 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
8131 Add qualifier_lane_pair_index.
8132 (emit-rtl.h): Include.
8133 (TYPES_QUADOP_LANE_PAIR): New.
8134 (aarch64_simd_expand_args): Use it.
8135 (aarch64_simd_expand_builtin): Likewise.
8136 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
8138 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
8139 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
8140 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
8141 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
8142 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
8143 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
8144 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
8145 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
8146 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
8147 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
8148 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
8149 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
8150 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
8151 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
8152 Add __ARM_FEATURE_COMPLEX.
8153 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
8154 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
8155 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
8156 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
8157 fcmlaq_lane270): New.
8158 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
8159 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
8160 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
8161 * config/aarch64/arm_neon.h:
8162 (vcadd_rot90_f16): New.
8163 (vcaddq_rot90_f16): New.
8164 (vcadd_rot270_f16): New.
8165 (vcaddq_rot270_f16): New.
8168 (vcmla_lane_f16): New.
8169 (vcmla_laneq_f16): New.
8170 (vcmlaq_lane_f16): New.
8171 (vcmlaq_rot90_lane_f16): New.
8172 (vcmla_rot90_laneq_f16): New.
8173 (vcmla_rot90_lane_f16): New.
8174 (vcmlaq_rot90_f16): New.
8175 (vcmla_rot90_f16): New.
8176 (vcmlaq_laneq_f16): New.
8177 (vcmla_rot180_laneq_f16): New.
8178 (vcmla_rot180_lane_f16): New.
8179 (vcmlaq_rot180_f16): New.
8180 (vcmla_rot180_f16): New.
8181 (vcmlaq_rot90_laneq_f16): New.
8182 (vcmlaq_rot270_laneq_f16): New.
8183 (vcmlaq_rot270_lane_f16): New.
8184 (vcmla_rot270_laneq_f16): New.
8185 (vcmlaq_rot270_f16): New.
8186 (vcmla_rot270_f16): New.
8187 (vcmlaq_rot180_laneq_f16): New.
8188 (vcmlaq_rot180_lane_f16): New.
8189 (vcmla_rot270_lane_f16): New.
8190 (vcadd_rot90_f32): New.
8191 (vcaddq_rot90_f32): New.
8192 (vcaddq_rot90_f64): New.
8193 (vcadd_rot270_f32): New.
8194 (vcaddq_rot270_f32): New.
8195 (vcaddq_rot270_f64): New.
8199 (vcmla_lane_f32): New.
8200 (vcmla_laneq_f32): New.
8201 (vcmlaq_lane_f32): New.
8202 (vcmlaq_laneq_f32): New.
8203 (vcmla_rot90_f32): New.
8204 (vcmlaq_rot90_f32): New.
8205 (vcmlaq_rot90_f64): New.
8206 (vcmla_rot90_lane_f32): New.
8207 (vcmla_rot90_laneq_f32): New.
8208 (vcmlaq_rot90_lane_f32): New.
8209 (vcmlaq_rot90_laneq_f32): New.
8210 (vcmla_rot180_f32): New.
8211 (vcmlaq_rot180_f32): New.
8212 (vcmlaq_rot180_f64): New.
8213 (vcmla_rot180_lane_f32): New.
8214 (vcmla_rot180_laneq_f32): New.
8215 (vcmlaq_rot180_lane_f32): New.
8216 (vcmlaq_rot180_laneq_f32): New.
8217 (vcmla_rot270_f32): New.
8218 (vcmlaq_rot270_f32): New.
8219 (vcmlaq_rot270_f64): New.
8220 (vcmla_rot270_lane_f32): New.
8221 (vcmla_rot270_laneq_f32): New.
8222 (vcmlaq_rot270_lane_f32): New.
8223 (vcmlaq_rot270_laneq_f32): New.
8224 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
8225 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
8226 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
8227 (FCADD, FCMLA): New.
8229 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
8231 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
8235 * config/pa/pa.c: Change "can not" to "cannot".
8236 * gimple-ssa-evrp-analyze.c: Likewise.
8237 * ipa-icf.c: Likewise.
8238 * ipa-polymorphic-call.c: Likewise.
8239 * ipa-pure-const.c: Likewise.
8240 * lra-constraints.c: Likewise.
8241 * lra-remat.c: Likewise.
8242 * reload1.c: Likewise.
8243 * reorg.c: Likewise.
8244 * tree-ssa-uninit.c: Likewise.
8246 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
8250 * Makefile.in: Mechanically replace "can not" with "cannot".
8251 * alias.c: Likewise.
8252 * builtins.c: Likewise.
8253 * calls.c: Likewise.
8254 * cgraph.c: Likewise.
8255 * cgraph.h: Likewise.
8256 * cgraphclones.c: Likewise.
8257 * cgraphunit.c: Likewise.
8258 * combine-stack-adj.c: Likewise.
8259 * combine.c: Likewise.
8260 * common/config/i386/i386-common.c: Likewise.
8261 * config/aarch64/aarch64.c: Likewise.
8262 * config/alpha/sync.md: Likewise.
8263 * config/arc/arc.c: Likewise.
8264 * config/arc/predicates.md: Likewise.
8265 * config/arm/arm-c.c: Likewise.
8266 * config/arm/arm.c: Likewise.
8267 * config/arm/arm.h: Likewise.
8268 * config/arm/arm.md: Likewise.
8269 * config/arm/cortex-r4f.md: Likewise.
8270 * config/csky/csky.c: Likewise.
8271 * config/csky/csky.h: Likewise.
8272 * config/darwin-f.c: Likewise.
8273 * config/epiphany/epiphany.md: Likewise.
8274 * config/i386/i386.c: Likewise.
8275 * config/i386/sol2.h: Likewise.
8276 * config/m68k/m68k.c: Likewise.
8277 * config/mcore/mcore.h: Likewise.
8278 * config/microblaze/microblaze.md: Likewise.
8279 * config/mips/20kc.md: Likewise.
8280 * config/mips/sb1.md: Likewise.
8281 * config/nds32/nds32.c: Likewise.
8282 * config/nds32/predicates.md: Likewise.
8283 * config/pa/pa.c: Likewise.
8284 * config/rs6000/e300c2c3.md: Likewise.
8285 * config/rs6000/rs6000.c: Likewise.
8286 * config/s390/s390.h: Likewise.
8287 * config/sh/sh.c: Likewise.
8288 * config/sh/sh.md: Likewise.
8289 * config/spu/vmx2spu.h: Likewise.
8290 * cprop.c: Likewise.
8291 * dbxout.c: Likewise.
8292 * df-scan.c: Likewise.
8293 * doc/cfg.texi: Likewise.
8294 * doc/extend.texi: Likewise.
8295 * doc/fragments.texi: Likewise.
8296 * doc/gty.texi: Likewise.
8297 * doc/invoke.texi: Likewise.
8298 * doc/lto.texi: Likewise.
8299 * doc/md.texi: Likewise.
8300 * doc/objc.texi: Likewise.
8301 * doc/rtl.texi: Likewise.
8302 * doc/tm.texi: Likewise.
8304 * emit-rtl.c: Likewise.
8305 * emit-rtl.h: Likewise.
8306 * except.c: Likewise.
8307 * expmed.c: Likewise.
8309 * fold-const.c: Likewise.
8310 * genautomata.c: Likewise.
8311 * gimple-fold.c: Likewise.
8312 * hard-reg-set.h: Likewise.
8313 * ifcvt.c: Likewise.
8314 * ipa-comdats.c: Likewise.
8315 * ipa-cp.c: Likewise.
8316 * ipa-devirt.c: Likewise.
8317 * ipa-fnsummary.c: Likewise.
8318 * ipa-icf.c: Likewise.
8319 * ipa-inline-transform.c: Likewise.
8320 * ipa-inline.c: Likewise.
8321 * ipa-polymorphic-call.c: Likewise.
8322 * ipa-profile.c: Likewise.
8323 * ipa-prop.c: Likewise.
8324 * ipa-pure-const.c: Likewise.
8325 * ipa-reference.c: Likewise.
8326 * ipa-split.c: Likewise.
8327 * ipa-visibility.c: Likewise.
8329 * ira-build.c: Likewise.
8330 * ira-color.c: Likewise.
8331 * ira-conflicts.c: Likewise.
8332 * ira-costs.c: Likewise.
8333 * ira-int.h: Likewise.
8334 * ira-lives.c: Likewise.
8337 * loop-invariant.c: Likewise.
8338 * loop-unroll.c: Likewise.
8339 * lower-subreg.c: Likewise.
8340 * lra-assigns.c: Likewise.
8341 * lra-constraints.c: Likewise.
8342 * lra-eliminations.c: Likewise.
8343 * lra-lives.c: Likewise.
8344 * lra-remat.c: Likewise.
8345 * lra-spills.c: Likewise.
8347 * lto-cgraph.c: Likewise.
8348 * lto-streamer-out.c: Likewise.
8349 * postreload-gcse.c: Likewise.
8350 * predict.c: Likewise.
8351 * profile-count.h: Likewise.
8352 * profile.c: Likewise.
8353 * recog.c: Likewise.
8355 * reload.c: Likewise.
8356 * reload1.c: Likewise.
8357 * reorg.c: Likewise.
8358 * resource.c: Likewise.
8359 * rtl.def: Likewise.
8361 * rtlanal.c: Likewise.
8362 * sched-deps.c: Likewise.
8363 * sched-ebb.c: Likewise.
8364 * sched-rgn.c: Likewise.
8365 * sel-sched-ir.c: Likewise.
8366 * sel-sched.c: Likewise.
8367 * shrink-wrap.c: Likewise.
8368 * simplify-rtx.c: Likewise.
8369 * symtab.c: Likewise.
8370 * target.def: Likewise.
8371 * toplev.c: Likewise.
8372 * tree-call-cdce.c: Likewise.
8373 * tree-cfg.c: Likewise.
8374 * tree-complex.c: Likewise.
8375 * tree-core.h: Likewise.
8376 * tree-eh.c: Likewise.
8377 * tree-inline.c: Likewise.
8378 * tree-loop-distribution.c: Likewise.
8379 * tree-nrv.c: Likewise.
8380 * tree-profile.c: Likewise.
8381 * tree-sra.c: Likewise.
8382 * tree-ssa-alias.c: Likewise.
8383 * tree-ssa-dce.c: Likewise.
8384 * tree-ssa-dom.c: Likewise.
8385 * tree-ssa-forwprop.c: Likewise.
8386 * tree-ssa-loop-im.c: Likewise.
8387 * tree-ssa-loop-ivcanon.c: Likewise.
8388 * tree-ssa-loop-ivopts.c: Likewise.
8389 * tree-ssa-loop-niter.c: Likewise.
8390 * tree-ssa-phionlycprop.c: Likewise.
8391 * tree-ssa-phiopt.c: Likewise.
8392 * tree-ssa-propagate.c: Likewise.
8393 * tree-ssa-threadedge.c: Likewise.
8394 * tree-ssa-threadupdate.c: Likewise.
8395 * tree-ssa-uninit.c: Likewise.
8396 * tree-ssanames.c: Likewise.
8397 * tree-streamer-out.c: Likewise.
8400 * vr-values.c: Likewise.
8402 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
8404 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
8405 (ix86_split_xorsign): Ditto.
8406 * config/i386/i386.c (ix86_expand_xorsign): New function.
8407 (ix86_split_xorsign): Ditto.
8408 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
8409 (xorsign<mode>3): New expander.
8410 (xorsign<mode>3_1): New insn_and_split pattern.
8411 * config/i386/sse.md (xorsign<mode>3): New expander.
8413 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8415 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
8416 (*tablejump_sp64): Likewise.
8417 (*tablejump<P:mode>): ...this.
8418 (*call_address_sp32): Merge into...
8419 (*call_address_sp64): Likewise.
8420 (*call_address<P:mode>): ...this.
8421 (*call_symbolic_sp32): Merge into...
8422 (*call_symbolic_sp64): Likewise.
8423 (*call_symbolic<P:mode>): ...this.
8424 (call_value): Remove constraint and add predicate.
8425 (*call_value_address_sp32): Merge into...
8426 (*call_value_address_sp64): Likewise.
8427 (*call_value_address<P:mode>): ...this.
8428 (*call_value_symbolic_sp32): Merge into...
8429 (*call_value_symbolic_sp64): Likewise.
8430 (*call_value_symbolic<P:mode>): ...this.
8431 (*sibcall_symbolic_sp32): Merge into...
8432 (*sibcall_symbolic_sp64): Likewise.
8433 (*sibcall_symbolic<P:mode>): ...this.
8434 (sibcall_value): Remove constraint and add predicate.
8435 (*sibcall_value_symbolic_sp32): Merge into...
8436 (*sibcall_value_symbolic_sp64): Likewise.
8437 (*sibcall_value_symbolic<P:mode>): ...this.
8438 (window_save): Minor tweak.
8439 (*branch_sp32): Merge into...
8440 (*branch_sp64): Likewise.
8441 (*branch<P:mode>): ...this.
8443 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8444 James Clarke <jrtc27@jrtc27.com>
8447 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
8448 consistently in TLS address generation and adjust code to the renaming
8449 of patterns. Mark calls to __tls_get_addr as const.
8450 * config/sparc/sparc.md (tgd_hi22): Turn into...
8451 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
8452 (tgd_lo10): Turn into...
8453 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
8454 (tgd_add32): Merge into...
8455 (tgd_add64): Likewise.
8456 (tgd_add<P:mode>): ...this and use Pmode throughout.
8457 (tldm_hi22): Turn into...
8458 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
8459 (tldm_lo10): Turn into...
8460 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
8461 (tldm_add32): Merge into...
8462 (tldm_add64): Likewise.
8463 (tldm_add<P:mode>): ...this and use Pmode throughout.
8464 (tldm_call32): Merge into...
8465 (tldm_call64): Likewise.
8466 (tldm_call<P:mode>): ...this and use Pmode throughout.
8467 (tldo_hix22): Turn into...
8468 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
8469 (tldo_lox10): Turn into...
8470 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
8471 (tldo_add32): Merge into...
8472 (tldo_add64): Likewise.
8473 (tldo_add<P:mode>): ...this and use Pmode throughout.
8474 (tie_hi22): Turn into...
8475 (tie_hi22<P:mode>): ...this and use Pmode throughout.
8476 (tie_lo10): Turn into...
8477 (tie_lo10<P:mode>): ...this and use Pmode throughout.
8478 (tie_ld64): Use DImode throughout.
8479 (tie_add32): Merge into...
8480 (tie_add64): Likewise.
8481 (tie_add<P:mode>): ...this and use Pmode throughout.
8482 (tle_hix22_sp32): Merge into...
8483 (tle_hix22_sp64): Likewise.
8484 (tle_hix22<P:mode>): ...this and use Pmode throughout.
8485 (tle_lox22_sp32): Merge into...
8486 (tle_lox22_sp64): Likewise.
8487 (tle_lox22<P:mode>): ...this and use Pmode throughout.
8488 (*tldo_ldub_sp32): Merge into...
8489 (*tldo_ldub_sp64): Likewise.
8490 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
8491 (*tldo_ldub1_sp32): Merge into...
8492 (*tldo_ldub1_sp64): Likewise.
8493 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
8494 (*tldo_ldub2_sp32): Merge into...
8495 (*tldo_ldub2_sp64): Likewise.
8496 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
8497 (*tldo_ldsb1_sp32): Merge into...
8498 (*tldo_ldsb1_sp64): Likewise.
8499 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
8500 (*tldo_ldsb2_sp32): Merge into...
8501 (*tldo_ldsb2_sp64): Likewise.
8502 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
8503 (*tldo_ldub3_sp64): Use DImode throughout.
8504 (*tldo_ldsb3_sp64): Likewise.
8505 (*tldo_lduh_sp32): Merge into...
8506 (*tldo_lduh_sp64): Likewise.
8507 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
8508 (*tldo_lduh1_sp32): Merge into...
8509 (*tldo_lduh1_sp64): Likewise.
8510 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
8511 (*tldo_ldsh1_sp32): Merge into...
8512 (*tldo_ldsh1_sp64): Likewise.
8513 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
8514 (*tldo_lduh2_sp64): Use DImode throughout.
8515 (*tldo_ldsh2_sp64): Likewise.
8516 (*tldo_lduw_sp32): Merge into...
8517 (*tldo_lduw_sp64): Likewise.
8518 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
8519 (*tldo_lduw1_sp64): Use DImode throughout.
8520 (*tldo_ldsw1_sp64): Likewise.
8521 (*tldo_ldx_sp64): Likewise.
8522 (*tldo_stb_sp32): Merge into...
8523 (*tldo_stb_sp64): Likewise.
8524 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
8525 (*tldo_sth_sp32): Merge into...
8526 (*tldo_sth_sp64): Likewise.
8527 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
8528 (*tldo_stw_sp32): Merge into...
8529 (*tldo_stw_sp64): Likewise.
8530 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
8531 (*tldo_stx_sp64): Use DImode throughout.
8533 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8535 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
8536 check configure option to set BTI and Return Address Signing.
8537 * configure.ac: Add --enable-standard-branch-protection and
8538 --disable-standard-branch-protection.
8539 * configure: Regenerated.
8540 * doc/install.texi: Document the same.
8542 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8543 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8545 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
8546 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
8547 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
8549 * config/aarch64/aarch64-bti-insert.c: New file.
8550 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
8552 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
8554 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
8555 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
8556 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
8557 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
8559 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8561 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
8562 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
8563 Disable bti for -mbranch-protection=none.
8564 (aarch64_handle_standard_branch_protection): Enable bti for
8565 -mbranch-protection=standard.
8566 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
8567 -mbranch-protection.
8568 (aarch64_bti_enabled): Check if bti is enabled.
8569 * config/aarch64/aarch64.opt: Declare target variable.
8570 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
8572 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8574 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
8575 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
8576 (aarch64_expand_epilogue): Likewise.
8577 (aarch64_output_mi_thunk): Likewise
8578 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
8579 TAILCALL_ADDR_REGS to x16 and x17.
8580 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
8582 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8584 * config/aarch64/aarch64-option-extensions.def: Define
8585 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
8586 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
8587 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
8588 (AARCH64_FL_PREDRES): New.
8589 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
8590 AARCH64_FL_PREDRES by default.
8591 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
8593 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8595 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
8597 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
8598 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
8599 * doc/invoke.texi: Document ARMv8.5-A.
8601 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8603 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
8604 (xorsign<mode>3): Likewise.
8606 2019-01-09 Jelinek <jakub@redhat.com>
8609 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
8610 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
8612 PR rtl-optimization/88331
8613 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
8614 not currently_expanding_to_rtl.
8616 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8618 * doc/invoke.texi (-Os): Remove trailing spaces.
8619 (-finline-functions): Remove reference to -O2.
8621 2019-01-08 Jakub Jelinek <jakub@redhat.com>
8623 PR rtl-optimization/79593
8624 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
8626 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
8627 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
8629 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
8632 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
8636 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
8637 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
8639 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
8642 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
8643 ix86_avx_u128_mode_entry.
8645 2019-01-08 Martin Liska <mliska@suse.cz>
8647 PR tree-optimization/88753
8648 * tree-switch-conversion.c (switch_conversion::build_one_array):
8649 Come up with local variable constructor. Convert first to
8650 type of constructor values.
8652 2019-01-08 Richard Biener <rguenther@suse.de>
8654 PR tree-optimization/86554
8655 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
8656 rpo_avail): Move earlier.
8657 (visit_nary_op): When value-numbering to expressions
8658 with different overflow behavior make sure there's an
8659 available expression on the path.
8661 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
8663 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
8664 aarch64_parse_branch_protection,
8665 struct aarch64_branch_protect_type,
8666 aarch64_handle_no_branch_protection,
8667 aarch64_handle_standard_branch_protection,
8668 aarch64_validate_mbranch_protection,
8669 aarch64_handle_pac_ret_protection,
8670 aarch64_handle_attr_branch_protection,
8671 accepted_branch_protection_string,
8672 aarch64_pac_ret_subtypes,
8673 aarch64_branch_protect_types,
8674 aarch64_handle_pac_ret_leaf): Define.
8675 (aarch64_override_options_after_change_1, aarch64_override_options):
8676 Add check for accepted_branch_protection_string.
8677 (aarch64_option_save): Save accepted_branch_protection_string.
8678 (aarch64_option_restore): Save accepted_branch_protection_string.
8679 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
8680 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
8681 msign-return-address.
8682 * doc/invoke.texi: Add mbranch-protection.
8684 2019-01-08 Alan Modra <amodra@gmail.com>
8687 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
8688 Delete "unknownp" parameter. Adjust callers. Handle
8689 CONST_INT, PLUS, MINUS, and MULT.
8690 (attr_value_aligned): Renamed from or_attr_value.
8691 (min_attr_value): Return INT_MIN for unhandled rtl case..
8692 (min_fn): ..and translate to INT_MAX here.
8693 (write_length_unit_log): Modify to cope without "unknown".
8694 (write_attr_value): Handle IF_THEN_ELSE.
8696 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8698 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
8699 optimization for masked stores.
8701 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8704 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
8705 output vector directly to duplicate_and_interleave instead of
8706 going through a temporary. Postpone insertion of ctor_seq to
8707 the end of the loop.
8709 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
8712 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
8713 unsigned_p. Handle signed and unsigned overflow correction as
8715 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
8717 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
8719 (add<mode>3_compareV_imm): Make this callable for expanding.
8720 (subv<GPI:mode>4): Use register_operand for operand 1. Use
8721 aarch64_plus_operand for operand 2.
8722 (subv<GPI:mode>_insn): New insn pattern.
8723 (subv<GPI:mode>_imm): Likewise.
8724 (negv<GPI:mode>3): New expand pattern.
8725 (negv<GPI:mode>_insn): New insn pattern.
8726 (negv<GPI:mode>_cmp_only): Likewise.
8727 (cmpv<GPI:mode>_insn): Likewise.
8728 (subvti4): Use register_operand for operand 1. Update call to
8729 aarch64_expand_subvti.
8730 (usubvti4): Likewise.
8731 (negvti3): New expand pattern.
8732 (negdi_carryout): New insn pattern.
8733 (negvdi_carryinV): New insn pattern.
8734 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
8735 version the named version.
8736 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
8738 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
8740 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
8742 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
8743 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
8744 (sub<mode>3_carryinCV): Delete.
8745 (sub<GPI:mode>3_carryinV): New expand pattern.
8746 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
8748 2019-01-07 Richard Biener <rguenther@suse.de>
8750 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
8751 of tree_operand_hash.
8753 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8755 PR tree-optimization/88598
8756 * tree.h (single_nonzero_element): Declare.
8757 * tree.c (single_nonzero_element): New function.
8758 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
8759 if I is the only nonzero element of CST.
8761 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8763 PR tree-optimization/88598
8764 * tree.h (initializer_each_zero_or_onep): Declare.
8765 * tree.c (initializer_each_zero_or_onep): New function.
8766 (signed_or_unsigned_type_for): Handle float types too.
8767 (unsigned_type_for, signed_type_for): Update comments accordingly.
8768 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
8769 x & { 0 or -1, 0 or -1, ... }.
8771 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
8773 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
8774 with x86_64-pc-linux-gnu.
8776 2019-01-07 Tom de Vries <tdevries@suse.de>
8779 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
8781 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
8784 2019-01-07 Jakub Jelinek <jakub@redhat.com>
8786 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
8787 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
8788 TARGET_AVX512F as condition.
8791 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
8792 const_not_ok_for_debug_p target hook.
8793 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
8794 on UNSPEC and subexpressions thereof if all subexpressions of the
8795 UNSPEC are CONSTANT_P.
8797 PR tree-optimization/88676
8798 * tree-ssa-phiopt.c (two_value_replacement): New function.
8799 (tree_ssa_phiopt_worker): Call it.
8802 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
8803 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
8806 * tree-vect-generic.c: Include insn-config.h and recog.h.
8807 (expand_vector_piecewise): Add defaulted ret_type argument,
8808 if non-NULL, use that in preference to type for the result type.
8809 (expand_vector_parallel): Formatting fix.
8810 (do_vec_conversion, do_vec_narrowing_conversion,
8811 expand_vector_conversion): New functions.
8812 (expand_vector_operations_1): Call expand_vector_conversion
8813 for VEC_CONVERT ifn calls.
8814 * internal-fn.def (VEC_CONVERT): New internal function.
8815 * internal-fn.c (expand_VEC_CONVERT): New function.
8816 * fold-const-call.c (fold_const_vec_convert): New function.
8817 (fold_const_call): Use it for CFN_VEC_CONVERT.
8818 * doc/extend.texi (__builtin_convertvector): Document.
8820 2019-01-07 Tom de Vries <tdevries@suse.de>
8822 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
8823 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
8824 vector_red_partition, vector_red_sym): New global variables.
8825 (nvptx_option_override): Initialize vector_red_sym.
8826 (nvptx_declare_function_name): Restore red_partition register.
8827 (nvptx_file_end): Emit code to declare the vector reduction variables.
8828 (nvptx_output_red_partition): New function.
8829 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
8830 large vector reductions.
8831 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
8832 (nvptx_init_builtins): Add VECTOR_ADDR.
8833 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
8834 Handle nvptx_expand_shared_addr.
8835 (nvptx_get_shared_red_addr): Add vector argument and handle large
8837 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
8839 (nvptx_goacc_reduction_init): Likewise.
8840 (nvptx_goacc_reduction_fini): Likewise.
8841 (nvptx_goacc_reduction_teardown): Likewise.
8842 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
8843 init,fini,teardown}.
8844 (nvptx_init_axis_predicate): Initialize vector_red_partition.
8845 (nvptx_set_current_function): Init vector_red_partition.
8846 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
8847 (nvptx_red_partition): New insn.
8848 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
8850 2019-01-07 Tom de Vries <tdevries@suse.de>
8853 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
8856 2019-01-07 Tom de Vries <tdevries@suse.de>
8858 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
8859 (nvptx_option_override): Init oacc_bcast_partition.
8860 (nvptx_init_oacc_workers): New function.
8861 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
8862 (nvptx_needs_shared_bcast): New function.
8863 (nvptx_find_par): Generalize to enable vectors to use shared-memory
8865 (nvptx_shared_propagate): Initialize vector bcast partition and
8866 synchronization state.
8867 (nvptx_single): Generalize to enable vectors to use shared-memory
8869 (nvptx_process_pars): Likewise.
8870 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
8871 * config/nvptx/nvptx.h (struct machine_function): Add
8872 bcast_partition and sync_bar members.
8874 2019-01-07 Tom de Vries <tdevries@suse.de>
8876 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
8877 (nvptx_apply_dim_limits): New function.
8878 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
8881 2019-01-07 Tom de Vries <tdevries@suse.de>
8883 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
8884 as late as possible.
8886 2019-01-07 Tom de Vries <tdevries@suse.de>
8888 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
8889 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
8890 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
8891 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
8892 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
8894 2019-01-07 Tom de Vries <tdevries@suse.de>
8896 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
8898 2019-01-07 Tom de Vries <tdevries@suse.de>
8900 * omp-offload.c (oacc_get_min_dim): New function.
8901 * omp-offload.h (oacc_get_min_dim): Declare.
8903 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
8906 * config/i386/i386.c (function_value_ms_64): Return small sturct in
8907 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
8909 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8913 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
8915 * ipa-inline.c (edge_badness): Use inlined_time instead of
8916 inline_summaries->get.
8918 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8920 * opts.c (enable_fdo_optimizations): Enable
8921 version-loops-for-strides, loop-interchange, unrol-and-jam
8922 and tree-loop-distribution.
8923 * invoke.texi: Document newly enabled options.
8925 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8927 * doc/invoke.texi (max-inline-insns-small): New parameters.
8928 * ipa-inline.c (want_early_inline_function_p): simplify.
8929 (want_inline_small_function_p): Fix pasto from previous patch;
8930 use max-inline-insns-small bound.
8931 * params.def (max-inline-insns-small): New param.
8932 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
8933 variables correctly.
8935 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8937 * doc/invoke.texi: Document max-inline-insns-size,
8938 uninlined-function-insns, uninlined-function-time,
8939 uninlined-thunk-insns and uninlined-thunk-time.
8940 * params.def: Add max-inline-insns-size,
8941 uninlined-function-insns, uninlined-function-time,
8942 uninlined-thunk-insns and uninlined-thunk-time.
8943 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
8945 * ipa-inline.c (can_inline_edge_by_limits_p,
8946 want_inline_small_function_p): Use new parameters.
8948 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8950 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
8952 2019-01-05 Jakub Jelinek <jakub@redhat.com>
8956 * expr.c (expand_assignment): For calls returning VLA structures
8957 if to_rtx is not a MEM, force it into a stack temporary.
8960 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
8961 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
8962 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
8963 subexpressions of both operands.
8964 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
8965 subrtxes are CONSTANT_P.
8966 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
8969 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
8971 * params.def (hot-bb-count-ws-permille): Set to 990.
8973 2019-01-04 Martin Sebor <msebor@redhat.com>
8976 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
8979 2019-01-04 Martin Sebor <msebor@redhat.com>
8982 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
8984 2019-01-04 Jakub Jelinek <jakub@redhat.com>
8986 * gdbinit.in: Turn off pagination for the skip commands, restore
8987 it to previous state afterwards.
8989 2019-01-04 Jakub Jelinek <jakub@redhat.com>
8992 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
8993 of GET_MODE (opN) as modes of the libcall arguments.
8995 2019-01-04 Jan Beulich <jbeulich@suse.com>
8997 * config/i386/sse.md
8998 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
8999 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
9000 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
9001 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
9002 avx512f_vmcmp<mode>3<round_saeonly_name>,
9003 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
9004 avx512f_maskcmp<mode>3,
9005 <avx512>_cvt<ssemodesuffix>2mask<mode>,
9006 <avx512>_cvt<ssemodesuffix>2mask<mode>,
9007 *<avx512>_cvtmask2<ssemodesuffix><mode>,
9008 *<avx512>_cvtmask2<ssemodesuffix><mode>,
9009 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
9010 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
9011 <avx512>_gt<mode>3<mask_scalar_merge_name>,
9012 <avx512>_gt<mode>3<mask_scalar_merge_name>,
9013 <avx512>_testm<mode>3<mask_scalar_merge_name>,
9014 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
9015 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
9016 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
9017 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
9018 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
9019 avx512cd_maskb_vec_dup<mode>,
9020 avx512cd_maskw_vec_dup<mode>,
9021 avx512dq_fpclass<mode><mask_scalar_merge_name>,
9022 avx512dq_vmfpclass<mode>,
9023 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
9026 2019-01-03 Martin Sebor <msebor@redhat.com>
9028 PR tree-optimization/88659
9029 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
9031 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9033 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
9034 unaligned vsx and avoid lxvd2x/stxvd2x.
9035 (gen_lvx_v4si_move): New function.
9037 2019-01-03 Tom de Vries <tdevries@suse.de>
9039 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
9040 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
9042 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
9044 2019-01-03 Tom de Vries <tdevries@suse.de>
9046 * config/nvptx/nvptx.c (struct offload_attrs): New.
9047 (populate_offload_attrs): New function. Factor mask extraction out of
9048 nvptx_reorg. Add extraction of dimensions.
9049 (nvptx_reorg): Use populate_offload_attrs.
9051 2019-01-03 Tom de Vries <tdevries@suse.de>
9053 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
9054 cases for oacc_min_dims_p and routine_p. Add asserts for
9055 oacc_default_dims_p and offload_region_p.
9057 2019-01-03 Tom de Vries <tdevries@suse.de>
9059 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
9061 (nvptx_goacc_validate_dims): ... here.
9063 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
9065 PR tree-optimization/85574
9066 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
9068 (struct ssa_equip_hash_traits): Declare.
9069 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
9071 2019-01-03 Jakub Jelinek <jakub@redhat.com>
9074 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
9075 change it to qualified_type.
9077 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
9079 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
9080 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
9082 2019-01-02 Martin Sebor <msebor@redhat.com>
9083 Jeff Law <law@redhat.com>
9085 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
9086 (get_range_strlen_tree): Update appropriately.
9088 * gimple-fold.h (get_range_strlen): Drop unused last argument.
9090 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
9091 rather than set_range_info.
9092 * tree-ssa-strlen.c (set_strlen_range): Extracted from
9093 maybe_set_strlen_range. Handle potentially boundary crossing
9094 cases more conservatively.
9095 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
9096 Call set_strlen_range.
9097 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
9100 * gimple-fold.c (get_range_strlen): Update prototype to no longer
9101 need the flexp argument.
9102 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
9103 from calls to get_range_strlen. Update comments. Just update
9104 VAL for an unterminated const char array and let the reset of the
9105 code handle it normally. No longer try to set *flexp. Adjust
9107 (get_range_strlen): Update for the new get_range_strlen API.
9108 (get_maxval_strlen): Similarly.
9109 (gimple_fold_builtin_strlen): Handle update meaning of return value
9110 from get_range_strlen.
9111 * gimple-ssa-sprintf.c (get_string_length): Update for the new
9112 get_range_strlen API.
9114 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
9117 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
9118 false at WPA time when body was removed.
9120 2019-01-02 Martin Liska <mliska@suse.cz>
9122 PR tree-optimization/88650
9123 * predict.c (set_even_probabilities): Calculate probability
9124 remainer only when really used.
9126 2019-01-02 Richard Biener <rguenther@suse.de>
9129 * tree-data-ref.c (analyze_subscript_affine_affine): Use
9130 widest_ints when mangling max_stmt_execution results.
9132 2019-01-02 Richard Biener <rguenther@suse.de>
9134 PR tree-optimization/88621
9135 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
9136 bitfields when canoncalizing.
9138 2019-01-02 Richard Biener <rguenther@suse.de>
9141 * config/i386/x86-tune-costs.h (intel_cost): Adjust
9142 cost of cheap SSE instruction.
9144 2019-01-02 Richard Biener <rguenther@suse.de>
9147 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
9148 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
9150 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
9151 set after UIDs before splitting them.
9153 2019-01-01 Martin Sebor <msebor@redhat.com>
9154 Jeff Law <law@redhat.com>
9156 * gimple-fold.c (get_range_strlen_tree): Record if the computed
9157 length is optimistic. If it is, then arrange to compute the
9158 conservative length as well.
9160 * gimple-fold.h (get_range_strlen): Update prototype.
9161 * builtins.c (check_access): Update call to get_range_strlen to use
9162 c_strlen_data pointer. Change various variable accesses to instead
9163 pull data from the c_strlen_data structure.
9164 (check_strncat_sizes, expand_builtin_strncat): Likewise.
9165 * calls.c (maybe_warn_nonstring_arg): Likewise.
9166 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
9167 minimum length if maximum lengh is unknown.
9168 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
9169 that used c_strlen, it's no longer needed. Restructure slightly.
9170 (format_string): Set unlikely range appropriately.
9171 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
9173 (get_range_strlen): Accept c_strlen_data pointer for external
9174 call sites as well. Pass through to call to internal get_range_strlen.
9175 Adjust minlen, maxlen and maxbound as needed.
9176 (get_maxval_strlen): Update comments.
9177 (gimple_fold_builtin_strlen): Update call to get_range_strlen
9178 to use c_strlen_data pointer. Change variable accesses to instead
9179 use c_strlen_data data members.
9181 * gimple-fold.c (get_range_strlen): Update prototype.
9182 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
9183 local variables. Use pdata to return information to caller.
9184 Update calls to get_range_strlen. Update pdata->maxbound.
9185 (get_range_strlen -- static version): Similarly.
9186 (get_range_strlen -- extern version): Update for internal
9187 get_range_strlen API change. Convert to external data format.
9188 (get_maxval_strlen): Similarly.
9190 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
9192 * coverage.c (get_coverage_counts): Use current_function_decl.
9193 * profile.c (read_thunk_profile): New function.
9194 (branch_prob): Add THUNK parameter.
9195 * tree-profile.c (tree_profiling): Handle thunks.
9196 * value-prof.c (init_node_map): Handle thunks.
9197 * value-prof.h (branch_prob): Upate prototype.
9198 (read_thunk_profile): Declare.
9200 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9202 Update copyright years.
9204 * gcc.c (process_command): Update copyright notice dates.
9205 * gcov-dump.c (print_version): Ditto.
9206 * gcov.c (print_version): Ditto.
9207 * gcov-tool.c (print_version): Ditto.
9208 * gengtype.c (create_file): Ditto.
9209 * doc/cpp.texi: Bump @copying's copyright year.
9210 * doc/cppinternals.texi: Ditto.
9211 * doc/gcc.texi: Ditto.
9212 * doc/gccint.texi: Ditto.
9213 * doc/gcov.texi: Ditto.
9214 * doc/install.texi: Ditto.
9215 * doc/invoke.texi: Ditto.
9217 Copyright (C) 2019 Free Software Foundation, Inc.
9219 Copying and distribution of this file, with or without modification,
9220 are permitted in any medium without royalty provided the copyright
9221 notice and this notice are preserved.