1 2019-05-24 Richard Biener <rguenther@suse.de>
4 * tree-loop-distribution.c (struct partition): Add location
6 (partition_alloc): Initialize all fields.
7 (generate_memset_builtin): Use the location recorded in the
8 partition for the generated call.
9 (generate_memcpy_builtin): Likewise.
10 (classify_partition): Record the location of a single store
11 as location for the partition.
13 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
15 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
18 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
21 * common/config/aarch64/aarch64-common.c
22 (aarch64_rewrite_selected_cpu): Change local temporary variable
23 type from unsigned long to uint64_t.
24 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25 aarch64_get_extension_string_for_isa_flags): Change declaration to
26 match new definition by replacing unsigned long with uint64_t.
28 2019-05-24 Jakub Jelinek <jakub@redhat.com>
31 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
32 gen_attr_type just once instead of 4-7 times. Formatting fixes.
33 Handle stack_protect_test_<mode> codegen similarly to corresponding
36 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
38 * config/i386/darwin.h: Reject -mfentry*.
39 * doc/sourcebuild.texi: Document mfentry target support.
41 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
43 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
44 Rename to rs6000_global_entry_point_prologue_needed_p. Return
45 false for PC-relative functions.
46 (rs6000_output_function_prologue): Change called function name to
47 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
48 name,1" for PC-relative functions.
49 (rs6000_elf_declare_function_name): Change called function name to
50 rs6000_global_entry_point_prologue_needed_p.
52 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
55 * config/i386/i386.c (gen_rtx_cost):
56 Use ix86_tune_cost instead of ix86_cost.
58 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
59 Michael Meissner <meissner@linux.ibm.com>
60 Segher Boessenkool <segher@kernel.crashing.org>
62 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
64 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
65 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
66 (rs6000_fndecl_pcrel_p): Likewise.
67 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
68 error if -mpcrel is requested without -mcpu=future.
69 (rs6000_opt_masks): Add entry for pcrel.
70 (rs6000_fndecl_pcrel_p): New function.
71 (rs6000_pcrel_p): Likewise.
72 * config/rs6000/rs6000.opt (mpcrel): New option.
73 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
75 2019-05-23 Jan Hubicka <jh@suse.cz>
76 Martin Liska <mliska@suse.cz>
78 PR tree-optimization/90576
79 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
81 (aliasing_component_refs_p): Fix three way size compare conditional;
82 give up earlier in case we can not decide on equivalence.
84 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
85 Michael Meissner <meissner@linux.ibm.com>
86 Segher Boessenkool <segher@kernel.crashing.org>
88 * config.gcc: Add future cpu.
89 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
90 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
92 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
93 (RS6000_CPU): New instantiation for future cpu.
94 * config/rs6000/rs6000-opts.h (enum processor_type): Add
96 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
97 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
98 * config/rs6000/rs6000-tables.opt: Regenerate.
99 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
100 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
101 (rs6000_machine_from_flags): Handle future cpu.
102 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
103 PROCESSOR_POWER9 for now.
104 (rs6000_adjust_cost): Likewise.
105 (rs6000_issue_rate): Likewise.
106 (rs6000_register_move_cost): Likewise.
107 (rs6000_opt_masks): Add entry for future.
108 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
109 (MASK_FUTURE): New #define.
110 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
111 * config/rs6000/rs6000.opt (mfuture): New target option.
112 * doc/invoke.texi (mcpu): Add future cpu.
114 2019-05-23 Martin Liska <mliska@suse.cz>
117 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
118 operation points to a temporary (pointed via tree_to_wide_ref)
119 that is out of scope after the &.
121 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
124 * doc/extend.texi (Function Names): Add missing word.
126 2019-05-23 Richard Biener <rguenther@suse.de>
128 PR tree-optimization/88440
129 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
131 * tree-loop-distribution.c (generate_memset_builtin): Fold the
133 (generate_memcpy_builtin): Likewise.
134 (distribute_loop): Pass in whether to only distribute patterns.
135 (prepare_perfect_loop_nest): Also allow size optimization.
136 (pass_loop_distribution::execute): When optimizing a loop
137 nest for size allow pattern replacement.
139 2019-05-23 Jakub Jelinek <jakub@redhat.com>
142 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
145 2019-05-23 Martin Liska <mliska@suse.cz>
148 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
149 expression similarly to gimplify_decl_expr.
151 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
153 * cse.c (cse_dump_path): s/dump_file/f.
155 2019-05-22 David Malcolm <dmalcolm@redhat.com>
158 * diagnostic-format-json.cc: Include "selftest.h".
159 (json_from_expanded_location): Only add "file" key for non-NULL
161 (json_from_location_range): Don't add "start" and "finish"
162 children if they are UNKNOWN_LOCATION.
163 (selftest::test_unknown_location): New selftest.
164 (selftest::test_bad_endpoints): New selftest.
165 (selftest::diagnostic_format_json_cc_tests): New function.
166 * json.cc (json::object::get): New function.
167 (selftest::test_object_get): New selftest.
168 (selftest::json_cc_tests): Call it.
169 * json.h (json::object::get): New decl.
170 * selftest-run-tests.c (selftest::run_tests): Call
171 selftest::diagnostic_format_json_cc_tests.
172 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
175 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
176 Andrew Stubbs <amd@codesourcery.com>
178 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
179 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
180 (kernel): Rename to...
181 (main_kernel): ... this.
182 (load_image): Load _init_array and _fini_array kernels.
183 (run): Add argument for kernel to run.
184 (main): Run init_array_kernel before main_kernel, and
185 fini_array_kernel after.
186 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
187 amdgpu_hsa_kernel attribute on functions.
188 (gcn_disable_constructors): Delete.
189 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
190 * config/gcn/crt0.c (size_t): Define.
191 (_init_array, _fini_array): New.
192 (__preinit_array_start, __preinit_array_end,
193 __init_array_start, __init_array_end,
194 __fini_array_start, __fini_array_end): Declare weak references.
196 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
198 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
200 2019-05-22 Jason Merrill <jason@redhat.com>
202 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
204 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
207 * config/i386/i386-options.c (ix86_init_machine_status): Set
208 stack_frame_required to true.
209 * config/i386/i386.c (ix86_get_frame_size): New function.
210 (ix86_frame_pointer_required): Replace get_frame_size with
212 (ix86_compute_frame_layout): Likewise.
213 (ix86_find_max_used_stack_alignment): Changed to void. Set
214 stack_frame_required.
215 (ix86_finalize_stack_frame_flags): Always call
216 ix86_find_max_used_stack_alignment. Replace get_frame_size with
218 * config/i386/i386.h (machine_function): Add stack_frame_required.
220 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
222 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
224 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
226 * common/config/aarch64/aarch64-common.c
227 (struct aarch64_option_extension, struct processor_name_to_arch,
228 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
229 aarch64_contains_opt,
230 aarch64_get_extension_string_for_isa_flags): Change type of
231 variables storing flags to uint64_t.
232 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
233 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
234 * config/aarch64/aarch64.c (struct processor,
235 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
236 aarch64_validate_march, aarch64_override_options,
237 aarch64_option_print, aarch64_handle_attr_isa_flags,
238 aarch64_declare_function_name, aarch64_start_file): Make flag
240 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
241 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
242 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
243 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
244 * config/aarch64/driver-aarch64.c
245 (struct aarch64_arch_extension, struct aarch64_core_data,
246 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
247 flag variables uint64_t.
248 * doc/invoke.texi: Add documentation for new arguments.
250 2019-05-22 Richard Biener <rguenther@suse.de>
252 * alias.c (ao_ref_from_mem): Move stack-slot sharing
254 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
256 2019-05-22 Martin Liska <mliska@suse.cz>
259 * doc/extend.texi: Document the change.
261 2019-05-22 Richard Biener <rguenther@suse.de>
263 PR tree-optimization/90450
264 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
265 (mem_ref_hasher::equal): Check it.
266 (mem_ref_alloc): Initialize it.
267 (gather_mem_refs_stmt): Set it.
269 2019-05-22 Richard Biener <rguenther@suse.de>
271 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
273 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
276 2019-05-22 Alan Modra <amodra@gmail.com>
278 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
279 (ASM_CPU_SPEC): Conditionally add -many.
280 * config/rs6000/rs6000.c (rs6000_machine): New static var.
281 (rs6000_machine_from_flags, emit_asm_machine): New functions..
282 (rs6000_file_start): ..extracted from here, and modified to
284 (rs6000_output_function_prologue): Emit .machine as necessary.
285 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
287 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
288 added by check_vect_support_and_set_flags.
289 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
290 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
292 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
295 * ira-lives.c (process_bb_node_lives): Consider defs
296 for a call insn to be die before the call, not after.
298 * function.c (assign_parm_setup_block): Raise alignment of
299 stacked parameter only for STRICT_ALIGNMENT targets.
301 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
303 * config/rs6000/constraints.md (define_register_constraint "wz"):
305 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
306 RS6000_CONSTRAINT_wz.
307 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
308 (rs6000_init_hard_regno_mode_ok): Adjust.
309 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
310 * doc/md.texi (Machine Constraints): Adjust.
312 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
314 * config/rs6000/constraints.md (define_register_constraint "wl"):
316 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
317 RS6000_CONSTRAINT_wl.
318 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
319 (rs6000_init_hard_regno_mode_ok): Adjust.
320 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
321 * doc/md.texi (Machine Constraints): Adjust.
323 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
325 * config/rs6000/constraints.md (define_register_constraint "wm"):
327 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
328 RS6000_CONSTRAINT_wm.
329 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
330 (rs6000_init_hard_regno_mode_ok): Adjust.
331 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
332 * doc/md.texi (Machine Constraints): Adjust.
334 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
336 * config/rs6000/constraints.md (define_register_constraint "wk"):
338 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
339 RS6000_CONSTRAINT_wk.
340 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
341 (rs6000_init_hard_regno_mode_ok): Adjust.
342 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
343 * doc/md.texi (Machine Constraints): Adjust.
345 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
347 * config/rs6000/constraints.md (define_register_constraint "wj"):
349 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
350 RS6000_CONSTRAINT_wj.
351 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
352 (rs6000_init_hard_regno_mode_ok): Adjust.
353 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
355 * config/rs6000/vsx.md: Ditto.
356 * doc/md.texi (Machine Constraints): Adjust.
358 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
360 * config/rs6000/constraints.md (define_register_constraint "wh"):
362 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
363 RS6000_CONSTRAINT_wh.
364 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
365 (rs6000_init_hard_regno_mode_ok): Adjust.
366 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
367 * doc/md.texi (Machine Constraints): Adjust.
369 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
372 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
373 Avoid calling gen_lowpart with CONST operand.
375 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
377 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
378 field template_last_to_copy.
379 (ssa_create_duplicates): Set it, and use it. Attempt to
380 preserve more debug stmts.
382 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
384 * config/i386/sse.md (VF1_AVX2): New mode iterator.
385 (signbit<mode>2): New expander
387 2019-05-21 James Clarke <jrtc27@jrtc27.com>
390 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
391 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
393 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
395 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
396 %ebx and %ecx bafore calling cpuid with leaf 1 or
397 non-constant leaf argument.
399 2019-05-21 Alan Modra <amodra@gmail.com>
402 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
403 power9 direct move cost.
404 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
405 Correct comments and rename functions to suit parameters.
407 2019-05-21 Richard Biener <rguenther@suse.de>
410 * fold-const.c (fold_read_from_vector): New function.
411 * fold-const.h (fold_read_from_vector): Declare.
412 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
413 single-element insert permutations. Canonicalize selector
414 further and fix issue with last commit.
416 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
418 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
419 parameter with default value false to declaration.
420 (split_edges_for_insertion): New inline function. Wrapper for
421 split_critical_edges with for_edge_insertion_p = true.
422 * tree-cfg.c (split_critical_edges): Don't split non-critical
423 edges if for_edge_insertion_p is false. Fix whitespace.
424 * tree-ssa-pre.c (pass_pre::execute): Call
425 split_edges_for_insertion instead of split_critical_edges.
426 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
427 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
428 (pass_data_sink_code): Update function name in the comment.
430 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
432 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
433 around is_value_included_in that knows how to handle BIT_AND_EXPR.
434 (is_pred_expr_subset_of): Use the new function. Handle more cases where
435 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
438 2019-05-21 Martin Liska <mliska@suse.cz>
440 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
442 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
443 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
445 * config/rs6000/rs6000.c (rs6000_option_override_internal):
447 (rs6000_function_arg): Likewise.
448 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
449 (rs6000_expand_ternop_builtin): Use interval syntax.
450 (get_element_number): Likewise.
451 (altivec_expand_builtin): Likewise.
452 (rs6000_get_function_versions_dispatcher): Quote target_clones.
456 2019-05-20 Jakub Jelinek <jakub@redhat.com>
460 * function.h (struct function): Add calls_eh_return member.
461 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
462 gimplifying __builtin_eh_return call.
463 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
465 (expand_call_inline): Or in src_cfun->calls_eh_return into
466 dst_cfun->calls_eh_return.
467 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
468 cfun->calls_eh_return.
469 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
470 * lto-streamer-out.c (output_struct_function_base): Write
473 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
475 PR rtl-optimization/43147
476 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
479 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
481 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
482 (refs_may_alias_p_1): ... here; update stats.
483 (refs_may_alias_p): Do not update stats here.
485 2019-05-20 Richard Biener <rguenther@suse.de>
487 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
488 doesn't produce pointers.
489 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
490 the first operand points to.
492 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
494 * tree-ssa-alias.c (compare_sizes): New function.
495 (sompare_type_sizes): New function
496 (aliasing_component_refs_p): Use it.
497 (indirect_ref_may_alias_decl_p): Likewise.
499 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
501 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
503 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
505 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
506 (LIBLSAN_EARLY_SPEC): Likewise.
507 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
509 2019-05-20 Martin Liska <mliska@suse.cz>
511 * config/i386/i386.c (ix86_libc_has_fast_function):
512 Add ATTRIBUTE_UNUSED for the argument.
514 2019-05-20 Richard Biener <rguenther@suse.de>
516 * gimple-match-head.c: Include vec-perm-indices.h.
517 * generic-match-head.c: Likewise.
518 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
520 * fold-const.c (fold_vec_perm): Export.
521 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
524 2019-05-20 Jakub Jelinek <jakub@redhat.com>
526 * cfgloop.h (struct loop): Add simdlen member.
527 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
528 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
529 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
530 as new argument to autovectorize_vector_sizes target hook. If
531 loop->simdlen, pick up vector size where the vectorization factor
532 is equal to loop->simd, and if there is none, fall back to the first
534 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
536 * omp-low.c (omp_clause_aligned_alignment): Likewise.
537 * omp-general.c (omp_max_vf): Likewise.
538 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
539 * tree-vect-slp.c (vect_slp_bb): Likewise.
540 * target.def (autovectorize_vector_sizes): Add ALL argument and
542 * doc/tm.texi: Adjust documentation.
543 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
544 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
545 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
547 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
548 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
549 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
550 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
551 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
552 preferred vector size is not 512-bit or 256-bit, just put those
553 unpreferred ones last.
555 2019-05-20 Martin Liska <mliska@suse.cz>
557 * targhooks.c (default_libc_has_fast_function): New function.
558 * targhooks.h (default_libc_has_fast_function): Likewise.
560 2019-05-20 Martin Liska <mliska@suse.cz>
563 * builtins.c (expand_builtin_memory_copy_args): When having a
564 target with fast mempcpy implementation do now use memcpy.
565 * config/i386/i386.c (ix86_libc_has_fast_function): New.
566 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
567 * doc/tm.texi: Likewise.
568 * doc/tm.texi.in: Likewise.
570 * expr.c (emit_block_move_hints): Add 2 new arguments.
571 * expr.h (emit_block_move_hints): Bail out when libcall
572 to memcpy would be used.
574 2019-05-20 Martin Liska <mliska@suse.cz>
576 * profile-count.c: Add vertical spacing in order
577 to separate functions.
578 * profile-count.h: Likewise.
580 2019-05-20 Martin Liska <mliska@suse.cz>
582 * profile-count.h: Do not use full qualified
584 * profile-count.c (profile_count::to_frequency): Likewise.
586 2019-05-20 Martin Liska <mliska@suse.cz>
588 * profile-count.h (enum profile_quality): Use capital letters
589 for enum value names. Use the adjusted names.
590 * profile-count.c: Use the adjusted names.
592 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
594 * config/rs6000/constraints.md (define_register_constraint "wH"):
596 (define_register_constraint "wI"): Delete.
597 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
598 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
599 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
600 (rs6000_init_hard_regno_mode_ok): Adjust.
601 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
602 resp. "d", or with "wa" as appropriate, all with "p8v".
603 * config/rs6000/vsx.md: Ditto.
604 * doc/md.texi (Machine Constraints): Adjust.
606 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
608 * config/rs6000/constraints.md (define_register_constraint "wy"):
610 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
611 RS6000_CONSTRAINT_wy.
612 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
613 (rs6000_init_hard_regno_mode_ok): Adjust.
614 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
615 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
616 (define_mode_attr Fisa): New.
617 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
618 * doc/md.texi (Machine Constraints): Adjust.
620 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
622 * config/rs6000/constraints.md (define_register_constraint "wu"):
624 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
625 RS6000_CONSTRAINT_wu.
626 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
627 (rs6000_init_hard_regno_mode_ok): Adjust.
628 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
630 (define_mode_attr Fa): Delete.
631 * config/rs6000/vsx.md: Ditto.
632 * doc/md.texi (Machine Constraints): Adjust.
634 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
636 * config/rs6000/constraints.md (define_register_constraint "wJ"):
638 (define_register_constraint "wK"): Delete.
639 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
640 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
641 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
642 (rs6000_init_hard_regno_mode_ok): Adjust.
643 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
644 Replace "wK" constraint by "wH" with "p9v".
645 * config/rs6000/vsx.md: Ditto.
646 * doc/md.texi (Machine Constraints): Adjust.
648 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
650 * config/rs6000/constraints.md (define_register_constraint "wb"):
652 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
653 RS6000_CONSTRAINT_wb.
654 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
655 (rs6000_init_hard_regno_mode_ok): Adjust.
656 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
657 * config/rs6000/vsx.md: Ditto.
658 * doc/md.texi (Machine Constraints): Adjust.
660 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
662 * config/rs6000/constraints.md (define_register_constraint "wo"):
664 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
665 RS6000_CONSTRAINT_wo.
666 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
667 (rs6000_init_hard_regno_mode_ok): Adjust.
668 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
669 * config/rs6000/altivec.md: Ditto.
670 * doc/md.texi (Machine Constraints): Adjust.
672 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
674 * config/darwin-c.c (darwin_register_objc_includes): Do not
675 prepend the sysroot when building gnu-runtime header search
678 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
680 * config/darwin.c (darwin_file_end): Use switch_to_section ()
681 instead of direct output of the asm.
683 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
685 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
686 argument to be type bool (was int before).
687 (rs6000_emit_epilogue): Simplify some code. Declare some variables
688 at first use. Use type bool for some variables. Fix a theoretical
689 eh_return bug for svr4.
691 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
693 * config/rs6000/rs6000.md (isa): New attribute.
694 (enabled): New attribute.
696 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
698 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
699 assemble_start_function and assemble_end_function.
701 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
704 * omp-general.c (oacc_verify_routine_clauses): Change formal
705 parameters. Add checking if already marked with an OpenACC
706 'routine' directive. Adjust all users.
709 * omp-general.c (oacc_build_routine_dims): Move some of its
711 (oacc_verify_routine_clauses): ... this new function.
712 * omp-general.h (oacc_verify_routine_clauses): New prototype.
714 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
716 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
717 formating of picbase labels to match other ports.
719 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
721 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
722 in the generated code.
724 2019-05-16 Martin Sebor <msebor@redhat.com>
726 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
727 identifiers, keywords, operators, and types in diagnostics. Correct
728 quoting, spelling, and sentence capitalization issues.
729 (expand_builtin_atomic_is_lock_free): Same.
730 (fold_builtin_next_arg): Same.
731 * cfgexpand.c (expand_one_var): Same.
732 (tree_conflicts_with_clobbers_p): Same.
733 (expand_asm_stmt): Same.
734 (verify_loop_structure): Same.
735 * cgraphunit.c (process_function_and_variable_attributes): Same.
736 * collect-utils.c (collect_execute): Same.
737 * collect2.c (maybe_run_lto_and_relink): Same.
738 (is_lto_object_file): Same.
739 (scan_prog_file): Same.
740 * convert.c (convert_to_real_1): Same.
741 * dwarf2out.c (dwarf2out_begin_prologue): Same.
742 * except.c (verify_eh_tree): Same.
743 * gcc.c (execute): Same.
744 (eval_spec_function): Same.
746 (driver::set_up_specs): Same.
747 (compare_debug_auxbase_opt_spec_function): Same.
748 * gcov-tool.c (unlink_gcda_file): Same.
751 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
752 * gimplify.c (gimplify_asm_expr): Same.
753 (gimplify_adjust_omp_clauses): Same.
754 * hsa-gen.c (gen_hsa_addr_insns): Same.
755 (gen_hsa_insns_for_load): Same.
756 (gen_hsa_cmp_insn_from_gimple): Same.
757 (gen_hsa_insns_for_operation_assignment): Same.
758 (gen_get_level): Same.
759 (gen_hsa_alloca): Same.
760 (omp_simple_builtin::generate): Same.
761 (gen_hsa_atomic_for_builtin): Same.
762 (gen_hsa_insns_for_call): Same.
763 * input.c (dump_location_info): Same.
764 * ipa-devirt.c (compare_virtual_tables): Same.
765 * ira.c (ira_setup_eliminable_regset): Same.
766 * lra-assigns.c (lra_assign): Same.
767 * lra-constraints.c (lra_constraints): Same.
768 * lto-streamer-in.c (lto_input_mode_table): Same.
769 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
770 (merge_and_complain): Same.
771 (compile_offload_image): Same.
772 (compile_images_for_offload_targets): Same.
773 (debug_objcopy): Same.
776 * opts.c (print_specific_help): Same.
777 (parse_no_sanitize_attribute): Same.
779 (handle_param): Same.
780 * plugin.c (add_new_plugin): Same.
781 (parse_plugin_arg_opt): Same.
782 (try_init_one_plugin): Same.
783 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
784 operators, and types in diagnostics. Correct quoting and spelling
786 * read-rtl-function.c (parse_edge_flag_token): Same.
787 (function_reader::parse_enum_value): Same.
788 * reg-stack.c (check_asm_stack_operands): Same.
789 * regcprop.c (validate_value_data): Same.
790 * sched-rgn.c (make_pass_sched_fusion): Same.
791 * stmt.c (check_unique_operand_names): Same.
792 * targhooks.c (default_target_option_pragma_parse): Same.
793 * tlink.c (recompile_files): Same.
794 * toplev.c (process_options): Same.
796 * trans-mem.c (diagnose_tm_1): Same.
797 (ipa_tm_scan_irr_block): Same.
798 (ipa_tm_diagnose_transaction): Same.
799 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
800 format a tree code name in a diagnostic.
801 (verify_types_in_gimple_min_lval): Same.
802 (verify_types_in_gimple_reference): Same.
803 (verify_gimple_call): Same.
804 (verify_gimple_assign_unary): Same.
805 (verify_gimple_assign_binary): Same.
806 (verify_gimple_assign_ternary): Same.
807 (verify_gimple_assign_single): Same.
808 (verify_gimple_switch): Same.
809 (verify_gimple_label): Same.
810 (verify_gimple_phi): Same.
811 (verify_gimple_in_seq): Same.
812 (verify_eh_throw_stmt_node): Same.
813 (collect_subblocks): Same.
814 (gimple_verify_flow_info): Same.
815 (do_warn_unused_result): Same.
816 * tree-inline.c (expand_call_inline): Same.
817 * tree-into-ssa.c (update_ssa): Same.
818 * tree.c (tree_int_cst_elt_check_failed): Same.
819 (tree_vec_elt_check_failed): Same.
820 (omp_clause_operand_check_failed): Same.
821 (verify_type_variant): Same.
823 * value-prof.c (verify_histograms): Same.
824 * varasm.c (assemble_start_function): Same.
826 2019-05-16 Martin Sebor <msebor@redhat.com>
828 * config/i386/i386-expand.c (get_element_number): Quote keywords
829 and other internal names in diagnostics. Adjust other diagnostic
830 formatting issues noted by -Wformat-diag.
831 * config/i386/i386-features.c
832 (ix86_mangle_function_version_assembler_name): Same.
833 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
834 * config/i386/i386.c (ix86_function_type_abi): Same.
835 (ix86_function_ms_hook_prologue): Same.
836 (classify_argument): Same.
837 (ix86_expand_prologue): Same.
838 (ix86_md_asm_adjust): Same.
839 (ix86_memmodel_check): Same.
841 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
843 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
844 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
847 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
850 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
851 intrinsics without SSE/SSE2/SSSE3.
852 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
854 (*mmx_uavgv8qi3): Likewise.
856 2019-05-17 Richard Biener <rguenther@suse.de>
858 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
859 VEC_PERM_EXPR as __VEC_PERM with -gimple.
861 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
863 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
864 vec_sldw insn pattern.
866 2019-05-17 Richard Biener <rguenther@suse.de>
868 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
870 2019-05-17 Martin Liska <mliska@suse.cz>
873 * toplev.c (output_stack_usage): With LTO and sanitizer it
874 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
875 has no file location.
877 2019-05-16 Jakub Jelinek <jakub@redhat.com>
880 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
881 sz0 is equal to sz1, instead return false in that case.
883 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
884 has non-constant expression, force sctx.lane and use two
885 argument IFN_GOMP_SIMD_LANE instead of single argument.
886 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
887 two argument IFN_GOMP_SIMD_LANE without lhs.
888 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
890 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
892 (LOOP_REQUIRES_VERSIONING): Or in
893 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
894 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
896 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
897 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
898 from simd if clause if needed.
900 2019-05-16 Richard Biener <rguenther@suse.de>
902 * tree-affine.c (expr_to_aff_combination): New function split
904 (tree_to_aff_combination): ... here.
905 (aff_combination_expand): Avoid building a GENERIC tree.
907 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
909 * cgraphunit.c (cgraph_node::expand_thunk): Remove
910 assemble_start_function and assemble_end_function calls.
911 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
912 assemble_start_function and assemble_end_function.
913 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
914 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
915 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
916 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
917 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
918 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
919 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
920 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
921 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
922 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
923 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
924 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
926 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
927 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
928 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
929 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
930 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
931 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
932 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
933 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
934 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
935 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
936 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
937 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
938 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
939 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
941 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
942 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
943 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
945 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
947 * tree-ssa-alias.c (alias_stats): Add
948 aliasing_component_refs_p_may_alias and
949 aliasing_component_refs_p_no_alias.
950 (dump_alias_stats): Print aliasing_component_refs_p stats.
951 (aliasing_component_refs_p): Update stats.
953 2019-05-16 Martin Liska <mliska@suse.cz>
956 * multiple_target.c (expand_target_clones): Do not allow
957 target_clones being used with a symbol that is an alias.
959 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
961 PR tree-optimization/90394
962 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
963 positives rather than ICE for cases where (code2 == NE_EXPR
964 && code1 == BIT_AND_EXPR).
966 2019-05-16 Jakub Jelinek <jakub@redhat.com>
969 * tree-core.h (struct tree_decl_common): Document
970 decl_nonshareable_flag for PARM_DECLs.
971 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
972 * calls.c (expand_call): Don't try tail call if caller
973 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
974 passed on the stack and callee needs to pass any arguments on the
976 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
977 else if instead of series of mutually exclusive ifs. Handle
978 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
979 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
981 * lto-streamer.h (LTO_major_version): Bump to 9.
983 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
985 PR tree-optimization/90106
986 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
987 new parameter as new internal function call, also move it to new
989 (use_internal_fn): Pass internal function call to
990 shrink_wrap_one_built_in_call_with_conds.
992 2019-05-15 Jakub Jelinek <jakub@redhat.com>
994 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
996 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
997 safelen_int and set loop->dont_vectorize.
999 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1002 * config/i386/i386-builtin.def: Enable MMX intrinsics with
1004 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
1006 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
1007 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
1008 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
1011 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1014 * config/i386/mmx.md (*vec_dupv2sf): Changed to
1015 define_insn_and_split to support SSE emulation.
1016 (*vec_extractv2sf_0): Likewise.
1017 (*vec_extractv2sf_1): Likewise.
1018 (*vec_extractv2si_0): Likewise.
1019 (*vec_extractv2si_1): Likewise.
1020 (*vec_extractv2si_zext_mem): Likewise.
1021 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
1022 (vec_extractv2sf_1 splitter): Likewise.
1023 (vec_extractv2sfsf): Likewise.
1024 (vec_setv2si): Likewise.
1025 (vec_extractv2si_1 splitter): Likewise.
1026 (vec_extractv2sisi): Likewise.
1027 (vec_setv4hi): Likewise.
1028 (vec_extractv4hihi): Likewise.
1029 (vec_setv8qi): Likewise.
1030 (vec_extractv8qiqi): Likewise.
1031 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
1032 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
1033 (vec_extractv2sisi): Likewise.
1034 (vec_extractv4hihi): Likewise.
1035 (vec_extractv8qiqi): Likewise.
1036 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
1037 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
1038 (vec_initv2sisi): Likewise.
1039 (vec_initv4hihi): Likewise.
1040 (vec_initv8qiqi): Likewise.
1041 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
1042 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
1043 (vec_setv4hi): Likewise.
1044 (vec_setv8qi): Likewise.
1046 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1049 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
1050 TARGET_MMX_WITH_SSE.
1051 (MMXMODE:*mov<mode>_internal): Likewise.
1052 (MMXMODE:movmisalign<mode>): Likewise.
1054 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
1057 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
1058 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
1059 (sse2_cvtpd2pi): Ditto.
1060 (sse2_cvttpd2pi): Ditto.
1061 (*vec_concatv2sf_sse4_1): Ditto.
1062 (*vec_concatv2sf_sse): Ditto.
1063 (*vec_concatv2si_sse4_1): Ditto.
1064 (*vec_concatv2si): Ditto.
1065 (*vec_concatv4si_0): Ditto.
1066 (*vec_concatv2di_0): Ditto.
1068 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1071 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
1073 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1076 * config/i386/sse.md (ssse3_palignrdi): Changed to
1077 define_insn_and_split to support SSE emulation.
1079 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1082 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
1084 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1087 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
1088 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
1091 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1094 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
1095 or TARGET_MMX_WITH_SSE.
1096 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
1098 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1101 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
1103 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1106 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
1107 Changed to define_insn_and_split to support SSE emulation.
1109 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1112 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
1113 Changed to define_insn_and_split to support SSE emulation.
1115 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1118 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
1119 (*mmx_<emms>): This.
1120 (mmx_<emms>): New expander.
1122 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1125 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
1127 (*sse2_umulv1siv1di3): Add SSE2 emulation.
1129 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1132 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
1134 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1137 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
1139 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1142 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
1143 TARGET_MMX_WITH_SSE.
1144 (*mmx_uavgv4hi3): Add SSE emulation.
1146 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1149 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
1150 and TARGET_MMX_WITH_SSE.
1151 (*mmx_uavgv8qi3): Add SSE emulation.
1153 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1156 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
1157 maskmovdqu for __MMX_WITH_SSE__.
1159 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1162 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
1163 TARGET_MMX and TARGET_MMX_WITH_SSE.
1164 (*mmx_umulv4hi3_highpart): Add SSE emulation.
1166 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1169 * config/i386/mmx.md (mmx_pmovmskb): Changed to
1170 define_insn_and_split to support SSE emulation.
1172 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1175 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
1176 and TARGET_MMX_WITH_SSE.
1177 (mmx_<code>v8qi3): Likewise.
1178 (smaxmin:<code>v4hi3): New.
1179 (umaxmin:<code>v8qi3): Likewise.
1180 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
1181 (umaxmin:*mmx_<code>v8qi3): Likewise.
1183 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1186 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
1187 TARGET_MMX_WITH_SSE.
1188 (*mmx_pinsrw): Add SSE emulation.
1190 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1193 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
1195 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1198 * config/i386/sse.md (sse_cvtpi2ps): Changed to
1199 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
1202 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1205 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
1206 (sse_cvttps2pi): Likewise.
1208 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1211 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
1212 TARGET_MMX_WITH_SSE.
1213 (mmx_pshufw_1): Add SSE emulation.
1214 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
1215 TARGET_MMX_WITH_SSE to support SSE emulation.
1217 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1220 * config/i386/constraints.md (Yw): New constraint.
1221 * config/i386/mmx.md (*vec_dupv2si): Changed to
1222 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
1223 support SSE emulation.
1225 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1228 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
1229 TARGET_MMX_WITH_SSE.
1230 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
1232 (mmx_gt<mode>3): Likewise.
1234 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1237 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
1238 TARGET_MMX_WITH_SSE. Add SSE support.
1240 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1243 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
1244 TARGET_MMX_WITH_SSE.
1245 (any_logic:<code><mode>3): New.
1246 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
1249 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1252 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
1253 TARGET_MMX_WITH_SSE. Add SSE emulation.
1254 (mmx_<shift_insn><mode>3): Likewise.
1256 (<shift_insn><mode>3): Likewise.
1258 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1261 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
1262 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
1264 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1267 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
1268 TARGET_MMX_WITH_SSE.
1269 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
1272 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1275 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
1276 TARGET_MMX_WITH_SSE.
1278 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
1281 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1284 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
1285 (plusminus:mmx_<plusminus_insn><mode>3): Check
1286 TARGET_MMX_WITH_SSE.
1287 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
1288 (<plusminus_insn><mode>3): New.
1289 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
1290 (*mmx_<plusminus_insn><mode>3): Likewise.
1292 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1295 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
1296 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
1298 * config/i386/mmx.m (mmx_punpckhbw): Changed to
1299 define_insn_and_split to support SSE emulation.
1300 (mmx_punpcklbw): Likewise.
1301 (mmx_punpckhwd): Likewise.
1302 (mmx_punpcklwd): Likewise.
1303 (mmx_punpckhdq): Likewise.
1304 (mmx_punpckldq): Likewise.
1306 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1307 Uros Bizjak <ubizjak@gmail.com>
1310 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
1312 (ix86_split_mmx_pack): Likewise.
1313 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
1315 (ix86_split_mmx_pack): Likewise.
1316 * config/i386/i386.md (mmx_isa): New.
1317 (enabled): Also check mmx_isa.
1318 * config/i386/mmx.md (any_s_truncate): New code iterator.
1319 (s_trunsuffix): New code attr.
1320 (mmx_packsswb): Removed.
1321 (mmx_packssdw): Likewise.
1322 (mmx_packuswb): Likewise.
1323 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
1324 MMX packsswb/packuswb with SSE2.
1325 (mmx_packssdw): Likewise.
1326 * config/i386/predicates.md (register_mmxmem_operand): New.
1328 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1331 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1332 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
1333 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
1334 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
1335 (ix86_vector_mode_supported_p): Likewise.
1336 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
1338 2019-05-15 Martin Liska <mliska@suse.cz>
1341 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
1344 2019-05-15 Richard Biener <rguenther@suse.de>
1346 * tree-into-ssa.c (pass_build_ssa::execute): Run
1347 update_address_taken before going into SSA.
1349 2019-05-15 Richard Biener <rguenther@suse.de>
1351 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
1352 as __BIT_FIELD_REF with type with -gimple.
1354 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
1356 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
1357 semantically equivalent branches (left over after prior refactorings).
1359 2019-05-15 Richard Biener <rguenther@suse.de>
1361 PR tree-optimization/88828
1362 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
1365 2019-05-14 Richard Biener <rguenther@suse.de>
1367 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
1368 as __VIEW_CONVERT with -gimple.
1370 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1373 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
1376 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
1378 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
1379 define_split to become a define_insn_and_split.
1381 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
1383 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
1385 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
1386 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
1387 (sibcall_epilogue): Adjust.
1390 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1392 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
1393 to unsupported ones.
1394 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
1395 * config.host: Likewise.
1396 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
1397 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
1398 __svr4__]: Remove "brand" fallback.
1399 [!KSTAT_DATA_STRING]: Remove.
1400 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
1402 (comdat_group): Likewise.
1403 (set_have_as_tls): Likewise.
1404 (gcc_cv_target_dl_iterate_phdr): Likewise.
1405 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
1406 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
1407 * configure: Regenerate.
1408 * doc/install.texi: Simplify Solaris target triplets.
1409 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
1410 (Specific, *-*-solaris2*): Document Solaris 10 removal.
1411 Remove Solaris 10 references.
1412 Remove obsolete Solaris bug reference.
1413 (Specific, sparc-sun-solaris2.10): Remove.
1415 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
1417 * config/i386/i386.md (any_div): New code iterator.
1418 (paired_mod): New code attribute.
1419 (sgnprefix): Handle DIV and UDIV RTXes.
1421 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
1422 and udivmod<mode>4 patterns using any_div code iterator.
1423 (divmod splitters): Macroize splitters using any_div code iterator.
1424 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
1425 (*udivmodsi4_pow2_zext_2): Ditto.
1426 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
1427 and *udivmod<mode>4_noext patterns using any_div code iterator.
1428 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
1429 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
1430 patterns using any_div code iterator.
1431 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
1432 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
1433 patterns using any_div code iterator.
1434 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
1435 udivmodhiqi3 patterns using any_extend code iterator.
1437 2019-05-14 Richard Biener <rguenther@suse.de>
1438 H.J. Lu <hongjiu.lu@intel.com>
1440 PR tree-optimization/88828
1441 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1442 permuting in a single non-constant element not extracted
1445 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1447 * internal-fn.def (SIGNBIT): New.
1448 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
1450 (signbitv4sf2): Likewise.
1452 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
1455 * config/mips/mips.c (mips_split_move): Skip forward SRC into
1456 next insn when the SRC reg is dead.
1458 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
1460 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
1461 (alloc_cand_and_find_basis): Ditto.
1462 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
1463 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
1464 (create_add_imm_cand, slsr_process_cast): Ditto.
1465 (slsr_process_copy, replace_mult_candidate): Ditto.
1466 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
1467 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
1468 (pass_strength_reduction::execute): Init the first NULL element.
1470 2019-05-13 Nathan Sidwell <nathan@acm.org>
1472 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
1473 (run_attempt): Reformat line break.
1475 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
1478 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
1479 data registers in sibcall epilogues.
1480 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
1482 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
1485 * configure.ac (--enable-frame-pointer):
1486 Disable by default for cygwin and mingw.
1487 * configure: Regenerate.
1489 2019-05-13 Nathan Sidwell <nathan@acm.org>
1491 * dwarf2out.c (breakout_comdat_types): Move comment to correct
1493 (const_ok_for_output_1): Balance parens around #if/#else/#endif
1494 (gen_member_die): Move abstract origin check earlier. Only VARs
1495 can be static_inline_p. Simplify splicing control flow.
1497 2019-05-13 Richard Biener <rguenther@suse.de>
1499 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
1501 (vect_build_slp_tree_1): Likewise.
1503 2019-05-13 Richard Biener <rguenther@suse.de>
1505 PR tree-optimization/90402
1506 * tree-if-conv.c (tree_if_conversion): Value number only
1507 the loop body by making the latch an exit of the region
1509 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
1511 (do_rpo_vn): Deal with multiple edges into the entry block
1512 that are not backedges inside the region by skipping PHIs
1515 2019-05-13 Richard Biener <rguenther@suse.de>
1517 PR tree-optimization/90316
1518 * tree-ssa-pre.c (insert_aux): Fold into ...
1519 (insert): ... this function. Use a RPO walk to reduce the
1520 number of required iterations.
1522 2019-05-13 Martin Liska <mliska@suse.cz>
1524 PR tree-optimization/90416
1525 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
1526 string instead of passing the second part as va_arg argument.
1528 2019-05-13 Martin Liska <mliska@suse.cz>
1530 PR gcov-profile/90380
1531 * gcov.c (handle_cycle): Do not support zero cycle count,
1532 it should not be possible.
1533 (path_contains_zero_cycle_arc): New function.
1534 (circuit): Ignore zero cycle arc counts.
1536 2019-05-13 Martin Liska <mliska@suse.cz>
1538 PR gcov-profile/90380
1539 * gcov.c (enum loop_type): Remove the enum and
1541 (handle_cycle): Assert that we should not reach
1543 (circuit): Use loop_found instead of a tri-state loop_type.
1544 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
1547 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1550 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
1551 (ix86_output_indirect_branch_via_reg): Use output mechanism
1552 accounting for __USER_LABEL_PREFIX__.
1553 (ix86_output_indirect_branch_via_push): Likewise.
1554 (ix86_output_function_return): Likewise.
1555 (ix86_output_indirect_function_return): Likewise.
1557 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
1559 * doc/md.texi: Document use of code attributes in rtx patterns.
1560 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
1561 * read-rtl.c (find_code): Split out search loops into...
1562 (maybe_find_code): ...this new function.
1563 (check_code_iterator): Make the error message more informative.
1564 (check_code_attribute): New function.
1565 (rtx_reader::rtx_alloc_for_name): Likewise.
1566 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
1567 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
1568 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
1569 <max_opp> directly as an rtx code instead of via a match_operator.
1570 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
1571 (<su>abd<mode>_3): Update accordingly.
1573 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1575 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
1576 is given, print the state of the EH "save world" computation for
1579 2019-05-11 Jakub Jelinek <jakub@redhat.com>
1582 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
1583 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
1585 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
1587 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
1588 Use pinsrd for TARGET_SSE4_1.
1589 * config/i386/sse.md (movdi_to_sse): Ditto.
1591 2019-05-10 Richard Biener <rguenther@suse.de>
1593 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
1594 (do_rpo_vn): Initialize next_value_id.
1596 2019-05-10 Martin Liska <mliska@suse.cz>
1598 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
1601 2019-05-10 Jakub Jelinek <jakub@redhat.com>
1603 PR tree-optimization/90385
1604 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
1605 arguments of the exit phis.
1608 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
1609 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
1611 (copy_tree_body_r): Likewise.
1612 (copy_fn): Set id.do_not_fold to true.
1614 2019-05-10 Martin Liska <mliska@suse.cz>
1616 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
1617 Reapply changes from r269790.
1619 2019-05-10 Martin Liska <mliska@suse.cz>
1622 * doc/invoke.texi: New params.
1623 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
1624 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
1625 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
1627 * tree-switch-conversion.h (struct jump_table_cluster):
1630 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
1632 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
1634 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
1636 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
1638 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
1640 PR rtl-optimization/88879
1641 * sel-sched.c (sel_target_adjust_priority): Remove assert.
1643 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
1646 * config/arm/arm.c (callee_saved_reg_p): Move before
1647 thumb_find_work_register.
1648 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
1649 thumb_find_work_register. Only call df_get_live_out once.
1650 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
1651 (thumb_find_work_register): Use
1652 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
1653 algorithms to locate a spare call clobbered reg.
1655 2019-05-09 Martin Liska <mliska@suse.cz>
1657 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
1658 and MAX_EXPR in GIMPLE FE format.
1660 2019-05-09 Martin Liska <mliska@suse.cz>
1662 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
1663 * gimple-pretty-print.c (dump_gimple_bb_header):
1665 (pp_cfg_jump): Dump edge probability.
1666 * profile-count.c (profile_quality_as_string): Simplify
1667 with a static array.
1668 (parse_profile_quality): New function.
1669 (profile_count::dump): Simplify with a static array.
1670 (profile_count::from_gcov_type): Add new argument.
1671 * profile-count.h (parse_profile_quality): Likewise.
1672 * predict.h (set_hot_bb_threshold): New.
1673 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
1675 * predict.c (get_hot_bb_threshold): Set from the new param.
1676 (set_hot_bb_threshold): New.
1678 2019-05-09 Richard Biener <rguenther@suse.de>
1680 PR tree-optimization/90395
1681 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
1682 rewrite vector stores that throw internally.
1684 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
1686 * cif-code.def (CHKP): Remove.
1689 * configure.ac (--enable-frame-pointer): Disable by default for
1691 * configure: Regenerate.
1693 2019-05-09 Alan Modra <amodra@gmail.com>
1696 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
1697 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
1698 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
1699 cost for general <-> vsx when direct moves are available.
1700 Cost union classes at minimal cost for any reg in the class.
1701 Correct calculation for moves between vsx, float, and altivec.
1702 Don't return a low cost for moves between special regs. Don't
1703 use hard coded register numbers.
1704 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
1705 (rs6000_ira_change_pseudo_allocno_class): New function.
1706 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
1707 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
1709 (movsi_internal1): Don't disparage vector alternatives.
1710 (mov<mode>_internal): Likewise, excepting alternative that
1712 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
1713 we <- b alternative.
1715 2019-05-08 Jakub Jelinek <jakub@redhat.com>
1718 PR tree-optimization/89060
1719 * tree-ssa-live.h (live_vars_map): New typedef.
1720 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
1721 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
1722 (struct compute_live_vars_data): New type.
1723 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
1724 live_vars_at_stmt, destroy_live_vars): New functions.
1725 * tree-tailcall.c: Include tree-ssa-live.h.
1726 (live_vars, live_vars_vec): New global variables.
1727 (find_tail_calls): Perform variable life analysis before punting.
1728 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
1729 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
1731 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
1732 Perform variable life analysis to select variables that really need
1734 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
1735 instead set id->eh_landing_pad_dest and assert it is the same.
1736 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
1738 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
1739 Richard Earnshaw <rearnsha@arm.com>
1742 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
1744 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
1745 (thumb1_compute_save_core_reg_mask): Don't force a spare work
1746 register if both the epilogue and prologue can use call-clobbered
1748 (thumb1_unexpanded_epilogue): Use
1749 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
1750 picking temporaries for restoring high regs to match that of the
1751 prologue where possible.
1752 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
1753 the list of work registers. Detect if the return address is still live
1754 at the end of the prologue and avoid using it for a work register if so.
1755 If the return address is not live, add LR to the list of pushable regs
1756 after the first pass.
1758 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
1760 PR tree-optimization/90078
1761 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
1762 (INFTY): Increase the value for infinite cost.
1763 (struct comp_cost): Promote type of members to int64_t.
1764 (infinite_cost): Don't set complexity in initialization.
1765 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
1766 overflows to infinite_cost.
1767 (adjust_setup_cost): Promote type of parameter and cost computation
1769 (struct ainc_cost_data, struct iv_ca): Promote type of member to
1771 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
1772 cost computation to int64_t.
1773 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
1774 int64_t's format specifier in dump.
1776 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
1778 PR tree-optimization/90240
1779 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
1780 with respect to scaling factor pre-computed for each basic block.
1781 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
1782 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
1783 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
1784 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
1785 live range for array of loop's basic blocks. Cleanup aux field of
1786 loop's basic blocks.
1788 2019-05-08 Jakub Jelinek <jakub@redhat.com>
1790 PR tree-optimization/90356
1791 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
1793 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
1795 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
1796 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
1797 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
1798 (ix86_handle_option): Handle -mavx512bf16.
1799 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
1801 * config/i386/avx512bf16vlintrin.h: New.
1802 * config/i386/avx512bf16intrin.h: New.
1803 * config/i386/cpuid.h (bit_AVX512BF16): New.
1804 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
1805 * config/i386/i386-builtin-types.def: Add new types.
1806 * config/i386/i386-builtin.def: Add new builtins.
1807 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1809 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
1810 (ix86_option_override_internal): Handle BF16.
1811 (ix86_valid_target_attribute_inner_p): Ditto.
1812 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
1813 * config/i386/i386-builtin.c (enum processor_features): Add
1815 (static const _isa_names_table isa_names_table): Ditto.
1816 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
1817 (PTA_AVX512BF16): Ditto.
1818 * config/i386/i386.opt: Add -mavx512bf16.
1819 * config/i386/immintrin.h: Include avx512bf16intrin.h
1820 and avx512bf16vlintrin.h.
1821 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
1822 avx512f_cvtneps2bf16_<mode><mask_name>,
1823 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
1824 * config/i386/subst.md (mask_half): Add new subst.
1825 * doc/invoke.texi: Document -mavx512bf16.
1827 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
1829 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
1831 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
1832 (rs6000_debug_legitimize_reload_address): Delete.
1833 (rs6000_legitimize_reload_address_ptr): Delete.
1834 (rs6000_option_override_internal): Adjust.
1835 (mem_operand_gpr): Adjust comment.
1836 (legitimate_lo_sum_address_p): Ditto.
1837 (rs6000_legitimize_reload_address): Delete.
1838 (rs6000_debug_legitimize_reload_address): Delete.
1839 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
1841 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
1844 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1845 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
1846 to compute vector element selector for both constant and variable
1849 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
1851 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
1852 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
1853 ashrdi3_cvt using SWI48 mode iterator.
1855 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1857 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
1858 (aarch64_<su>abd<mode>_3): Likewise.
1859 (*aarch64_<su>abd<mode>_3): New define_insn.
1860 (<sur>sad<vsi2qi>): New define_expand.
1861 * config/aarch64/iterators.md: Added MAX_OPP attribute.
1862 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
1863 (build_vect_cond_expr): Likewise.
1865 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
1867 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
1868 clobbers outside of accessible_reg_set.
1869 * config/i386/i386.c (ix86_conditional_register_usage):
1870 Disable register sets by clearing corresponding bits in
1871 accessible_reg_set. Do not set corresponding bits in fixed_regs,
1872 call_used_regs and don't clear corresponding reg_names array members.
1874 2019-05-07 Richard Biener <rguenther@suse.de>
1876 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
1877 not specified still compute a comp_vectype for invariant
1880 2019-05-07 Richard Biener <rguenther@suse.de>
1882 PR tree-optimization/90316
1883 * tree-ssa-pre.c (translate_vuse_through_block): When
1884 same_valid is NULL do not bother to search for a virtual
1886 (phi_translate_1): When operands changed we cannot keep
1887 the same value-number so do not bother to ask whether
1888 that's possible from translate_vuse_through_block.
1890 2019-05-07 Martin Liska <mliska@suse.cz>
1892 * bitmap.c (bitmap_register): Come up with
1893 alloc_descriptor_max_uid and assign it for
1895 (register_overhead): Use get_descriptor as
1897 (release_overhead): New.
1898 (bitmap_elem_to_freelist): Call it.
1899 (bitmap_elt_clear_from): Likewise.
1900 (bitmap_obstack_free): Likewise.
1901 (bitmap_move): Sensitively release memory.
1902 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
1903 (bitmap_initialize): Initialize alloc_descriptor to zero.
1904 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
1906 2019-05-07 Richard Biener <rguenther@suse.de>
1908 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
1909 we build a SLP node. Remove max_size and limiting.
1910 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
1912 2019-05-07 Richard Biener <rguenther@suse.de>
1914 PR tree-optimization/90316
1915 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
1917 (walk_non_aliased_vuses): Take walking limit argument.
1918 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
1919 walking if it is reached instead of just counting.
1920 (get_continuation_for_phi): Likewise.
1921 (walk_non_aliased_vuses): Likewise, instead of leaving counter
1922 limiting to the callback.
1923 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
1924 (vn_reference_lookup_3): Likewise.
1925 (vn_reference_lookup_pieces): Likewise.
1926 (vn_reference_lookup): Likewise.
1927 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
1928 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
1929 (avail_exprs_stack::lookup_avail_expr): Likewise.
1931 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
1933 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
1934 for comparaible types in the second direction even if first one
1935 hits incomparable type.
1937 2019-05-07 Richard Biener <rguenther@suse.de>
1940 * lto-wrapper.c (debug_objcopy): Use the original filename
1941 including archive offset for the filename used for -save-temps.
1943 2019-05-07 Li Jia He <helijia@linux.ibm.com>
1945 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
1948 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1950 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
1951 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
1952 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
1953 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
1954 (FRAME_POINTER_REGNUM): Change numbering.
1955 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
1956 (alt_reg_names): Adjust.
1957 (rs6000_conditional_register_usage): Don't mark hard register 64 as
1959 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
1960 (DWARF_FRAME_REGISTERS): Delete.
1961 (DWARF2_FRAME_REG_OUT): Fix whitespace.
1962 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1964 (REG_ALLOC_ORDER): Adjust.
1965 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
1966 (REG_CLASS_CONTENTS): Adjust.
1967 (RETURN_ADDR_RTX): Change comment.
1968 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
1970 (REGISTER_NAMES): Adjust.
1971 (ADDITIONAL_REGISTER_NAMES): Adjust.
1972 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
1974 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1976 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
1978 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
1979 (DWARF_FRAME_REGISTERS): Adjust.
1980 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1982 (REG_ALLOC_ORDER): Adjust.
1983 (enum reg_class): Delete SPR_REGS.
1984 (REG_CLASS_NAMES): Delete SPR_REGS.
1985 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
1986 (REGISTER_NAMES): Adjust.
1987 (ADDITIONAL_REGISTER_NAMES): Adjust.
1988 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
1989 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
1990 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
1991 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
1992 (htm_spr_regno): Delete.
1993 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
1995 (rs6000_dbx_register_number): Adjust.
1997 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1999 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
2001 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2003 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
2004 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
2006 2019-05-06 Jakub Jelinek <jakub@redhat.com>
2008 PR tree-optimization/88709
2009 PR tree-optimization/90271
2010 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
2011 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
2012 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
2014 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
2015 of the store merging group is larger than
2016 PARAM_STORE_MERGING_MAX_SIZE parameter.
2017 (split_group): Add bzero_first argument. If set, always emit first
2018 the first store which must be = {} of the whole area and then for the
2019 rest of the stores consider all zero bytes as paddings.
2020 (imm_store_chain_info::output_merged_store): Check if first store
2021 is = {} of the whole area and if yes, determine which setting of
2022 bzero_first for split_group gives smaller number of stores. Adjust
2023 split_group callers.
2024 (lhs_valid_for_store_merging_p): Allow decls.
2025 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
2027 (pass_store_merging::process_store): Likewise.
2029 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
2032 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2033 handling of V1TImode.
2035 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
2038 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
2039 and enable_frame_pointer ...
2040 * configure.ac: ... here. Update help strings for
2041 --enable-frame-pointer.
2042 * configure: Regenerate.
2043 * config/i386/i386-options.c (ix86_option_override_internal): Remove
2044 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
2045 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
2046 (USE_X86_64_FRAME_POINTER): Ditto.
2048 2019-05-06 Martin Liska <mliska@suse.cz>
2050 * config.gcc: Append to target_gtfiles and fix indentation.
2052 2019-05-06 Richard Biener <rguenther@suse.de>
2054 PR tree-optimization/90358
2055 * tree-vect-stmts.c (get_group_load_store_type): Properly
2056 detect unused upper half of load.
2057 (vectorizable_load): Likewise.
2059 2019-05-06 Richard Biener <rguenther@suse.de>
2061 PR tree-optimization/88828
2062 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
2063 (simplify_vector_constructor): ...here. Handle constants in
2066 2019-05-06 Richard Biener <rguenther@suse.de>
2068 PR tree-optimization/90328
2069 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
2070 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
2071 is valid in the loop nest before using it.
2072 (initialize_data_dependence_relation): Adjust.
2073 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
2074 loop as loop-nest to dr_may_alias_p.
2076 2019-05-06 Richard Biener <rguenther@suse.de>
2078 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
2080 2019-05-06 Richard Biener <rguenther@suse.de>
2082 PR tree-optimization/90316
2083 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
2084 compute target on demand.
2085 (get_continuation_for_phi): Remove code walking stmts to
2086 get to a target virtual operand which could end up being
2089 2019-05-06 Martin Liska <mliska@suse.cz>
2092 * config/i386/i386-options.c (ix86_option_override_internal): Error only
2093 when -mabi is selected to a non-default version.
2095 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
2096 Martin Liska <mliska@suse.cz>
2098 * Makefile.in: Add lto-dump.texi.
2099 * cgraph.h: Add new functions get_visibility_string and
2100 get_symtab_type_string.
2101 * doc/gcc.texi: Include lto-dump section.
2102 * doc/lto-dump.texi: New file.
2103 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
2104 (parse_dump_option): Factor out this function.
2105 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
2106 (parse_dump_option): Export the function.
2107 * symtab.c (symtab_node::get_visibility_string): New function.
2108 (symtab_node::get_symtab_type_string): Likewise.
2110 2019-05-06 Martin Liska <mliska@suse.cz>
2112 * config/i386/i386-builtins.c: New file.
2113 * config/i386/i386-builtins.h: New file.
2114 * config/i386/i386-expand.c: New file.
2115 * config/i386/i386-expand.h: New file.
2116 * config/i386/i386-features.c: New file.
2117 * config/i386/i386-features.h: New file.
2118 * config/i386/i386-options.c: New file.
2119 * config/i386/i386-options.h: New file.
2120 * config.gcc: Add new files into extra_objs and
2122 * config/i386/i386.c: Split content of the file
2123 into newly introduced files.
2124 * config/i386/i386.h: Declare common variables
2126 * config/i386/t-i386: Define dependencies for new files.
2128 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
2131 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
2132 Restrict 'all' variant to 32-bit configurations.
2133 (unaligned_loadhiu): Likewise.
2134 (unaligned_storehi): Likewise.
2135 (unaligned_storesi): Likewise.
2136 (unaligned_loadhis): Disable when compiling for thumb1.
2138 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
2140 PR tree-optimization/90269
2141 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
2144 2019-05-03 Martin Liska <mliska@suse.cz>
2146 * hash-map.h: Add is_empty function.
2147 * hash-set.h: Likewise.
2148 * hash-table.h: Likewise.
2149 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
2150 elements () == 0 (and similar usages).
2151 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
2152 * gimplify.c (gimplify_bind_expr): Likewise.
2153 (gimplify_switch_expr): Likewise.
2154 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
2155 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
2156 * postreload-gcse.c (dump_hash_table): Likewise.
2157 (gcse_after_reload_main): Likewise.
2158 * predict.c (combine_predictions_for_bb): Likewise.
2159 * tree-parloops.c (reduction_phi): Likewise.
2160 (separate_decls_in_region): Likewise.
2161 (transform_to_exit_first_loop): Likewise.
2162 (gen_parallel_loop): Likewise.
2163 (gather_scalar_reductions): Likewise.
2164 (try_create_reduction_list): Likewise.
2165 * var-tracking.c (dump_vars): Likewise.
2166 (emit_notes_for_changes): Likewise.
2167 (vt_emit_notes): Likewise.
2169 2019-05-03 Richard Biener <rguenther@suse.de>
2171 PR tree-optimization/90316
2172 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
2175 2019-05-03 Richard Biener <rguenther@suse.de>
2177 * tree-vect-stmts.c (get_group_load_store_type): Avoid
2178 peeling for gaps by loading only lower halves of vectors
2180 (vectorizable_load): Likewise.
2182 2019-05-03 Richard Biener <rguenther@suse.de>
2185 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
2187 2019-05-03 Richard Biener <rguenther@suse.de>
2190 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
2191 Handle STRING_CST vs DECL or STRING_CST.
2193 2019-05-03 Richard Biener <rguenther@suse.de>
2195 PR tree-optimization/88963
2196 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
2197 vector loads feeding only BIT_FIELD_REFs to component
2198 loads. Rewrite stores fed by CONSTRUCTORs to component
2201 2019-05-03 Jakub Jelinek <jakub@redhat.com>
2203 * opts.h (finish_options): Remove lang_mask argument.
2204 (print_help, help_option_argument): Declare.
2205 * opts.c (print_help): Remove forward declaration, no longer static.
2206 (finish_options): Remove lang_mask argument, don't call print_help
2208 * opts-global.c (decode_options): Adjust finish_option caller, call
2211 PR tree-optimization/90303
2212 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
2213 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
2215 2019-05-03 Richard Biener <rguenther@suse.de>
2217 PR tree-optimization/89698
2218 * gimple-fold.c (canonicalize_constructor_val): Early out
2219 for constants, handle unfolded INTEGER_CSTs as they appear in
2220 C++ virtual table ctors.
2222 2019-05-03 Richard Biener <rguenther@suse.de>
2224 * passes.c (execute_function_todo): Remove dead code.
2226 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
2228 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
2229 the internal register number, for any "real" register.
2231 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
2233 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
2234 correct numbers for TFHAR, TFIAR, TEXASR.
2236 2019-05-02 Richard Biener <rguenther@suse.de>
2238 PR tree-optimization/89653
2239 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
2240 update-address-taken before the pass.
2241 * passes.def (pass_tree_loop_init): Put comment before it.
2243 2019-05-02 Richard Biener <rguenther@suse.de>
2245 PR tree-optimization/89509
2246 * tree-ssa-structalias.c (compute_dependence_clique): Look
2247 at the first subvar when determining whether it is restrict.
2249 2019-05-02 Richard Biener <rguenther@suse.de>
2251 PR tree-optimization/90273
2252 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
2253 useless debug stmts.
2255 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
2257 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
2259 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
2261 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
2262 VEC_COND_EXPR be inserted to emulate a conditional internal function.
2263 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
2264 (vectorizable_reduction): Use the functions above to vectorize in a
2265 fully masked loop codes that don't have a conditional internal
2268 2019-05-02 Martin Liska <mliska@suse.cz>
2270 * cgraphclones.c: Call valid_attribute_p with 1 for
2272 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
2273 it's for target attribute.
2274 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
2275 Add new boolean argument.
2276 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2278 (ix86_valid_target_attribute_tree): Pass target_clone_attr
2279 to ix86_valid_target_attribute_inner_p.
2280 (ix86_valid_target_attribute_p): Pass flags argument to
2281 ix86_valid_target_attribute_inner_p.
2282 (get_builtin_code_for_version): Use 0 as it's target attribute.
2284 2019-05-02 Martin Liska <mliska@suse.cz>
2286 * gcc.c (process_command): Add dummy file only
2288 * opts-global.c (decode_options): Pass lang_mask.
2289 * opts.c (print_help): New function.
2290 (finish_options): Print --help if help_option_argument
2292 (common_handle_option): Factor out content of OPT__help_
2294 * opts.h (finish_options): Add new argument.
2296 2019-05-02 Martin Liska <mliska@suse.cz>
2299 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
2300 With -minline-all-stringops use inline expansion using 4B loop.
2301 * doc/invoke.texi: Document the change of
2302 -minline-all-stringops.
2304 2019-05-01 Jeff Law <law@redhat.com>
2306 PR tree-optimization/88797
2307 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
2308 PHI feeds a conditional on the RHS of an assignment.
2310 2019-04-30 Andrew Waterman <andrew@sifive.com>
2311 Jim Wilson <jimw@sifive.com>
2313 * config/riscv/constraints.md (L): New.
2314 * config/riscv/predicates.md (lui_operand): New.
2315 (sfb_alu_operand): New.
2316 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
2317 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
2318 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
2319 * config/riscv/risc.md (type): Add sfb_alu.
2320 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
2321 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
2322 (branch_zero<mode>): Delete.
2324 (mov<GPR:mode><X:mode>cc): Likewise.
2325 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
2327 2019-04-30 Nathan Sidwell <nathan@acm.org>
2329 * tree.h (MARK_TS_EXP): New.
2331 2019-04-30 Martin Liska <mliska@suse.cz>
2333 * opts.c (enable_warning_as_error): Provide hints
2334 for unknown options.
2336 2019-04-30 Martin Liska <mliska@suse.cz>
2339 * doc/invoke.texi: Add missing dash for gas-locview-support
2340 and gno-as-locview-support.
2342 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2345 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
2346 whitespace at the start of target attribute string.
2348 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2351 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
2352 Define __ARM_FEATURE_ATOMICS.
2354 2019-04-30 Martin Liska <mliska@suse.cz>
2356 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
2357 into built_in_function enum. Remove code for endp == 2 and
2358 use BUILT_IN_* constants.
2359 (gimple_fold_builtin): Call the function with fcode.
2361 2019-04-30 Martin Liska <mliska@suse.cz>
2363 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
2364 DECL_FUNCTION_CODE into ix86_builtins enum before
2365 the switch statement.
2367 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2369 PR tree-optimization/89475
2370 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
2373 2019-04-30 Martin Liska <mliska@suse.cz>
2375 PR translation/90274
2376 * opts.c (print_filtered_help): Wrap string in _(...).
2378 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
2380 PR tree-optimization/90240
2382 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2384 PR tree-optimization/90078
2385 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
2386 checks for infinite_cost overflow.
2388 2019-04-29 Jeff Law <law@redhat.com>
2390 * passes.def: Move -Wrestrict pass after copy propagation.
2392 2019-04-29 Maya Rashish <coypu@sdf.org>
2394 * config.gcc (default_gnu_indirect_function): Default to yes
2395 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
2396 sparc*-*-netbsd*, x86_64-*-netbsd*.
2398 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
2400 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
2401 where cond2 is NE_EXPR.
2402 (is_value_included_in): Update comment.
2404 2019-04-29 Richard Biener <rguenther@suse.de>
2406 PR tree-optimization/90278
2407 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
2408 EH on comparison simplification.
2410 2019-04-29 Jason Merrill <jason@redhat.com>
2412 PR c++/82081 - tail call optimization breaks noexcept
2413 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
2414 nothrow function to a might-throw function into a tail call.
2416 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
2418 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
2419 (DDR_INNER_LOOP): Likewise.
2420 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
2421 (initialize_data_dependence_relation): Likewise.
2422 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
2424 2019-04-29 Jakub Jelinek <jakub@redhat.com>
2426 PR rtl-optimization/90257
2427 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
2431 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
2435 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
2438 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
2441 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
2443 * lra-spills.c (lra_final_code_change): Remove useless move insns.
2445 2019-04-29 Richard Biener <rguenther@suse.de>
2447 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
2450 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
2452 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
2453 varasm.h, and netbsd-protos.h.
2455 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
2458 * config/i386/i386-protos.h (ix86_data_alignment): Change
2459 the second argument type to unsigned int.
2460 * config/i386/i386.c (ix86_data_alignment): Change "align"
2461 argument type to unsigned int.
2463 2019-04-27 Martin Liska <mliska@suse.cz>
2466 * opt-suggestions.c (option_proposer::build_option_suggestions):
2467 When get_valid_option_values returns empty values, add the
2468 misspelling candidate.
2470 2019-04-26 Jim Wilson <jimw@sifive.com>
2472 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
2474 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
2475 Pass orig_mode to riscv_build_integer.
2476 (riscv_split_integer): Pass mode to riscv_move_integer.
2477 (riscv_legitimize_const_move): Likewise.
2478 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
2479 promoted_mode. Replace force_reg call with code to load constant into
2480 promoted reg and then subreg it for the store.
2481 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
2484 2018-04-26 Eugene Sharygin <eush@ispras.ru>
2486 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
2489 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
2491 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
2492 commentary about the encoding of precision.
2494 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
2496 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
2497 * config/i386/t-freebsd64: New file.
2498 * config.gcc: Add the t-freebsd64 for multilib support.
2500 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
2502 * doc/extend.texi (vector_size): Add missing comma after @xref.
2504 2019-04-25 Jakub Jelinek <jakub@redhat.com>
2506 * BASE-VER: Set to 10.0.0.
2508 2019-04-25 Richard Biener <rguenther@suse.de>
2511 * gimplify.c (gimplify_expr): Avoid turning a lvalue
2512 VIEW_CONVERT_EXPR into one operating on an rvalue.
2514 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
2517 * config/i386/i386.c (feature_priority): Moved to file scope.
2518 (processor_features): Likewise.
2519 (processor_model): Likewise.
2520 (_arch_names_table): Likewise.
2521 (arch_names_table): Likewise.
2522 (_feature_list): Removed.
2523 (feature_list): Likewise.
2524 (_isa_names_table): Moved to file scope. Add priority.
2525 (isa_names_table): Likewise.
2526 (get_builtin_code_for_version): Replace feature_list with
2527 isa_names_table. Update error message for P_ZERO priority.
2529 2019-04-25 Richard Biener <rguenther@suse.de>
2531 * tree-pass.h (make_pass_phi_only_cprop): Remove.
2532 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
2534 2019-04-24 Jeff Law <law@redhat.com>
2536 PR tree-optimization/90037
2537 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
2538 * passes.def: Replace all instance of phi-only cprop with the
2539 lattice propagator. Move propagation pass from after erroneous
2540 path isolation to before erroneous path isolation.
2541 * tree-ssa-phionlycprop.c: Remove.
2543 2019-04-24 Richard Biener <rguenther@suse.de>
2546 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
2547 by size and BITS_PER_UNIT on poly-wide-ints.
2549 2019-04-25 Richard Biener <rguenther@suse.de>
2552 * match.pd: Add pattern to simplify view-conversion of an
2555 2019-04-24 Clement Chigot <clement.chigot@atos.net>
2557 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
2558 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
2559 for Go on 32 bit AIX.
2560 * config/rs6000/aix72.h: Likewise.
2562 2019-04-24 Jakub Jelinek <jakub@redhat.com>
2565 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
2566 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
2568 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
2571 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
2572 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
2573 for restored hard frame pointer.
2574 (s390_sched_dependencies_evaluation): Implement new target hook.
2575 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
2577 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
2579 * config/arc/arc-options.def: Fix typos and spelling mistakes.
2580 * config/arc/arc.c (arc_init): Cleanup warning message.
2581 (arc_override_options): Likewise.
2583 2019-04-24 Jakub Jelinek <jakub@redhat.com>
2586 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
2587 a register if both if_true and if_false are MEMs.
2589 PR tree-optimization/90208
2590 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
2591 after labels of new_bb, not before them.
2593 PR tree-optimization/90211
2594 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
2595 which are not SSA_NAMEs.
2597 2018-04-23 Sudakshina Das <sudi.das@arm.com>
2599 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
2601 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
2603 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
2605 PR rtl-optimization/87979
2606 * modulo-sched.c (sms_schedule): Start ii value "mii" should
2609 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
2611 PR rtl-optimization/84032
2612 * modulo-sched.c (ps_insn_find_column): Change condition so that
2613 branch will always be the last insn in a row inside partial
2616 2019-04-23 Richard Biener <rguenther@suse.de>
2619 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
2620 dest_single_pred_p argument.
2621 (remove_forwarder_block): Adjust.
2622 (remove_forwarder_block_with_phi): Likewise.
2624 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2625 Bernd Edlinger <bernd.edlinger@hotmail.de>
2626 Jakub Jelinek <jakub@redhat.com>
2629 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
2630 if used with general-regs-only.
2631 (arm_conditional_register_usage): Don't add non-general regs if
2633 (arm_valid_target_attribute_rec): Handle general-regs-only.
2634 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
2636 (TARGET_HARD_FLOAT_SUB): Define.
2637 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
2638 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
2639 (TARGET_REALLY_IWMMXT2): Likewise.
2640 * config/arm/arm.opt: Add -mgeneral-regs-only.
2641 * doc/extend.texi: Document ARM general-regs-only target.
2642 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
2644 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2646 PR tree-optimization/90078
2647 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
2648 checks for infinite_cost overflow.
2650 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2652 PR tree-optimization/90021
2653 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
2654 and check univariate against it.
2655 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
2656 * tree-data-ref.c (add_other_self_distances): Pass new argument.
2658 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
2662 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
2665 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
2668 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
2670 * lra-spills.c (lra_final_code_change): Remove useless move insns.
2672 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
2674 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
2675 names using operand format, rather than hard-wired.
2676 (speculation_barrier): Likewise.
2678 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
2680 PR tree-optimization/88055
2681 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
2682 (gen_one_condition): Use it if !HONOR_NANS.
2684 2019-04-19 Jakub Jelinek <jakub@redhat.com>
2687 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
2688 assign_temp instead of gen_reg_rtx.
2690 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
2692 PR translation/90118
2693 * config/aarch64/aarch64.c (aarch64_override_options_internal):
2694 Add missing space before %<.
2696 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
2698 PR rtl-optimization/87871
2699 * ira-lives.c (make_object_dead): Don't add conflicts to
2700 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
2702 2019-04-18 Martin Sebor <msebor@redhat.com>
2705 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
2706 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
2707 assuming type size fits in SHWI.
2709 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
2712 * ipa-inline.c (flatten_function): New parameter UPDATE.
2713 (ipa_inline, early_inliner): Use it.
2715 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
2717 * fold-const.c (int_const_binop): Return early on failure.
2719 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
2722 * combine.c (force_int_to_mode): Cast the argument rather than
2723 the result of known_alignment.
2724 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
2726 2019-04-18 Richard Biener <rguenther@suse.de>
2729 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
2731 (remove_forwarder_block): ... here.
2732 (remove_forwarder_block_with_phi): Also move debug stmts here.
2734 2019-04-18 Jakub Jelinek <jakub@redhat.com>
2736 PR translation/79183
2737 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
2738 inform where appropriate.
2740 2019-04-18 Richard Biener <rguenther@suse.de>
2742 * tree.c (get_qualified_type): Put found type variants at the
2743 head of the variant list.
2745 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2747 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
2749 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
2752 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
2753 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
2754 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
2755 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
2756 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
2758 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
2760 * ira-conflicts.c (print_allocno_conflicts): Always print something,
2761 even for allocno's with no conflicts.
2762 (print_conflicts): Print an extra newline.
2764 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2766 * auto-inc-dec.c (attempt_change): Set the alignment of the
2767 temporary memory to that of the original.
2769 2019-04-17 Joao Moreira <jmoreira@suse.de>
2771 * targhooks.c (default_print_patchable_function_entry): Emit
2772 __patchable_function_entries section with writable flags to allow
2773 relocation resolution.
2775 2019-04-17 Jonny Grant <jg@jguk.org>
2777 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
2779 2019-04-17 Jakub Jelinek <jakub@redhat.com>
2782 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
2785 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
2787 * config/arc/arc.c (arc_init): Format diagnostic string.
2788 (arc_override_options): Likewise.
2789 (check_if_valid_regno_const): Likewise.
2790 (arc_reorg): Likewise.
2792 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2795 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
2797 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
2799 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
2800 (*movdi_update1): Use Pmode.
2801 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
2802 (movdi_<mode>_update_stack): Rename to ...
2803 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
2805 (*movsi_update1): Use Pmode.
2806 (*movsi_update2): Use Pmode.
2807 (movsi_update): Rename to ...
2808 (movsi_<mode>_update): ... this. Use Pmode.
2809 (movsi_update_stack): Fix condition.
2810 (*movhi_update1): Use Pmode. Fix argument to
2811 avoiding_indexed_address_p.
2812 (*movhi_update2): Ditto.
2813 (*movhi_update3): Ditto.
2814 (*movhi_update4): Ditto.
2815 (*movqi_update1): Ditto.
2816 (*movqi_update2): Ditto.
2817 (*movqi_update3): Ditto.
2818 (*movsf_update1, *movdf_update1): Merge, rename to...
2819 (*mov<mode>_update1): This. Use Pmode. Fix argument to
2820 avoiding_indexed_address_p. Add "size" attribute.
2821 (*movsf_update2, *movdf_update2): Merge, rename to...
2822 (*mov<mode>_update2): This. Ditto.
2823 (*movsf_update3): Use Pmode. Fix argument to
2824 avoiding_indexed_address_p.
2825 (*movsf_update4): Ditto.
2826 (allocate_stack): Simplify condition. Adjust pattern names.
2828 2019-04-17 Jakub Jelinek <jakub@redhat.com>
2831 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
2832 whitespace at the start of target attribute string.
2834 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
2837 * config/rs6000/power9.md: Add store forwarding bypass.
2839 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
2842 * valtrack.c (dead_debug_insert_temp): Reset debug references
2843 to the return value of a call being removed.
2845 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2847 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
2848 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
2849 implement target hook.
2850 (arc_memory_move_cost): New function.
2851 (TARGET_REGISTER_MOVE_COST): Define.
2852 (TARGET_MEMORY_MOVE_COST): Likewise.
2853 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
2854 (MEMORY_MOVE_COST): Likewise.
2856 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2858 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
2859 (sibcall_value_insn): Likewise.
2860 * config/arc/constraints.md (Rs5): Remove.
2862 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2864 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
2865 for last two fake registers.
2866 (arc_conditional_register_usage): Make sure fake frame and arg
2867 pointer regs are in general regs class.
2868 (FRAME_POINTER_MASK): Remove.
2869 (RETURN_ADDR_MASK): Remove.
2870 (arc_must_save_register): Use hard frame regnum.
2871 (frame_restore_reg): Use hard_frame_pointer_rtx.
2872 (arc_save_callee_saves): Likewise.
2873 (arc_restore_callee_saves): Likewise.
2874 (arc_save_callee_enter): Likewise.
2875 (arc_restore_callee_leave): Likewise.
2876 (arc_save_callee_milli): Likewise.
2877 (arc_eh_return_address_location): Likewise.
2878 (arc_check_multi): Use hard frame regnum.
2879 (arc_can_eliminate): Likewise.
2880 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
2881 for register allocator.
2882 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
2883 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
2884 (FRAME_POINTER_REGNUM): Change it to a fake register.
2885 (HARD_FRAME_POINTER_REGNUM): Defined.
2886 (ARG_POINTER_REGNUM): Change it to a new fake register.
2887 (ELIMINABLE_REGS): Update.
2888 (REGISTER_NAMES): Update names.
2889 * config/arc/arc.md (LP_START): Remove.
2891 (shift_si3_loop): Update pattern.
2893 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2895 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
2896 to avoid delay slot scheduling.
2897 (arc_must_save_register): Don't save SP.
2898 * config/arc/arc.md (stack_tie): Remove.
2899 (UNSPEC_ARC_STKTIE): Likewise.
2901 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
2902 Shiva Chen <shiva0217@gmail.com>
2904 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
2905 code gen with large shift amount.
2907 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
2909 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
2912 2019-04-16 Jakub Jelinek <jakub@redhat.com>
2915 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
2916 print -m64/-mx32/-m32 if it is true.
2917 (ix86_debug_options, ix86_function_specific_print): Pass true as
2918 ADD_ABI_P to ix86_target_string.
2919 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
2920 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
2921 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
2923 PR rtl-optimization/90082
2924 * dce.c (can_delete_call): New function.
2925 (deletable_insn_p, mark_insn): Use it.
2927 PR tree-optimization/90090
2928 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
2930 (is_division_by_square): Likewise. Formatting fix.
2932 2019-04-16 Richard Biener <rguenther@suse.de>
2934 PR tree-optimization/56049
2935 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
2936 equality check if alias-set zero will prevail.
2938 2019-04-15 Jeff Law <law@redhat.com>
2940 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
2941 size and alignment as unsigned.
2943 2019-04-15 Richard Biener <rguenther@suse.de>
2946 * tree-loop-distribution.c (destroy_loop): Preserve correct
2949 2019-04-15 Richard Biener <rguenther@suse.de>
2951 PR tree-optimization/90071
2952 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
2953 abnormal operands from def stmts.
2955 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
2957 PR rtl-optimization/89794
2958 * combine.c (count_auto_inc): New function.
2959 (try_combine): Count how many auto_inc expressions there were in the
2960 original instructions. Ensure we have the same number in the new
2961 instructions. Remove the code that tried to ensure auto_inc side
2962 effects on i1 and i0 are not lost.
2964 2019-04-15 Richard Biener <rguenther@suse.de>
2967 * tree.h (auto_var_p): Declare.
2968 * tree.c (auto_var_p): New function, split out from ...
2969 (auto_var_in_fn_p): ... here.
2970 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
2972 (new_var_info): Initialize it.
2973 (set_uids_in_ptset): Also set the shadow variable uid if required.
2974 (ipa_pta_execute): Postprocess points-to solutions assigning
2975 shadow variable uids for locals that may reach their containing
2976 function recursively.
2977 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
2978 assert but instead check whether the points-to solution is
2981 2019-04-15 Martin Jambor <mjambor@suse.cz>
2984 * cgraph.c (clone_of_p): Loop over clone chain for each step in
2987 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
2989 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
2991 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
2992 Kito Cheng <kito.cheng@gmail.com>
2993 Shiva Chen <shiva0217@gmail.com>
2995 * config/nds32/nds32-md-auxiliary.c
2996 (nds32_legitimize_pic_address): Use new PIC pattern.
2997 (nds32_legitimize_tls_address): Use new TLS pattern.
2998 (nds32_output_symrel): New.
2999 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
3000 (nds32_alloc_relax_group_id): Ditto.
3001 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
3002 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
3004 (nds32_group_tls_insn): Ditto.
3005 (nds32_group_float_insns): Ditto.
3006 * config/nds32/nds32.md (tls_le): New.
3009 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
3011 * configure: Add nds32 target for dwarf2 debug_line checking.
3012 * configure.ac: Regenerated.
3014 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
3017 * ipa-devirt.c (skip_in_fields_list_p): New.
3018 (odr_types_equivalent_p): Use it.
3020 2019-04-13 Jakub Jelinek <jakub@redhat.com>
3023 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
3024 instead of strncmp when checking for thumb and arm. Formatting fixes.
3026 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
3028 * doc/install.texi: Document --with-target-system-zlib.
3030 2019-04-12 Martin Sebor <msebor@redhat.com>
3036 * targhooks.c (default_vector_alignment): Avoid assuming
3037 argument fits in SHWI.
3038 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
3040 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
3042 2019-04-12 Jakub Jelinek <jakub@redhat.com>
3044 PR rtl-optimization/89965
3045 * dce.c: Include rtl-iter.h.
3046 (struct check_argument_load_data): New type.
3047 (check_argument_load): New function.
3048 (find_call_stack_args): Check for loads from stack slots still tracked
3049 in sp_bytes and punt if any is found.
3051 * config/mips/loongson-mmiintrin.h: Fix up #error message.
3053 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
3055 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
3056 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
3058 2019-04-12 Martin Liska <mliska@suse.cz>
3061 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
3063 (separate_attrs): Handle multiple 'default's.
3064 (expand_target_clones): Rework error handling code.
3066 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
3069 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
3070 mode of vector rather than mode of destination for move instruction.
3071 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
3072 Use QI inner mode with V16QI vector mode.
3074 2019-04-12 Jakub Jelinek <jakub@redhat.com>
3077 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
3078 "invalid %%t operand" in output_operand_lossage message.
3080 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
3082 * config/s390/predicates.md (permute_pattern_operand): New
3084 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
3085 operand for the permute pattern.
3086 ("*vec_perm<mode>"): New insn definition.
3087 ("bswap<mode>"): Generate the permute pattern operand in the
3088 expander and perform the operand reloads for pre arch13 level
3090 ("*bswap<mode>_emu"): Rename to ...
3091 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
3092 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
3093 Add the USE operand for the permute pattern.
3094 ("*vec_set_bswap_vec<mode>"): Likewise.
3096 2019-04-12 Jakub Jelinek <jakub@redhat.com>
3099 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
3100 and gcc_unreachable if it fails, just call tree_to_uhwi which
3101 verifies that too. Test TREE_CHAIN instead of list_length > 1.
3102 Start warning message with a lower-case letter. Formatting fixes.
3104 PR rtl-optimization/90026
3105 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
3106 successors, look for BARRIERs inside of the whole BB_FOOTER chain
3107 rather than just at the start of it. If e->src BB_FOOTER is not NULL
3108 in cfglayout mode, use emit_barrier_after_bb.
3110 2018-04-11 Steve Ellcey <sellcey@marvell.com>
3112 PR rtl-optimization/87763
3113 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
3116 2019-04-11 Tom de Vries <tdevries@suse.de>
3118 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
3119 max macro using statement expression.
3121 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
3123 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
3124 * xcoffout.c (xcoff_private_rodata_section_name): Define.
3125 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
3126 read_only_private_data_section using xcoff_private_rodata_section_name.
3127 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
3129 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
3132 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
3134 2019-04-11 Jakub Jelinek <jakub@redhat.com>
3136 PR rtl-optimization/89965
3137 * dce.c (sp_based_mem_offset): New function.
3138 (find_call_stack_args): Use sp_based_mem_offset.
3140 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
3142 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
3144 2019-04-11 Richard Biener <rguenther@suse.de>
3146 PR tree-optimization/90020
3147 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
3148 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
3149 * tree-ssa-pre.c (compute_avail): Use it to not put
3150 possibly trapping references after a call that might not
3151 return into EXP_GEN.
3152 * gcse.c (compute_hash_table_work): Do not elide
3153 marking a block containing a call if the call might not
3156 2019-04-11 Richard Biener <rguenther@suse.de>
3158 PR tree-optimization/90018
3159 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
3160 Test both SLP and interleaving variants.
3162 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
3164 * config/s390/8561.md: New file.
3165 * config/s390/driver-native.c (s390_host_detect_local_cpu):
3166 Add arch13 cpu model.
3167 * config/s390/s390-opts.h (enum processor_type): Likewise.
3168 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
3169 (s390_get_unit_mask): Likewise.
3170 (s390_is_fpd): Likewise.
3171 (s390_is_fxd): Likewise.
3172 * config/s390/s390.h (s390_tune_attr): Likewise.
3173 * config/s390/s390.md: Include arch13 pipeline description.
3174 * config/s390/s390.opt: Add arch13.
3176 2018-04-10 Steve Ellcey <sellcey@marvell.com>
3178 PR rtl-optimization/87763
3179 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
3181 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
3183 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
3185 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
3186 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
3187 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
3188 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
3190 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
3192 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
3193 "Although" in -fipa-icf documentation.
3195 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
3196 of using multiple -g options.
3198 2019-04-10 Martin Liska <mliska@suse.cz>
3200 PR gcov-profile/89959
3201 * doc/gcov.texi: Make documentation of -x option
3204 2019-04-10 Richard Biener <rguenther@suse.de>
3206 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
3208 (DR_GROUP_SAME_DR_STMT): Remove.
3209 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
3210 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
3211 replace with assert.
3212 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
3213 (vect_record_grouped_load_vectors): Remove unreachable code.
3215 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
3218 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
3219 obsolete reference to N.
3221 2019-04-10 Jakub Jelinek <jakub@redhat.com>
3224 * expr.c (store_expr): Set properly size on the MEM passed to
3228 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
3229 with strlen in between hostsz-3 and hostsz-1 inclusive when no
3230 translation is needed, and when translation is needed, only append
3231 ... if the string length is hostsz or more bytes long. Avoid using
3234 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
3237 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
3238 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
3240 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
3241 differences directly.
3242 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
3244 2019-04-09 Jakub Jelinek <jakub@redhat.com>
3246 PR translation/90011
3247 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
3249 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
3251 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
3252 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
3253 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
3254 trailing space from -gsplit-dwarf diagnostics.
3256 PR tree-optimization/89998
3257 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
3258 instead of integer_type_node if possible, don't add ranges if return
3259 type is not compatible with int.
3260 * gimple-fold.c (gimple_fold_builtin_sprintf,
3261 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
3264 2019-04-09 Martin Liska <mliska@suse.cz>
3266 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
3267 * doc/install.texi: Document the new config.
3269 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
3271 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
3272 use gimple_expr_type for load and store calls. Skip over the
3273 condition argument in a conditional internal function.
3274 Protect use of TREE_INT_CST_LOW.
3276 2019-04-09 Jakub Jelinek <jakub@redhat.com>
3279 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
3280 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
3281 trailing period from it too.
3283 2019-04-08 wu yuan <wuyuan5@huawei.com>
3285 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
3286 * config/aarch64/aarch64.md : Add "tsv110.md"
3287 * config/aarch64/tsv110.md: New file.
3289 2019-04-08 Richard Biener <rguenther@suse.de>
3291 PR tree-optimization/90006
3292 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
3295 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
3298 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
3300 (fma_root_node): Likewise.
3301 (func_fma_steering): Likewise.
3303 2019-04-08 Jakub Jelinek <jakub@redhat.com>
3305 PR rtl-optimization/89865
3306 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
3308 PR rtl-optimization/89865
3309 * config/i386/i386.md
3310 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
3311 numbers not to clash with the additional operands[4].
3312 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
3313 with extra register copy in the middle.
3315 2019-04-08 Martin Liska <mliska@suse.cz>
3317 PR gcov-profile/89961
3318 * doc/gcov.texi: Document data_file.
3319 * gcov.c (generate_results): Add data_info into JSON output.
3321 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
3323 PR tree-optimization/89725
3324 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
3325 loop's chrec as invariant symbol.
3326 * tree-chrec.h (chrec_contains_symbols): New parameter.
3327 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
3328 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
3329 function of loops not in DDR's loop_nest.
3330 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
3332 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
3335 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
3338 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
3341 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
3342 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
3344 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
3346 * sched-deps.c (sched_macro_fuse_insns): Check return value of
3347 targetm.fixed_condition_code_regs.
3349 2019-04-05 Richard Biener <rguenther@suse.de>
3353 * tree-cfgcleanup.c (remove_forwarder_block): Always move
3354 debug bind stmts but reset them if they are not valid at the
3357 2019-04-05 Martin Liska <mliska@suse.cz>
3359 PR translation/89936
3360 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
3361 order to wrap keywords or arguments.
3362 * collect2.c (main): Likewise.
3363 (scan_prog_file): Likewise.
3364 (scan_libraries): Likewise.
3365 * common/config/riscv/riscv-common.c
3366 (riscv_subset_list::parsing_subset_version): Likewise.
3367 (riscv_subset_list::parse_std_ext): Likewise.
3368 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3370 * config/arm/arm.c (arm_option_override): Likewise.
3371 * config/cris/cris.c (cris_print_operand): Likewise.
3372 * config/darwin-c.c (darwin_pragma_options): Likewise.
3373 (darwin_pragma_unused): Likewise.
3374 (darwin_pragma_ms_struct): Likewise.
3375 * config/ft32/ft32.c (ft32_print_operand): Likewise.
3376 * config/i386/i386.c (print_reg): Likewise.
3377 (ix86_print_operand): Likewise.
3378 * config/i386/xm-djgpp.h: Likewise.
3379 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
3380 * config/m32c/m32c.c (m32c_option_override): Likewise.
3381 * config/msp430/msp430.c (msp430_option_override): Likewise.
3382 * config/nds32/nds32.c (nds32_option_override): Likewise.
3383 * config/nvptx/mkoffload.c (main): Likewise.
3384 * config/rx/rx.c (rx_print_operand): Likewise.
3385 (valid_psw_flag): Likewise.
3386 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
3387 (vms_pragma_nomember_alignment): Likewise.
3388 (vms_pragma_extern_model): Likewise.
3389 * lto-wrapper.c (compile_offload_image): Likewise.
3390 * omp-offload.c (oacc_parse_default_dims): Likewise.
3391 * symtab.c (symtab_node::verify_base): Likewise.
3392 * tlink.c (recompile_files): Likewise.
3393 (start_tweaking): Likewise.
3394 * tree-profile.c (parse_profile_filter): Likewise.
3396 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
3398 PR tree-optimization/89956
3399 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
3400 multiple negates of the same value.
3402 2019-04-04 Martin Sebor <msebor@redhat.com>
3406 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
3407 have the same precision since the function crashes otherwise.
3408 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
3409 has non-zero arguments.
3411 2019-04-04 Martin Sebor <msebor@redhat.com>
3414 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
3415 out if the number of arguments is less than expected.
3417 2019-04-04 Jeff Law <law@redhat.com>
3419 PR rtl-optimization/89399
3420 * ree.c (combine_set_extension): Use single_set rather than
3421 digging into PATTERN for items on the candidate list.
3422 (combine_reaching_defs): Likewise.
3424 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
3426 PR rtl-optimization/46590
3427 * loop-invariant.c (find_defs): Move df_remove_problem and
3428 df_process_deferred_rescans to move_invariants.
3429 Move df_live_add_problem and df_live_set_all_dirty calls
3431 (move_invariants): Likewise.
3432 (move_loop_invariants): Likewise, making the df_live calls
3433 conditional on -O. Remove the problem again if we added it
3436 2019-04-03 qing zhao <qing.zhao@oracle.com>
3438 PR tree-optimization/89730
3439 * ipa-inline.c (can_inline_edge_p): Delete the checking for
3440 -flive-patching=inline-only-static.
3441 (can_inline_edge_by_limits_p): Add the checking for
3442 -flive-patching=inline-only-static and grant always_inline
3443 even when -flive-patching=inline-only-static is specified.
3445 2019-04-03 Jeff Law <law@redhat.com>
3447 PR rtl-optimization/81025
3448 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
3450 2019-04-03 Richard Biener <rguenther@suse.de>
3452 PR tree-optimization/84101
3453 * tree-vect-stmts.c: Include explow.h for hard_function_value,
3454 regs.h for hard_regno_nregs.
3455 (cfun_returns): New helper.
3456 (vect_model_store_cost): When vectorizing a store to a decl
3457 we return and the function ABI returns in a multi-reg location
3458 account for the possible spilling that will happen.
3460 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
3462 * config/s390/s390.c (s390_legitimate_address_p): Reject long
3463 displacement addresses for vector mode operands.
3465 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
3467 * config/arc/arc.c (GMASK_LEN): Define.
3468 (arc_restore_callee_saves): Restore first blink when
3471 2019-04-03 Sudakshina Das <sudi.das@arm.com>
3473 * doc/extend.texi: Add deprecated comment on sign-return-address
3474 function attribute and add mbranch-protection.
3475 * doc/invoke.texi: Add bti to the options for mbranch-protection.
3477 2019-04-03 Richard Biener <rguenther@suse.de>
3480 * lto-wrapper.c (run_gcc): Avoid implicit rules making
3481 the all target phony.
3483 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
3487 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
3488 Return false for variable DImode shifts.
3489 (dimode_scalar_chain::compute_convert_gain): Do not handle
3490 register count operand in variable DImode shifts.
3491 (dimode_scalar_chain::make_vector_copies): Remove support to copy
3492 count argument of a variable shift instruction to a vector register.
3493 (dimode_scalar_chain::convert_reg): Remove support to convert
3494 count argument of a variable shift instruction.
3496 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
3498 PR rtl-optimization/84206
3499 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
3500 iterating over loop headers.
3502 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
3504 PR rtl-optimization/85876
3505 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
3506 beyond the original fence.
3508 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
3510 * config.gcc: Mark spu* targets as deprecated/obsolete.
3512 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3514 * config/s390/s390-builtin-types.def: New builtin function type
3515 definitions. Remove unused types.
3516 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
3517 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
3518 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
3519 overloaded builtins.
3520 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
3521 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
3522 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
3523 (vec_double, vec_signed, vec_unsigned): Define to use the new
3524 overloaded builtins.
3525 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
3528 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3530 * config/s390/s390-builtin-types.def: New builtin function type
3532 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
3533 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
3534 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
3535 (s390_vstrszh, s390_vstrszf): New low-level builtins.
3536 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
3537 constant definitions.
3538 * config/s390/vecintrin.h (vec_search_string_cc)
3539 (vec_search_string_until_zero_cc): New builtin name definitions.
3540 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
3542 ("vec_vstrs<mode>"): New insn definition.
3544 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3546 * config/s390/s390-builtin-types.def: Add new builtin function
3548 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
3549 New overloaded builtins.
3550 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
3552 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
3553 (UNSPEC_VEC_SLDBYTE): ... this.
3554 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
3555 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
3557 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
3558 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
3559 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
3561 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3563 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
3564 New insn definition.
3565 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
3566 * config/s390/vector.md (V_HW_HSD): ... here.
3568 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3570 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
3571 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
3572 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
3573 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
3574 New insn definitions.
3576 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3578 * config/s390/s390-builtin-types.def: Add new builtin function type.
3579 * config/s390/s390-builtins.def: Add overloaded builtin
3580 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
3581 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
3582 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
3583 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
3584 ("eltswap<mode>"): New expander.
3585 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
3588 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3590 * config/s390/s390-builtin-types.def: Add new builtin function types.
3591 * config/s390/s390-builtins.def: Add overloaded builtin
3592 s390_vec_revb. Add low-level builtins for vlbr and vstbr
3594 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
3595 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
3596 ("bswap<mode>"): New expander.
3597 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
3599 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3601 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
3602 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
3603 vector builtin version number in __VEC__.
3605 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3607 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
3609 (SFSI): New mode attribute.
3610 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
3611 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
3613 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
3614 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
3615 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
3616 ("floatsi<mode>2"): Add wcefb instruction.
3618 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3620 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
3621 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
3623 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
3624 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
3625 support 32 bit fp-int conversions. Rename to ...
3626 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
3627 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
3628 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
3629 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
3632 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3634 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
3635 if-then-else constructs if we can use the select instruction.
3636 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
3638 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3640 * config/s390/s390.md ("*popcountdi_arch13_cc")
3641 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
3643 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
3644 Append _z196 to make it ...
3645 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
3646 ("popcounthi2_z196"): ... this.
3647 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
3648 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
3650 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3652 * config/s390/s390.c (s390_canonicalize_comparison): Convert
3653 certain compares for arch13 in order to make use of the condition
3654 code result produced by the new instructions.
3655 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
3656 nxrk, and nxgrk instruction patterns.
3657 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
3658 (inv_no): Add new code iterator together with some attributes.
3659 ("*andc_split_<mode>"): Disable splitter for arch13.
3660 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
3661 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
3662 ("*<ANDOR:bitops_name>c<GPR:mode>")
3663 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
3664 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
3665 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
3666 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
3668 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3670 * common/config/s390/s390-common.c (processor_flags_table): New
3672 * config.gcc: Support arch13 with the --with-arch= configure flag.
3673 * config/s390/driver-native.c (s390_host_detect_local_cpu):
3674 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
3675 * config/s390/s390.c (s390_get_sched_attrmask)
3676 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
3677 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
3678 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
3679 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
3680 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
3682 * config/s390/s390.opt: Support arch13 as processor type in
3683 command line options.
3685 2019-04-02 Martin Liska <mliska@suse.cz>
3687 PR translation/89912
3688 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
3689 Fix param description of graphite-max-arrays-per-scop.
3691 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
3693 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
3694 (ASAN_CC1_SPEC): Use it in 64-bit mode.
3695 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
3697 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
3699 PR rtl-optimization/85412
3700 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
3701 sel_sched_region_1, not after.
3703 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
3705 PR rtl-optimization/86928
3706 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
3707 compute_live if necessary.
3708 (sel_redirect_edge_and_branch): Likewise.
3710 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
3712 PR rtl-optimization/89865
3713 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
3714 register if it is a part of small class.
3716 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
3718 PR rtl-optimization/87273
3719 * sel-sched-ir.c (merge_fences): Remove assert.
3721 2019-04-01 Richard Biener <rguenther@suse.de>
3723 PR tree-optimization/46590
3724 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
3725 (dom_walker::m_reachability): Add in place of...
3726 (dom_walker::m_skip_unreachable_blocks): ...this.
3727 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
3728 Move complex initialization ...
3729 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
3730 lazily and initialize edge flags on each invocation.
3731 (dom_walker::bb_reachable): Use m_reachability.
3733 2019-04-01 Martin Liska <mliska@suse.cz>
3736 * opt-suggestions.c (option_proposer::build_option_suggestions):
3737 Add variant without any argument in order to provide better
3740 2019-04-01 Richard Biener <rguenther@suse.de>
3743 * gimple.c: Include langhooks.h.
3744 (gimple_get_alias_set): Treat enumeral types as the underlying
3747 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
3748 Eric Botcazou <ebotcazou@adacore.com>
3750 PR rtl-optimization/89862
3751 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
3752 that operates on the full registers for WORD_REGISTER_OPERATIONS
3755 2019-03-29 Jim Wilson <jimw@sifive.com>
3757 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
3758 Clear MASK_RVC and then set if C subset supported.
3760 2019-03-29 Jakub Jelinek <jakub@redhat.com>
3763 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
3764 non-addressable complit into its initializer if it is volatile.
3766 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
3768 * opts-common.c (integral_argument): Set errno properly in one case.
3770 2019-03-29 Martin Liska <mliska@suse.cz>
3772 * doc/invoke.texi: Remove -Wchkp from documentation.
3774 2019-03-29 Martin Liska <mliska@suse.cz>
3776 * dbgcnt.c (print_limit_reach): New function.
3779 2019-03-29 Martin Liska <mliska@suse.cz>
3781 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
3782 (dbg_cnt_process_opt): Parse first tokens aas
3783 dbg_cnt_process_single_pair is also using strtok.
3785 2019-03-29 Jakub Jelinek <jakub@redhat.com>
3787 PR rtl-optimization/87485
3788 * function.c (expand_function_end): Move stack_protect_epilogue
3789 before loading of return value into hard register(s).
3791 2019-03-28 Jakub Jelinek <jakub@redhat.com>
3794 * tree-inline.h (struct copy_body_data): Add
3795 dont_remap_vla_if_no_change flag.
3796 * tree-inline.c (remap_type_3, remap_type_2): New functions.
3797 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
3798 and remap_type_2 returns false.
3799 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
3800 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
3801 only from where it is copied to nested contexts.
3803 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
3806 * config/i386/i386.md (RMW operation with LEA peephole):
3807 Use LEAMODE mode attribute instead of SWI mode iterator for
3810 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
3813 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
3814 Also process XEXP (src, 0) of a shift insn.
3816 2019-03-28 David Malcolm <dmalcolm@redhat.com>
3819 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
3820 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
3822 2019-03-28 Jakub Jelinek <jakub@redhat.com>
3824 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
3826 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
3827 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
3828 immediately after first one with df_analyze in between, but rather
3829 process all bbs, queueing ones that need second pass in a worklist,
3830 df_analyze, process queued debug insn changes and if second pass is
3831 needed, process bbs from worklist, df_analyze, process queued debug
3834 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
3835 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
3836 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
3838 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
3841 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
3844 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
3847 * config/i386/i386.c (ix86_function_value_1): Call the newly added
3848 function for 32-bit MS_ABI.
3849 (function_value_ms_32): New function.
3851 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
3853 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
3854 (movdi): Call gen_movdi_symbol_save_scc.
3855 (gen_movdi_symbol_save_scc): New insn and split.
3857 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
3859 PR rtl-optimization/89313
3860 * function.c (matching_constraint_num): New static function.
3861 (match_asm_constraints_1): Use it. Fixup white space and comment.
3862 Don't replace inputs with non-matching constraints which conflict
3863 with early clobber outputs.
3865 2019-03-27 Jeff Law <law@redhat.com>
3868 PR rtl-optimization/87761
3869 PR rtl-optimization/89826
3870 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
3872 (pass_cprop_hardreg::execute): Call df_analyze after adding the
3873 note problem to get REG_DEAD/REG_UNUSED notes updated.
3875 2019-03-27 Richard Biener <rguenther@suse.de>
3877 PR tree-optimization/89463
3878 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
3879 queue edges to remove.
3880 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
3881 dead stmts. Delay edge removal until PHIs are removed to
3882 make debug-stmt creation not confused by seemingly degenerate
3885 2019-03-27 Alan Modra <amodra@gmail.com>
3887 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
3889 * config/rs6000/darwin.h: Likewise.
3890 * config/rs6000/rs6000.c: Likewise.
3892 2019-03-27 Alan Modra <amodra@gmail.com>
3894 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
3895 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
3897 2019-03-26 Andrew Waterman <andrew@sifive.com>
3898 Jim Wilson <jimw@sifive.com>
3900 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
3901 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
3902 (generic_idivdi, generic_fmul_single, generic_fmul_double)
3903 (generic_fdiv, generic_fsqrt): Add check for generic tune.
3904 (generic_alu): Add auipc to type list.
3905 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
3906 (riscv_microarchitecture): Declare.
3907 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
3908 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
3910 (riscv_microarchitecture): New.
3911 (sifive_7_tune_info): New.
3912 (riscv_cpu_info_table): Add microarchitecture value for rocket and
3913 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
3915 (riscv_store_data_bypass_p): New.
3916 (riscv_option_override): Set riscv_microarchitecture from
3917 cpu->microarchitecture.
3918 * config/riscv/riscv.md: Include sifive-7.md.
3921 (auipc<mode>): Change type to auipc.
3922 (restore_stack_nonlocal): New.
3923 * config/riscv/sifive-7.md: New.
3924 * doc/invoke.texi (RISC-V Options): Update mtune docs.
3926 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
3929 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
3930 Also process XEXP (src, 0) of a shift insn.
3932 2019-03-26 Richard Biener <rguenther@suse.de>
3934 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
3935 (copy_debug_stmt): Likewise.
3936 (expand_call_inline): Likewise.
3937 (copy_bb): Avoid redundant lookup & set of gimple_block.
3938 * gimple-low.c (lower_gimple_return): Likewise.
3939 (lower_builtin_setjmp): Likewise.
3941 2019-03-26 Jakub Jelinek <jakub@redhat.com>
3943 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
3944 is constant 0, turn into static const data member initialized to false.
3945 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
3946 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
3948 2019-03-26 Jason Merrill <jason@redhat.com>
3949 Jakub Jelinek <jakub@redhat.com>
3951 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
3953 (mem_alloc_description::release_object_overhead): Fix comment typos.
3954 * hash-table.h (hash_table::~hash_table): Call
3955 release_instance_overhead only if m_entries is non-NULL, otherwise
3956 call unregister_descriptor.
3958 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
3960 PR tree-optimization/81740
3961 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3962 In case of outer loop vectorization, check for backward dependence
3963 at the inner loop if outer loop dependence is reversed.
3965 2019-03-26 Alan Modra <amodra@gmail.com>
3967 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
3968 rs6000_vector_mem init. Correct wI and wJ comment.
3970 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
3972 PR rtl-optimization/88347
3973 PR rtl-optimization/88423
3974 * sched-deps.c (sched_analyze_insn): Take into account that for
3975 tablejumps the barrier appears after a label and a jump_table_data.
3977 2019-03-25 Martin Sebor <msebor@redhat.com>
3980 * c-common.c (check_user_alignment): Rename local. Correct maximum
3981 alignment in diagnostic. Avoid assuming argument fits in SHWI,
3982 convert it to UHWI when it fits.
3984 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
3987 * dwarf2out.c (premark_used_variables): New function.
3988 (prune_unused_types_walk): Do not mark not premarked external
3990 (prune_unused_types): Call premark_used_variables.
3992 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
3994 PR rtl-optimization/89676
3995 * lra-constraints.c (curr_insn_transform): Do match reload for
3996 early clobbers when the match was successful only for different
3999 2019-03-25 Martin Sebor <msebor@redhat.com>
4001 * doc/extend.texi (Common Type Attributes): Document vector_size.
4002 (Common Variable Attributes): Mention size constraint. Correct
4004 (Vector Extensions): Use @dfn when defining bas type. Clarify
4005 base type and size constraints.
4007 2019-03-25 Richard Biener <rguenther@suse.de>
4009 PR tree-optimization/89789
4010 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
4011 changes from non-undefined back to undefined.
4013 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
4015 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
4016 heap string and a gc string, but since this variable is unknown to
4017 ggc the gc string might get reused and corrupted. Fixed by always
4018 using a heap string.
4020 2019-03-25 Richard Biener <rguenther@suse.de>
4022 PR tree-optimization/89779
4023 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
4024 to remove IV defs, delay actual removal.
4025 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
4026 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
4027 very end, properly also reset loop control IV information.
4029 2019-03-25 Richard Biener <rguenther@suse.de>
4031 PR tree-optimization/89802
4032 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
4033 move EH data to folded stmt.
4035 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
4037 * config/s390/s390-builtin-types.def: Remove few unused types and
4038 fix sort order for others.
4040 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
4042 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
4043 expected and found types with -mdebug during builtin matching.
4045 2019-03-25 Richard Biener <rguenther@suse.de>
4048 * fold-const.c (operand_equal_p): Revert last change with
4051 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
4053 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
4054 notes for the result of the __tls_get_addr calls.
4055 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
4057 2019-03-24 Jeff Law <law@redhat.com>
4059 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
4061 PR rtl-optimization/87761
4062 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
4063 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
4065 (pass_cprop_hardreg::execute): Add df note problem and defer insn
4066 rescans. Reprocess blocks as needed, calling df_analyze before
4067 reprocessing. Always call df_analyze before fixing up debug bind
4070 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
4072 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
4075 2019-03-22 Andrew Pinski <apinski@marvell.com>
4077 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
4078 attrribute for uxtw.
4080 2019-03-26 Jeff Law <law@redhat.com>
4082 PR rtl-optimization/87761
4083 * config/mips/mips-protos.h (mips_split_move): Add new argument.
4084 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
4085 (mips_split_move): Accept new INSN argument. Try to forward SRC
4086 into the next instruction.
4087 (mips_split_move_insn): Pass INSN through to mips_split_move.
4089 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
4091 PR rtl-optimization/89676
4092 * lra-constraints.c (curr_insn_transform): Do match reload for
4093 early clobbers even if the match was successful.
4095 2019-03-22 Jakub Jelinek <jakub@redhat.com>
4098 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
4100 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
4102 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
4104 2019-03-22 Jakub Jelinek <jakub@redhat.com>
4106 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
4107 <avx512>_fmsub_<mode>_mask3<round_name>,
4108 <avx512>_fnmadd_<mode>_mask3<round_name>,
4109 <avx512>_fnmsub_<mode>_mask3<round_name>,
4110 avx512f_vmfmadd_<mode>_mask3<round_name>,
4111 avx512f_vmfmsub_<mode>_mask3<round_name>,
4112 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
4113 instead of register_operand and %v instead of v for match_operand 1.
4114 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
4115 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
4116 <round_nimm_predicate> instead of register_operand and %v instead of v
4117 for match_operand 1.
4119 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
4120 <avx512>_fmadd_<mode>_mask3<round_name>,
4121 <avx512>_fmsub_<mode>_mask<round_name>,
4122 <avx512>_fmsub_<mode>_mask3<round_name>,
4123 <avx512>_fnmadd_<mode>_mask<round_name>,
4124 <avx512>_fnmadd_<mode>_mask3<round_name>,
4125 <avx512>_fnmsub_<mode>_mask<round_name>,
4126 <avx512>_fnmsub_<mode>_mask3<round_name>,
4127 <avx512>_fmaddsub_<mode>_mask<round_name>,
4128 <avx512>_fmaddsub_<mode>_mask3<round_name>,
4129 <avx512>_fmsubadd_<mode>_mask<round_name>,
4130 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
4131 <round_nimm_predicate> instead of nonimmediate_operand.
4132 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
4133 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
4134 Use register_operand instead of <round_nimm_predicate> for the
4135 operand that needs to match output.
4136 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
4137 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
4138 Likewise. Formatting fixes.
4141 * config/i386/i386.c (enum ix86_builtins): Remove
4142 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
4143 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
4144 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
4145 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
4146 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
4147 __builtin_ia32_vfmsubss3_mask3): New builtins.
4148 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
4149 avx512f_vmfmadd_<mode>_mask3<round_name>,
4150 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
4151 *avx512f_vmfmsub_<mode>_mask<round_name>,
4152 avx512f_vmfmsub_<mode>_mask3<round_name>,
4153 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
4154 *avx512f_vmfnmadd_<mode>_mask<round_name>,
4155 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
4156 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
4157 *avx512f_vmfnmsub_<mode>_mask<round_name>,
4158 avx512f_vmfnmsub_<mode>_mask3<round_name>,
4159 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
4160 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
4161 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
4162 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
4163 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
4164 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
4165 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
4166 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
4167 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
4168 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
4169 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
4170 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
4171 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
4172 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
4173 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
4174 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
4175 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
4176 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
4177 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
4178 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
4179 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
4180 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
4182 2019-03-21 Martin Sebor <msebor@redhat.com>
4184 PR tree-optimization/89350
4185 * builtins.c (compute_objsize): Also ignore offsets whose upper
4187 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
4188 (builtin_memref::builtin_memref): Initialize new member.
4189 Allow EXPR to be null.
4190 (builtin_memref::extend_offset_range): Replace local with a member.
4191 Avoid assuming pointer offsets are unsigned.
4192 (builtin_memref::set_base_and_offset): Determine base object
4193 before computing offset range.
4194 (builtin_access::builtin_access): Handle memset.
4195 (builtin_access::generic_overlap): Replace local with a member.
4196 (builtin_access::strcat_overlap): Same.
4197 (builtin_access::overlap): Same.
4198 (maybe_diag_overlap): Same.
4199 (maybe_diag_access_bounds): Same.
4200 (wrestrict_dom_walker::check_call): Handle memset.
4201 (check_bounds_or_overlap): Same.
4203 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
4204 Jakub Jelinek <jakub@redhat.com>
4207 * tree.c (fld_type_variant, fld_incomplete_type_of,
4208 fld_process_array_type): Call fld->pset.add and don't call
4209 add_tree_to_fld_list if it returns true.
4210 (free_lang_data_in_type): Similarly with self-recursive call. Purge
4211 non-marked types from TYPE_NEXT_VARIANT list.
4212 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
4214 2019-03-21 Jakub Jelinek <jakub@redhat.com>
4216 * hash-table.h (hash_table): Add Lazy template parameter defaulted
4217 to false, if true, don't alloc_entries during construction, but defer
4218 it to the first method that needs m_entries allocated.
4219 (hash_table::hash_table, hash_table::~hash_table,
4220 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
4221 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
4222 hash_table::clear_slot, hash_table::traverse_noresize,
4223 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
4224 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
4226 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
4227 NO_INSERT instead of find_with_hash.
4228 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
4229 hash_set::m_table): Add Lazy to template params of hash_table.
4230 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
4231 * attribs.c (test_attribute_exclusions): Likewise.
4232 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
4233 hash_set. Add tests for hash_set with Lazy = true.
4235 2019-03-21 Richard Biener <rguenther@suse.de>
4237 PR tree-optimization/89779
4238 * tree.c (tree_nop_conversion): Consolidate and fix defensive
4239 checks with respect to released SSA names now having error_mark_node
4241 * fold-const.c (operand_equal_p): Likewise.
4243 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
4246 * config/s390/s390.c (global_not_special_regno_p): Move to make it
4248 (s390_optimize_register_info): Use global_not_special_regno_p to
4249 check for global regs.
4251 2019-03-20 Jakub Jelinek <jakub@redhat.com>
4254 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
4255 update this_alternative nor this_alternative_set.
4257 2019-03-19 Jim Wilson <jimw@sifive.com>
4260 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
4261 align, size, offset. Use them to handle a BLKmode reference. Update
4263 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
4265 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4267 PR rtl-optimization/89768
4268 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
4270 (unroll_loop_runtime_iterations): Likewise.
4272 2019-03-19 Martin Sebor <msebor@redhat.com>
4274 PR tree-optimization/89644
4275 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
4276 rather than endptr as an indicator of nul-termination.
4278 PR tree-optimization/89644
4279 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
4280 arrays in determining sequence sizes in strncpy and stpncpy.
4282 2019-03-19 Martin Liska <mliska@suse.cz>
4285 * predict.c (combine_predictions_for_bb): Empty likely_edges and
4286 unlikely_edges if there's an edge that belongs to both these sets.
4288 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
4291 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
4292 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
4293 go via a stack temporary.
4295 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4298 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
4299 instead of gen_rtx_SUBREG.
4300 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
4302 2019-03-19 Richard Biener <rguenther@suse.de>
4305 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
4307 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
4311 * tree.c (free_lang_data_in_decl): Do not free context of C++
4314 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4317 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
4318 subs for the first alternative except when operands[3] is 1.
4321 * gimplify.c (gimplify_asm_expr): For output argument with
4322 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
4325 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
4327 PR rtl-optimization/89753
4328 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
4329 explicit unrolling factor even more robust.
4331 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4334 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
4335 compensation use x2 += 1 instead of x2 -= -1 and when honoring
4336 signed zeros, do another copysign after the compensation.
4338 2019-03-18 Martin Sebor <msebor@redhat.com>
4340 PR tree-optimization/89720
4341 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
4342 more conservatively, the same as anti-range.
4344 2019-03-18 Richard Biener <rguenther@suse.de>
4347 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
4348 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
4349 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
4350 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
4352 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
4354 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
4355 Extend queue to 1024 entries.
4356 Add "consumed" field.
4357 (gomp_print_output): Remove print_index parameter.
4358 Add final parameter.
4359 Change limit to unsigned.
4360 Use consumed field to implement circular buffer.
4361 Detect interrupted print in final pass.
4362 Flush output at the end.
4363 (run): Update gomp_print_output usage.
4364 (main): Initialize kernargs->output_data.consumed.
4366 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
4368 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
4369 calculation of the minimum number of scalar iterations for
4370 fully-predicated loops.
4372 2019-03-18 Martin Jambor <mjambor@suse.cz>
4374 PR tree-optimization/89546
4375 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
4376 any propagation to its children took place.
4378 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
4381 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
4382 parameter, and make use of it.
4383 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
4385 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4387 * config/arc/arc.opt (mcode-density-frame): Get the inital value
4388 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
4389 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
4390 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
4391 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
4392 match what the ops is doing.
4393 (push_multi_fp_blink): Likewise.
4394 * config/arc/arc.c (arc_override_options): Enable enter/leave when
4395 compiling for size and elf target.
4396 (arc_save_callee_enter): Adjust note to match what enter/leave
4399 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4401 * config/arc/arc.md (tst_movb): Fix constraint.
4403 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4405 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
4407 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4409 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
4410 * config/arc/arc.c (arc_conditional_register_usage): Remove all
4411 reg_alloc_order references.
4412 (size_alloc_order): Define.
4413 (arc_adjust_reg_alloc_order): New function.
4414 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
4416 (ADJUST_REG_ALLOC_ORDER): Define.
4417 (HONOR_REG_ALLOC_ORDER): Likewise.
4419 2019-03-18 Richard Biener <rguenther@suse.de>
4422 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
4423 loads and stores a bit more.
4425 2019-03-18 Richard Biener <rguenther@suse.de>
4428 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
4429 load pessimization to stores as well.
4431 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
4434 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
4435 successor, use NULL as its av set.
4437 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
4439 PR rtl-optimization/89721
4440 * lra-constraints (invariant_p): Return false if side_effects_p holds.
4442 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
4445 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4446 When handling vec_extract, use modular arithmetic to allow
4447 constant selectors greater than vector length.
4448 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
4449 V1TImode vectors to have constant selector values greater than 0.
4450 Use modular arithmetic to compute vector index.
4451 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
4452 index for in-memory vectors. Correct code generation for
4453 in-register vectors.
4454 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
4457 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
4461 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
4464 2019-03-15 Jakub Jelinek <jakub@redhat.com>
4467 * tree.c (inchash::add_expr): Strip any location wrappers.
4468 * fold-const.c (operand_equal_p): Move stripping of location wrapper
4469 after hash verification.
4472 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
4473 SIGN_EXTEND and ZERO_EXTEND.
4475 2019-03-14 Jason Merrill <jason@redhat.com>
4476 Jakub Jelinek <jakub@redhat.com>
4478 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
4479 than if is_empty (*slot).
4480 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
4481 existing elt and for elt removal.
4482 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
4483 of already removed elt.
4485 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
4488 * config/i386/i386.c (remove_partial_avx_dependency): Handle
4491 2019-03-14 Martin Liska <mliska@suse.cz>
4494 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
4496 2019-03-14 Richard Biener <rguenther@suse.de>
4499 * config/i386/i386.c (make_resolver_func): Properly set
4500 DECL_CONTEXT on the RESULT_DECL.
4501 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
4503 2019-03-14 Richard Biener <rguenther@suse.de>
4505 * gimple-pretty-print.c: Include cfgloop.h.
4506 (dump_gimple_phi): Adjust.
4507 (dump_gimple_bb_header): Dump loop header for GIMPLE.
4508 (pp_cfg_jump): Adjust.
4509 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
4510 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
4511 (lower_phi_internal_fn): Remove.
4512 (verify_gimple_call): Remove IFN_PHI special-casing.
4513 (dump_function_to_file): Dump IL state.
4514 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
4515 done to deal with PHI nodes being present in non-SSA state.
4517 2019-03-14 Jakub Jelinek <jakub@redhat.com>
4520 * multiple_target.c (create_dispatcher_calls): Change
4521 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
4522 In the node->iterate_referring loop, push *ref rather than ref, call
4523 ref->remove_reference () and always pass 0 to iterate_referring.
4525 PR rtl-optimization/89679
4526 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
4527 would contain a paradoxical SUBREG.
4529 2019-03-14 Richard Biener <rguenther@suse.de>
4531 PR tree-optimization/89710
4532 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
4535 2019-03-14 Martin Liska <mliska@suse.cz>
4537 * coverage.c (coverage_begin_function): Stream also
4539 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
4540 documentation about function declaration location.
4541 * gcov-dump.c (tag_function): Print whole range
4542 of function declaration.
4543 * gcov.c (struct function_info): Add end_column field.
4544 (function_info::function_info): Initialize it.
4545 (output_json_intermediate_file): Output {start,end}_column
4547 (read_graph_file): Read end_column.
4549 2019-03-14 Richard Biener <rguenther@suse.de>
4552 * fold-const.c (operand_equal_p): For INDIRECT_REF check
4553 that the access types are similar.
4555 2019-03-14 Jakub Jelinek <jakub@redhat.com>
4557 PR tree-optimization/89703
4558 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
4559 aren't compatible also with builtin_decl_explicit. Check pure
4560 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
4561 and BUILT_IN_STPNCPY{,_CHK}.
4563 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
4566 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
4567 addr32 prefix to VSIB address for X32.
4568 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
4570 (*avx512pf_gatherpf<mode>df_mask): Likewise.
4571 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
4572 (*avx512pf_scatterpf<mode>df_mask): Likewise.
4573 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
4574 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
4575 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
4576 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
4577 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
4578 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
4579 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
4580 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
4581 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
4582 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
4583 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
4584 (*avx512f_scatterdi<mode>): Likewise.
4586 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
4589 * lra-constraints.c (inherit_in_ebb): Update
4590 potential_reload_hard_regs along with live_hard_regs.
4592 2019-03-13 Jakub Jelinek <jakub@redhat.com>
4595 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
4597 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
4599 2019-03-13 Martin Sebor <msebor@redhat.com>
4601 PR tree-optimization/89662
4602 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
4605 2019-03-13 Richard Biener <rguenther@suse.de>
4608 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
4609 throw FP expressions at tree-affine.
4611 2019-03-14 Richard Biener <rguenther@suse.de>
4613 * tree-pretty-print.c (dump_generic_node): For -gimple properly
4614 dump negative integer constants using _Literal (type) -num.
4616 2019-03-13 Jakub Jelinek <jakub@redhat.com>
4618 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
4619 nonlocal_value member.
4622 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
4623 (ipa_simd_modify_function_body): Handle PHIs.
4625 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4627 * config/s390/s390.c (s390_option_override_internal): Use more
4628 aggressive inlining parameters.
4630 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4632 * config/s390/3906.md: New file.
4633 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
4634 (LONGRUNNING_THRESHOLD): Remove.
4635 (MAX_SCHED_MIX_SCORE): Decrease.
4636 (MAX_SCHED_MIX_DISTANCE): Decrease.
4637 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
4638 (struct s390_sched_state): New struct to hold scheduling state.
4639 (S390_SCHED_STATE_NORMAL): Remove.
4640 (S390_SCHED_STATE_CRACKED): Remove.
4641 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
4642 (s390_get_sched_attrmask): Use new attribute.
4643 (s390_get_unit_mask): Use new units.
4644 (s390_is_fpd): New function.
4645 (s390_is_fxd): New function.
4646 (s390_is_longrunning): New function.
4647 (s390_sched_score): Use new functions.
4648 (s390_sched_reorder): Likewise.
4649 (s390_sched_variable_issue): Rework and use new functions.
4650 (s390_sched_init): Use new functions.
4651 * config/s390/s390.h (s390_tune_attr): Add z14.
4652 * config/s390/s390.md: Add z14.
4654 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4656 * config/s390/2964.md: Update pipeline description.
4657 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
4658 (LONGRUNNING_THRESHOLD): Remove.
4659 (LATENCY_FACTOR): Remove.
4660 (s390_get_unit_mask): Add unit.
4661 (s390_sched_score): Use fxd/fpd.
4662 (s390_sched_variable_issue): Use fxd/fpd.
4664 2019-03-12 Martin Liska <mliska@suse.cz>
4666 * config/i386/i386.c: Reword an error message.
4668 2019-03-12 Martin Jambor <mjambor@suse.cz>
4670 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
4671 terminate with newline.
4673 2019-03-12 Jakub Jelinek <jakub@redhat.com>
4676 * config/s390/s390.md (tabort): Use %wd instead of
4677 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
4678 letters and periods.
4679 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
4680 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
4684 * builtins.c (expand_builtin_int_roundingfn,
4685 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
4686 gcc_unreachable if validate_arglist fails.
4688 2019-03-12 Richard Biener <rguenther@suse.de>
4690 PR tree-optimization/89664
4691 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
4692 free the occurance tree after the early out.
4694 2019-03-11 Jakub Jelinek <jakub@redhat.com>
4698 * vr-values.c (vr_values::update_value_range): If
4699 old_vr->varying_p (), don't update it, make new_vr also VARYING
4702 2019-03-11 Martin Liska <mliska@suse.cz>
4704 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4705 Fix double string quoting.
4707 2019-03-11 Martin Liska <mliska@suse.cz>
4709 * collect-utils.c (collect_wait): Wrap apostrophes
4710 in gcc internal format with %'.
4711 * collect2.c (main): Likewise.
4712 (scan_prog_file): Likewise.
4713 (scan_libraries): Likewise.
4714 * config/i386/i386.c (ix86_expand_call): Likewise.
4715 (ix86_handle_interrupt_attribute): Likewise.
4716 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
4717 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
4718 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
4719 * lto-wrapper.c (find_crtoffloadtable): Likewise.
4720 * symtab.c (symtab_node::verify_base): Likewise.
4721 * tree-cfg.c (verify_gimple_label): Likewise.
4722 * tree.c (verify_type_variant): Likewise.
4724 2019-03-11 Martin Liska <mliska@suse.cz>
4726 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
4727 in a string format message and fix GNU coding style.
4728 (expand_builtin_set_thread_pointer): Likewise.
4729 * common/config/aarch64/aarch64-common.c
4730 (aarch64_rewrite_selected_cpu): Likewise.
4731 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
4732 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
4733 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
4734 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
4735 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
4736 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
4737 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
4738 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
4739 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
4740 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
4742 * common/config/riscv/riscv-common.c
4743 (riscv_subset_list::parsing_subset_version): Likewise.
4744 (riscv_subset_list::parse_std_ext): Likewise.
4745 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
4746 (riscv_subset_list::parse): Likewise.
4747 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
4748 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
4749 (aarch64_override_options_internal): Likewise.
4750 (aarch64_validate_mcpu): Likewise.
4751 (aarch64_validate_march): Likewise.
4752 (aarch64_validate_mtune): Likewise.
4753 (aarch64_override_options): Likewise.
4754 * config/alpha/alpha.c (alpha_option_override): Likewise.
4755 * config/arc/arc.c (arc_init): Likewise.
4756 (parse_mrgf_banked_regs_option): Likewise.
4757 (arc_override_options): Likewise.
4758 (arc_expand_builtin_aligned): Likewise.
4759 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
4760 (arm_expand_builtin): Likewise.
4761 * config/arm/arm.c (arm_option_check_internal): Likewise.
4762 (arm_configure_build_target): Likewise.
4763 (arm_option_override): Likewise.
4764 (arm_options_perform_arch_sanity_checks): Likewise.
4765 (arm_handle_cmse_nonsecure_entry): Likewise.
4766 (arm_handle_cmse_nonsecure_call): Likewise.
4767 (arm_tls_referenced_p): Likewise.
4768 (thumb1_expand_prologue): Likewise.
4769 * config/avr/avr.c (avr_option_override): Likewise.
4770 * config/bfin/bfin.c (bfin_option_override): Likewise.
4771 * config/c6x/c6x.c (c6x_option_override): Likewise.
4772 * config/cr16/cr16.c (cr16_override_options): Likewise.
4773 * config/cris/cris.c (cris_option_override): Likewise.
4774 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
4775 * config/darwin-c.c (macosx_version_as_macro): Likewise.
4776 * config/darwin.c (darwin_override_options): Likewise.
4777 * config/frv/frv.c (frv_expand_builtin): Likewise.
4778 * config/h8300/h8300.c (h8300_option_override): Likewise.
4779 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
4780 (ix86_option_override_internal): Likewise.
4781 (warn_once_call_ms2sysv_xlogues): Likewise.
4782 (ix86_expand_prologue): Likewise.
4783 (split_stack_prologue_scratch_regno): Likewise.
4784 (ix86_warn_parameter_passing_abi): Likewise.
4785 * config/ia64/ia64.c (fix_range): Likewise.
4786 * config/m68k/m68k.c (m68k_option_override): Likewise.
4787 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
4788 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
4789 (mips_set_compression_mode): Likewise.
4790 * config/mmix/mmix.c (mmix_option_override): Likewise.
4791 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
4792 * config/msp430/msp430.c (msp430_option_override): Likewise.
4793 * config/nds32/nds32.c (nds32_option_override): Likewise.
4794 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
4795 (nios2_option_override): Likewise.
4796 (nios2_expand_custom_builtin): Likewise.
4797 * config/nvptx/mkoffload.c (main): Likewise.
4798 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
4799 * config/pa/pa.c (fix_range): Likewise.
4800 (pa_option_override): Likewise.
4801 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
4802 (riscv_option_override): Likewise.
4803 * config/rl78/rl78.c (rl78_option_override): Likewise.
4804 * config/rs6000/aix61.h: Likewise.
4805 * config/rs6000/aix71.h: Likewise.
4806 * config/rs6000/aix72.h: Likewise.
4807 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
4808 * config/rs6000/freebsd64.h: Likewise.
4809 * config/rs6000/linux64.h: Likewise.
4810 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4811 (rs6000_expand_zeroop_builtin): Likewise.
4812 (rs6000_expand_mtfsb_builtin): Likewise.
4813 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
4814 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
4815 (rs6000_invalid_builtin): Likewise.
4816 (rs6000_expand_split_stack_prologue): Likewise.
4817 * config/rs6000/rtems.h: Likewise.
4818 * config/rx/rx.c (valid_psw_flag): Likewise.
4819 (rx_expand_builtin): Likewise.
4820 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
4821 * config/s390/s390.c (s390_expand_builtin): Likewise.
4822 (s390_function_profiler): Likewise.
4823 (s390_option_override_internal): Likewise.
4824 (s390_option_override): Likewise.
4825 * config/sh/sh.c (sh_option_override): Likewise.
4826 (sh_builtin_saveregs): Likewise.
4827 (sh_fix_range): Likewise.
4828 * config/sh/vxworks.h: Likewise.
4829 * config/sparc/sparc.c (sparc_option_override): Likewise.
4830 * config/spu/spu.c (spu_option_override): Likewise.
4831 (fix_range): Likewise.
4832 * config/visium/visium.c (visium_option_override): Likewise.
4833 (visium_handle_interrupt_attr): Likewise.
4834 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
4835 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
4836 (dbg_cnt_process_opt): Likewise.
4837 * dwarf2out.c (output_dwarf_version): Likewise.
4838 * except.c (expand_eh_return): Likewise.
4839 * gcc.c (defined): Likewise.
4840 (driver_handle_option): Likewise.
4841 (process_command): Likewise.
4842 (compare_files): Likewise.
4843 (driver::prepare_infiles): Likewise.
4844 (driver::do_spec_on_infiles): Likewise.
4845 (driver::maybe_run_linker): Likewise.
4846 * omp-offload.c (oacc_parse_default_dims): Likewise.
4847 * opts-global.c (handle_common_deferred_options): Likewise.
4848 * opts.c (parse_sanitizer_options): Likewise.
4849 (common_handle_option): Likewise.
4850 (enable_warning_as_error): Likewise.
4851 * passes.c (enable_disable_pass): Likewise.
4852 * plugin.c (parse_plugin_arg_opt): Likewise.
4853 (default_plugin_dir_name): Likewise.
4854 * targhooks.c (default_expand_builtin_saveregs): Likewise.
4855 (default_pch_valid_p): Likewise.
4856 * toplev.c (init_asm_output): Likewise.
4857 (process_options): Likewise.
4858 (toplev::run_self_tests): Likewise.
4859 * tree-cfg.c (verify_gimple_call): Likewise.
4860 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
4861 (tree_inlinable_function_p): Likewise.
4862 * var-tracking.c (vt_find_locations): Likewise.
4864 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
4866 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
4867 only on the else branch.
4869 2019-03-11 Martin Liska <mliska@suse.cz>
4871 * gcov.c (output_intermediate_json_line): Print function
4873 (output_json_intermediate_file): Add new argument.
4874 * doc/gcov.texi: Document the change.
4876 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
4878 PR rtl-optimization/89588
4879 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
4880 explicit unrolling factor more robust.
4882 2019-03-11 Richard Biener <rguenther@suse.de>
4884 PR tree-optimization/89649
4885 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
4886 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
4887 on the prolog and epilog loops.
4888 (vect_loop_versioning): Return copy of loop.
4889 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
4890 on the non-vectorized version of the loop.
4892 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
4895 * config/i386/sse.md (*vec_extractv2di_0_sse):
4896 Add (=r,x) alternative and corresponding splitter.
4898 2019-03-10 Martin Jambor <mjambor@suse.cz>
4900 PR tree-optimization/85762
4901 PR tree-optimization/87008
4902 PR tree-optimization/85459
4903 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
4904 it points to if there is a type changing MEM_REF. Adjust all callers.
4905 (build_accesses_from_assign): Disable total scalarization if
4906 contains_vce_or_bfcref_p returns true through the new parameter, for
4909 2019-03-09 Jakub Jelinek <jakub@redhat.com>
4912 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
4913 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
4916 * common.opt (fdiagnostics-show-labels,
4917 fdiagnostics-show-line-numbers, fdiagnostics-format=,
4918 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
4919 gas-locview-support, ginline-points, ginternal-reset-location-views):
4920 Terminate description text with a dot.
4921 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
4922 * config/mcore/mcore.opt (m210, m340): Likewise.
4923 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
4924 mnops=): Start description text with a capital letter.
4925 * config/arc/arc.opt (msize-level=): Likewise.
4926 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
4927 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
4929 * config/ft32/ft32.opt (msim): Likewise.
4930 (mft32b, mcompress): Likewise. Terminate description text with a dot.
4931 (mnodiv, mnopm): Terminate description text with a dot.
4932 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
4934 * config/i386/i386.opt (prefer_vector_width, instrument_return):
4936 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
4939 PR rtl-optimization/89634
4940 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
4941 are modified in BB_END (e->src) instruction.
4943 2019-03-08 David Malcolm <dmalcolm@redhat.com>
4946 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
4947 messages more amenable to translation, and improve wording.
4949 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
4951 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
4952 ud- and du-chains between phases.
4954 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
4957 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
4958 instead of POLY_INT_CST.
4960 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4962 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
4965 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
4970 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
4971 (_mm_storeu_si64): Ditto.
4973 2019-03-08 Martin Liska <mliska@suse.cz>
4976 * config/i386/i386.c (ix86_option_override_internal): Disable
4977 jump tables when retpolines are used.
4979 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
4982 * ipa-split.c (execute_split_functions): Do not split
4983 'noinline' or 'section' function.
4985 2019-03-08 Jakub Jelinek <jakub@redhat.com>
4988 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
4989 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
4990 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
4993 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
4994 from diagnostics. Formatting fixes.
4997 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
4998 warn_odr diagnostics.
5001 * lra-constraints.c (process_alt_operands): Avoid one space before
5002 " at the end of line and another after " on another line in a string
5004 * attribs.c (handle_dll_attribute): Likewise.
5005 * config/avr/avr-devices.c (avr_texinfo): Likewise.
5007 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
5008 warning_at or inform messages in G_() if there is no ?:.
5010 PR tree-optimization/89550
5011 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
5012 returned true. Formatting fixes.
5013 (expand_builtin_strnlen): Formatting fixes.
5014 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
5015 if warning_at returned true.
5016 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
5018 2019-03-08 Richard Biener <rguenther@suse.de>
5021 * cfgloop.h (struct loop): Add owned_clique field.
5022 * cfgloopmanip.c (copy_loop_info): Copy it.
5023 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
5025 * tree-inline.c (copy_loops): Remap owned_clique.
5026 * lto-streamer-in.c (input_cfg): Stream owned_clique.
5027 * lto-streamer-out.c (output_cfg): Likewise.
5029 2019-03-08 Jakub Jelinek <jakub@redhat.com>
5032 * config/darwin.c: Include intl.h.
5033 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
5034 composing the message out of two separate parts.
5036 2019-03-07 Jakub Jelinek <jakub@redhat.com>
5039 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
5040 doesn't start with a capital letter and doesn't end with a dot.
5041 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
5042 with a capital letter.
5043 (ix86_mangle_function_version_assembler_name): Likewise.
5044 (ix86_generate_version_dispatcher_body): Likewise.
5045 (fold_builtin_cpu): Likewise.
5046 (get_builtin_code_for_version): Likewise. Remove extraneous space.
5047 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
5048 translators, wrap full type name in %qs.
5050 PR translation/79999
5051 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
5052 depend clause with source (or sink) modifier.
5053 * omp-expand.c (expand_omp_ordered_sink): Likewise.
5056 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
5057 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
5058 (avx512f_load<mode>_mask): New define_expand.
5059 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
5060 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
5061 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
5062 __builtin_ia32_movess_mask): New builtins.
5063 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
5064 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
5065 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
5066 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
5068 2019-03-07 Martin Jambor <mjambor@suse.cz>
5071 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
5072 for extern inline functions.
5074 2019-03-07 Martin Jambor <mjambor@suse.cz>
5077 * cgraph.h (cgraph_node): New inline method former_thunk_p.
5078 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
5079 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
5080 have multiple callees. At the end check if declarations match as
5081 opposed to cgraph_nodes.
5083 2019-03-07 Martin Liska <mliska@suse.cz>
5085 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
5086 which is equivalent to searching for this in clones chain.
5087 * symtab.c (symtab_node::verify_base): Similarly compare ASM
5088 names with a neighbour and special case first node in a chain.
5090 2019-01-25 Jason Merrill <jason@redhat.com>
5092 PR c++/80916 - spurious "static but not defined" warning.
5093 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
5094 for an internal symbol with DECL_EXTERNAL.
5096 2019-04-07 Richard Biener <rguenther@suse.de>
5099 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
5100 * tree-inline.c (copy_loops): Simplify.
5102 2019-03-07 Martin Liska <mliska@suse.cz>
5104 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
5106 2019-03-07 Richard Biener <rguenther@suse.de>
5108 PR tree-optimization/89595
5109 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
5110 stmt iterator as reference, take boolean output parameter to
5111 indicate whether the stmt was removed and thus the iterator
5113 (dom_opt_dom_walker::before_dom_children): Re-iterate over
5114 stmts created by folding.
5116 2019-03-07 Jakub Jelinek <jakub@redhat.com>
5119 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
5122 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
5124 PR rtl-optimization/88845
5125 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
5127 * lra.c (remove_scratches_1): New function.
5128 (remove_scratches): Use it.
5129 (lra_emit_move): Likewise.
5131 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
5133 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
5134 unaligned_access variable.
5135 * config/arc/arc.c (arc_override_options): Set unaligned access
5136 default on for HS CPUs.
5137 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
5139 2019-03-06 Martin Liska <mliska@suse.cz>
5141 PR gcov-profile/89577
5142 * doc/gcov.texi: Prefer to use --coverage.
5143 * doc/sourcebuild.texi: Likewise.
5145 2019-03-02 Jason Merrill <jason@redhat.com>
5147 PR c++/86485 - -Wmaybe-unused with empty class ?:
5148 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
5150 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5153 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
5157 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
5158 exactly one argument.
5160 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5161 Richard Sandiford <richard.sandiford@arm.com>
5163 PR tree-optimization/89570
5164 * match.pd (vec_cond into cond_op simplification): Don't use
5165 get_conditional_internal_fn, use as_internal_fn (cond_op).
5167 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
5170 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
5171 to decide when to split off a non-zero offset from a symbol.
5172 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
5173 in function symbols.
5175 2019-03-05 Richard Biener <rguenther@suse.de>
5177 PR tree-optimization/89594
5178 * tree-if-conv.c (pass_if_conversion::execute): Handle
5179 case where .LOOP_VECTORIZED_FUNCTION was removed.
5181 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5184 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
5185 instead alloca it only when needed with the needed size.
5187 PR tree-optimization/89570
5188 * match.pd (vec_cond into cond_op simplification): Guard with
5189 vectorized_internal_fn_supported_p test and #if GIMPLE.
5191 PR tree-optimization/89566
5192 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
5193 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
5194 Punt if get_user_idx_format succeeds, but idx_format argument is
5195 not provided or doesn't have pointer type, or if idx_args is above
5196 number of provided arguments.
5198 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
5200 PR tree-optimization/89437
5201 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
5203 2019-03-04 Richard Biener <rguenther@suse.de>
5206 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
5209 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
5211 PR tree-optimization/89487
5212 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
5213 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
5214 (distribute_loop): Don't do runtime alias check if there is non-
5215 addressable data reference.
5216 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
5217 is a register variable.
5219 2019-03-02 Jakub Jelinek <jakub@redhat.com>
5222 * config/arm/arm.md (cmpsi2_addneg): Use
5223 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
5224 If operands[2] is 0 or INT_MIN, force use of subs.
5225 (*compare_scc splitter): Use gen_int_mode.
5226 (*negscc): Likewise.
5227 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
5229 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
5230 Monk Chiang <sh.chiang04@gmail.com>
5232 * common/config/riscv/riscv-common.c: Include sstream.
5233 (riscv_subset_list::to_string): New.
5234 (riscv_arch_str): Likewise.
5235 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
5237 * config/riscv/riscv-protos.h (riscv_arch_str): New.
5238 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
5239 (riscv_emit_attribute): New.
5240 (riscv_file_start): Emit attribute if needed.
5241 (riscv_option_override): Init riscv_emit_attribute_p.
5242 * config/riscv/riscv.opt (mriscv-attribute): New option.
5243 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
5245 * doc/install.texi: Document --with-riscv-attribute.
5246 * doc/invoke.texi: Document -mriscv-attribute.
5248 * common/config/riscv/riscv-common.c:
5249 Include config/riscv/riscv-protos.h.
5250 (INCLUDE_STRING): Defined.
5251 (RISCV_DONT_CARE_VERSION): Defined.
5252 (riscv_subset_t): Declare.
5253 (riscv_subset_t::riscv_subset_t): New.
5254 (riscv_subset_list): Declare.
5255 (riscv_subset_list::riscv_subset_list): New.
5256 (riscv_subset_list::~riscv_subset_list): Likewise.
5257 (riscv_subset_list::parsing_subset_version): Likewise.
5258 (riscv_subset_list::parse_std_ext): Likewise.
5259 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
5260 (riscv_subset_list::add): Likewise.
5261 (riscv_subset_list::lookup): Likewise.
5262 (riscv_subset_list::xlen): Likewise.
5263 (riscv_subset_list::parse): Likewise.
5264 (riscv_supported_std_ext): Likewise.
5265 (current_subset_list): Likewise.
5266 (riscv_parse_arch_string): Using riscv_subset_list::parse to
5269 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
5271 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
5272 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
5273 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
5275 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
5277 PR rtl-optimization/85899
5278 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
5279 fallthru edges leading to the exit block.
5281 2019-03-01 Tamar Christina <tamar.christina@arm.com>
5284 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
5285 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
5287 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
5289 PR tree-optimization/89535
5290 * tree-vect-stmts.c (vectorizable_call): Record the vector types
5291 for each operand. Calculate the fallback choice for mask operands
5292 and pass it to vect_get_vec_def_for_operand.
5294 2019-03-01 Richard Biener <rguenther@suse.de>
5297 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
5298 get virtual operands.
5299 (get_expr_operands): Handle CONST_DECL like other decls.
5301 2019-03-01 Jakub Jelinek <jakub@redhat.com>
5304 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
5305 on DECL_P and EXPR_P.
5307 2019-03-01 Richard Biener <rguenther@suse.de>
5310 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
5311 argument, defaulted to zero.
5312 * passes.c (execute_function_todo): Pass down SSA update flags
5313 to cleanup_tree_cfg.
5314 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
5315 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
5317 (cleanup_tree_cfg): Get and pass down SSA update flags.
5319 2019-03-01 Jakub Jelinek <jakub@redhat.com>
5322 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
5323 early_lto_debug argument.
5325 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
5327 PR tree-optimization/89536
5328 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
5329 only whether bit #0 of the value is 0 instead of the entire value.
5331 2019-02-28 Marek Polacek <polacek@redhat.com>
5333 PR c++/87068 - missing diagnostic with fallthrough statement.
5334 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
5335 at the end of a seq, save its location to walk_stmt_info.
5336 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
5339 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
5342 * tree.c (find_atomic_core_type): Move ahead in file.
5343 (check_base_type): Correctly compare alignments of atomic types.
5345 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
5348 * config/i386/i386.c (get_builtin_code_for_version): Identify
5349 Westmere from PCLMUL, instead of AES.
5351 2019-02-28 Jakub Jelinek <jakub@redhat.com>
5354 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
5355 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
5358 2019-02-28 Tamar Christina <tamar.christina@arm.com>
5361 * config/aarch64/aarch64-option-extensions.def: Document it.
5362 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
5365 2019-02-28 Jakub Jelinek <jakub@redhat.com>
5368 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
5369 builtins if they don't have a single scalar floating point argument.
5372 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
5374 PR rtl-optimization/89490
5375 * varasm.c (get_block_for_section): Bail out for mergeable sections.
5376 (default_use_anchors_for_symbol_p, output_object_block): Assert the
5377 block section is not mergeable.
5379 2019-02-27 Jakub Jelinek <jakub@redhat.com>
5382 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
5383 old define_insn to ...
5384 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
5385 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
5386 Rename old define_insn to ...
5387 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
5388 (thumb2_casesi_internal_pic): New define_expand. Rename old
5390 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
5391 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
5392 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
5394 2019-02-27 Richard Biener <rguenther@suse.de>
5397 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
5399 2019-02-27 Richard Biener <rguenther@suse.de>
5401 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
5404 2019-02-27 Richard Biener <rguenther@suse.de>
5407 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
5408 parameter, prefix section name with .gnu.debuglto_ if true.
5409 (dwarf2out_finish): Pass false to output_comdat_type_unit.
5410 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
5412 2019-02-27 Richard Biener <rguenther@suse.de>
5415 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
5416 rather than on use_debug_types, doing what output_die does.
5417 (value_format): Likewise.
5419 2019-02-27 Martin Jambor <mjambor@suse.cz>
5420 Martin Sebor <msebor@redhat.com>
5422 * doc/invoke.texi (Warning Options): Reword description of
5423 -Wno-absolute-value.
5425 2019-02-27 Jakub Jelinek <jakub@redhat.com>
5427 PR tree-optimization/89280
5428 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
5429 builtin_setjmp_setup_bb): New functions.
5430 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
5431 When visiting __builtin_setjmp_setup block, queue in special
5432 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
5433 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
5434 from visited after the loop if they don't have any visited successor
5437 2018-02-26 Steve Ellcey <sellcey@marvell.com>
5439 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
5441 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
5443 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5446 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
5447 with types other than sizetype/ssizetype.
5449 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
5451 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
5452 (enum sparc_processor_type): ...this.
5453 (enum sparc_code_model_type): New enumeration type.
5454 (enum sparc_memory_model_type): Tweak comments.
5455 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
5457 (mcmodel): Use sparc_code_model enumeration and variable.
5458 (sparc_code_model): New enumeration.
5459 (mdebug): Add Undocumented marker.
5460 * config/sparc/sparc.h (enum cmodel): Delete.
5461 (sparc_cmodel): Likewise.
5462 (TARGET_CM_MEDLOW): Adjust to above renaming.
5463 (TARGET_CM_MEDMID): Likewise.
5464 (TARGET_CM_MEDANY): Likewise.
5465 (TARGET_CM_EMBMEDANY): Likewise.
5466 * config/sparc/sparc.c (sparc_cmodel): Delete.
5467 (sparc_option_override): Remove string/value mapping support for the
5468 code model. Move code and memory model support to after the handling
5469 of target flags. Do private machine setup last.
5470 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
5471 (sparc_legitimize_reload_address): Likewise.
5472 (sparc_output_mi_thunk): Likewise.
5473 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
5475 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5477 PR tree-optimization/89500
5478 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
5479 (handle_builtin_strlen): Remove noncst_bound variable. Always
5480 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
5481 cst if the first cst bytes starting at x are known to be non-zero,
5482 even if the string is not zero terminated. Don't try to modify
5483 *si for strnlen. Update strlen_to_stridx only for strlen or if
5484 we can prove strnlen returns the same value as strlen would.
5486 2019-02-26 Martin Liska <mliska@suse.cz>
5488 * alloc-pool.h (struct pool_usage): Remove extra
5490 * bitmap.h (struct bitmap_usage): Likewise.
5491 * ggc-common.c (struct ggc_usage): Likewise.
5492 * mem-stats.h (struct mem_usage): Likewise.
5493 (mem_alloc_description::dump): Print dash lines
5494 here and repeat header at the end of a table report.
5495 It's then more readable.
5496 * tree-phinodes.c (phinodes_print_statistics): Make
5497 horizontal alignment.
5498 * tree-ssanames.c (ssanames_print_statistics): Likewise.
5499 * vec.c (struct vec_usage): Remove extra print_dash_line.
5500 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
5502 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
5504 * doc/extend.texi (__builtin_object_size):
5505 Use @pxref instead of @xref inside parenthesis.
5506 (__builtin_has_attribute): Add missing comma after @xref.
5507 (__builtin_object_size): Ditto.
5508 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
5509 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
5512 2019-02-26 Jeff Law <law@redhat.com>
5514 PR rtl-optimization/87761
5515 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
5516 detect obviously dead insns and delete them.
5518 2019-02-26 Richard Biener <rguenther@suse.de>
5520 PR tree-optimization/89505
5521 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
5522 to handle restrict pointed-to vars with multiple subvars
5525 2019-02-26 Richard Biener <rguenther@suse.de>
5527 PR tree-optimization/89489
5528 * tree-parloops.c (create_loop_fn): Copy over last_clique.
5530 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
5532 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
5533 and move around comment.
5534 <BIT_AND_EXPR>: Likewise.
5535 <BIT_NOT_EXPR>: Add specific handling for boolean types.
5537 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5540 * config/i386/i386.c (remove_partial_avx_dependency): Call
5541 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
5542 after changing possibly many instructions to use that pseudo. Fix up
5543 insertion of v4sf_const0 setter at the start of bb.
5545 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
5548 * doc/extend.texi (Variadic Pointer Args): New section.
5550 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
5551 Martin Sebor <msebor@gmail.com>
5553 * common.opt (Wattribute-alias): Likewise.
5554 * doc/invoke.texi (Option Summary): List general form of
5555 -Wattribute-alias=. List positive form of -Wmissing-attributes.
5556 (-Wmissing-attributes): Invert entry, rewrite and correct default.
5557 Add cross-references.
5558 (-Wattribute-alias): Rewrite and correct default. Mention
5559 considered attributes (same as for -Wmissing-attributes).
5561 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
5563 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
5564 (_mm_cvtpd_ps): Likewise.
5565 (_mm_cvttpd_epi32): Likewise.
5568 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
5569 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
5572 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
5574 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5577 * common/config/aarch64/aarch64-common.c
5578 (struct aarch64_option_extension): Add is_synthetic.
5579 (all_extensions): Use it.
5580 (TARGET_OPTION_INIT_STRUCT): Define hook.
5581 (struct gcc_targetm_common): Moved to end.
5582 (all_extensions_by_on): New.
5583 (opt_ext_cmp, typedef opt_ext): New.
5584 (aarch64_option_init_struct): New.
5585 (aarch64_contains_opt): New.
5586 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
5587 * config/aarch64/aarch64-option-extensions.def
5588 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
5589 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
5590 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
5591 Set is_synthetic to false.
5592 (crypto): Set is_synthetic to true.
5593 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
5596 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5598 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
5599 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
5600 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
5601 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
5602 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
5603 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
5604 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
5605 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
5607 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
5608 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
5609 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
5610 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
5611 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
5612 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
5613 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
5614 vfmlsl_laneq_high_f16): ... To this.
5615 * config/arm/neon.md: Update comments.
5617 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5619 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
5620 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
5621 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
5622 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
5623 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
5624 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
5625 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
5626 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
5628 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
5629 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
5630 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
5631 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
5632 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
5633 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
5634 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
5635 vfmlslq_laneq_high_f16): ... To this.
5637 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
5639 PR rtl-optimization/86096
5640 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
5641 comparing mw_order values.
5643 2019-02-25 Jakub Jelinek <jakub@redhat.com>
5646 * config/arm/arm.md (*subsi3_carryin_const): Use
5647 arm_neg_immediate_operand predicate instead of
5648 arm_not_immediate_operand, "L" constraint instead of "K" and
5649 print it using %n2 instead of %B2.
5650 (*subsi3_carryin_const0): New define_insn.
5651 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
5652 instead of arm_not_operand and "I" constraint instead of "K" and
5653 print it using %n3 instead of %B2. Instead of using match_dup 2 add
5654 another match_operand and in the condition check that it is negation
5656 (*subsi3_carryin_compare_const0): New define_ins.
5657 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
5658 *subsi3_carryin_const.
5659 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
5660 split into *subsi3_carryin_compare_const0 if the highpart is zero.
5663 * config/arm.vfp.md (*negdf2_vfp): Use
5664 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
5665 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
5667 2019-02-24 Jakub Jelinek <jakub@redhat.com>
5669 PR rtl-optimization/89445
5670 * simplify-rtx.c (simplify_ternary_operation): Don't use
5671 simplify_merge_mask on operands that may trap.
5672 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
5673 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
5674 second operand is CONST_VECTOR, check if any element could be zero.
5675 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
5676 their operands can trap.
5678 2019-02-23 Martin Sebor <msebor@redhat.com>
5680 * gimple-ssa-sprintf.c (target_strtol): Rename...
5681 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
5682 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
5683 check for range error.
5685 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
5688 * opts-common.c (prune_options): Also prune joined switches
5689 with Negative and RejectNegative.
5690 * config/i386/i386.opt (march=): Add Negative(march=).
5691 (mtune=): Add Negative(mtune=).
5692 * doc/options.texi: Document Negative used together with Joined
5695 2019-02-22 Martin Sebor <msebor@redhat.com>
5697 * doc/extend.texi (Other Builtins): Add
5698 __builtin_is_constant_evaluated.
5700 2019-02-22 Richard Biener <rguenther@suse.de>
5702 PR tree-optimization/87609
5703 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
5705 2019-02-22 Jeff Law <law@redhat.com>
5707 PR rtl-optimization/87761
5708 * config/mips/mips.md: Add new combiner pattern to recognize
5709 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
5711 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
5714 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
5715 destination register in peepholes generating patterns for ADDS/SUBS.
5716 (add<mode>3_compare0,
5717 *addsi3_compare0_uxtw, add<mode>3_compareC,
5718 add<mode>3_compareV_imm, add<mode>3_compareV,
5719 *adds_<optab><ALLX:mode>_<GPI:mode>,
5720 *subs_<optab><ALLX:mode>_<GPI:mode>,
5721 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
5722 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
5723 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
5724 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
5725 sub<mode>3_compare1): Allow stack pointer for source register.
5726 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
5728 2019-02-22 Martin Sebor <msebor@redhat.com>
5730 PR tree-optimization/88993
5731 PR tree-optimization/88853
5732 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
5734 (sprintf_dom_walker::call_info::is_string_func): New helper.
5735 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
5736 for formatted string functions.
5737 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
5739 2019-02-22 Martin Sebor <msebor@redhat.com>
5742 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
5743 unreachable subexpressions.
5745 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
5746 Hongtao Liu <hongtao.liu@intel.com>
5747 Sunil K Pandey <sunil.k.pandey@intel.com>
5750 * config/i386/i386-passes.def: Add
5751 pass_remove_partial_avx_dependency.
5752 * config/i386/i386-protos.h
5753 (make_pass_remove_partial_avx_dependency): New.
5754 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
5756 (pass_data_remove_partial_avx_dependency): New.
5757 (pass_remove_partial_avx_dependency): Likewise.
5758 (make_pass_remove_partial_avx_dependency): Likewise.
5759 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
5760 (*extendsfdf2): Add avx_partial_xmm_update.
5761 (truncdfsf2): Likewise.
5762 (*float<SWI48:mode><MODEF:mode>2): Likewise.
5763 (SF/DF conversion splitters): Disabled for TARGET_AVX.
5765 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
5768 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
5771 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
5774 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
5775 (PTA_SKYLAKE): Add PTA_AES.
5776 (PTA_GOLDMONT): Likewise.
5778 2019-02-22 Sudakshina Das <sudi.das@arm.com>
5780 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
5781 instruction if enabled.
5782 (aarch64_override_options): Remove reference to return address key.
5784 2019-02-22 Richard Biener <rguenther@suse.de>
5786 PR tree-optimization/89440
5787 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
5788 not necessary assert.
5790 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
5793 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
5794 (oacc_replace_fn_attrib_attr): ... this new function.
5795 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
5796 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
5798 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5800 * config/arm/arm-cpus.in (ares): Rename to...
5801 (neoverse-n1): ... This. Add ares as alias.
5802 * config/arm/arm-tables.opt: Regenerate.
5803 * config/arm/arm-tune.md: Likewise.
5804 * doc/invoke.txt (ARM Options): Document neoverse-n1.
5806 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5808 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
5809 * config/aarch64/aarch64-tune.md: Regenerate.
5810 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
5812 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5814 * config/aarch64/aarch64.c (ares_tunings): Rename to...
5815 (neoversen1_tunings): ... This.
5816 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
5817 (neoverse-n1): New CPU.
5818 * config/aarch64/aarch64-tune.md: Regenerate.
5819 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
5821 2019-02-22 Richard Biener <rguenther@suse.de>
5824 * cfghooks.h (dependence_hash): New typedef.
5825 (struct copy_bb_data): New type.
5826 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
5827 (duplicate_block): Likewise.
5828 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
5829 (copy_bbs): Create and pass down copy_bb_data.
5830 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
5831 (rtl_duplicate_bb): Likewise.
5832 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
5833 remap dependence info.
5835 2019-02-22 Richard Biener <rguenther@suse.de>
5837 PR tree-optimization/87609
5838 * tree-core.h (tree_base): Document special clique values.
5839 * tree-inline.c (remap_dependence_clique): Do not use the
5840 special clique value of one.
5841 (maybe_set_dependence_info): Use clique one.
5842 (clear_dependence_clique): New callback.
5843 (compute_dependence_clique): Clear clique one from all refs
5844 before assigning it (again).
5846 2019-02-21 Martin Sebor <msebor@redhat.com>
5848 * doc/extend.texi (__clear_cache): Correct signature.
5850 2019-02-21 Ian Lance Taylor <iant@golang.org>
5853 * varasm.c (decode_addr_const): Call lookup_constant_def rather
5854 than output_constant_def.
5855 (add_constant_to_table): New static function.
5856 (output_constant_def): Call add_constant_to_table.
5857 (tree_output_constant_def): Likewise.
5859 2019-02-21 Jakub Jelinek <jakub@redhat.com>
5862 * builtins.c (fold_builtin_arith_overflow): If first two args are
5863 INTEGER_CSTs, set intres and ovfres to constants rather than calls
5866 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
5869 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
5870 error for -mindirect-branch/-mfunction-return with incompatible
5873 2019-02-21 Jakub Jelinek <jakub@redhat.com>
5876 * constraints.md (q): Remove.
5877 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
5880 2019-02-21 Martin Jambor <mjambor@suse.cz>
5883 * omp-general.c (omp_extract_for_data): Removed a duplicate call
5884 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
5885 (omp_adjust_for_condition): ...here. Added necessary parameters.
5886 * omp-general.h (omp_adjust_for_condition): Updated declaration.
5887 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
5888 proper values to new parameters of omp_adjust_for_condition.
5890 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5893 * expr.c (expand_assignment): If result is a MEM, use change_address
5894 instead of simplify_gen_subreg.
5896 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5897 David Malcolm <dmalcolm@redhat.com>
5900 * fold-const.c (decode_field_reference): Return NULL_TREE if
5901 lang_hooks.types.type_for_size returns NULL. Check it before
5902 overwriting *exp_. Use return NULL_TREE instead of return 0.
5904 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5908 * toplev.c (do_compile): Double the emin/emax exponents to workaround
5911 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
5914 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
5915 TARGET_SSE in addition to TARGET_SSE_MATH.
5917 (ix86_excess_precision): Ditto.
5918 (ix86_float_exceptions_rounding_supported_p): Ditto.
5919 (use_rsqrt_p): Ditto.
5920 * config/i386/sse.md (rsqrt<mode>2): Ditto.
5922 2019-02-20 David Malcolm <dmalcolm@redhat.com>
5925 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
5926 linenum_arith_t when determining if two adjacent line spans are
5927 close enough to merge.
5928 (diagnostic_show_locus): Use linenum_arith_t when iterating over
5929 lines within each line_span.
5931 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
5934 * lra-constraints.c(uses_hard_regs_p): Fix handling of
5935 paradoxical SUBREGS.
5937 2019-02-20 Li Jia He <helijia@linux.ibm.com>
5940 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
5941 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
5942 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
5945 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
5947 * config/gcn/gcn.c (print_operand): Fix typo.
5949 2019-02-19 Richard Biener <rguenther@suse.de>
5952 * toplev.c (do_compile): Initialize mpfr's exponent range
5953 based on available float modes.
5955 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
5957 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
5958 as long as the epilogue isn't completed.
5960 2019-02-18 Martin Sebor <msebor@redhat.com>
5962 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
5963 __has_cpp_attribute, and __has_include.
5965 2019-02-18 Martin Sebor <msebor@redhat.com>
5967 * doc/invoke.texi (-Wreturn-type): Correct and expand.
5969 2019-02-18 Martin Sebor <msebor@redhat.com>
5972 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
5974 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
5976 2019-02-18 Richard Biener <rguenther@suse.de>
5978 PR tree-optimization/89296
5979 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
5980 of no-warning flag to cases that might emit the bogus warning.
5982 2019-02-18 Jakub Jelinek <jakub@redhat.com>
5985 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
5987 * config/arm/vfp.md (*movdi_vfp): Likewise.
5988 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
5989 "q" constraint for operands[0].
5992 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
5993 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
5994 pattern in a temporary buffer.
5995 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
5996 than 64-operands[2].
5999 * config/s390/s390.c (s390_indirect_branch_attrvalue,
6000 s390_indirect_branch_settings): Define unconditionally.
6001 (s390_set_current_function): Likewise, but guard the whole body except
6002 the s390_indirect_branch_settings call with
6003 #if S390_USE_TARGET_ATTRIBUTE.
6004 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
6006 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
6007 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
6008 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
6009 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
6010 HOST_WIDE_INT_1U instead of 1ULL.
6011 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
6012 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
6013 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
6014 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
6016 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
6019 2019-02-18 Martin Jambor <mjambor@suse.cz>
6021 PR tree-optimization/89209
6022 * tree-sra.c (create_access_replacement): New optional parameter
6023 reg_tree. Use it as a type if non-NULL and access type is not of
6025 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
6026 to create_access_replacement.
6027 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
6028 Check lacc is non-NULL before attempting to re-create it on the RHS.
6030 2019-02-18 Martin Liska <mliska@suse.cz>
6033 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
6035 (symbol_table::free_edge): Recycle m_summary_id.
6036 * cgraph.h (get_summary_id): New.
6037 (symbol_table::release_symbol): Set m_summary_id to -1
6039 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
6040 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
6041 function_summary to fast_function_summary.
6042 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
6043 * ipa-pure-const.c (class funct_state_summary_t):
6044 Switch from function_summary to fast_function_summary.
6045 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
6046 (class ipa_ref_opt_summary_t): Switch from function_summary
6047 to fast_function_summary.
6048 * symbol-summary.h (class function_summary_base): New class
6049 that is created from base of former function_summary.
6050 (function_summary_base::unregister_hooks): New.
6051 (class function_summary): Inherit from function_summary_base.
6052 (class call_summary_base): New class
6053 that is created from base of former call_summary.
6054 (class call_summary): Inherit from call_summary_base.
6055 (struct is_same): New.
6056 (class fast_function_summary): New summary class.
6057 (class fast_call_summary): New summary class.
6058 * vec.h (vec_safe_grow_cleared): New function.
6060 2019-02-18 Martin Liska <mliska@suse.cz>
6062 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
6063 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
6064 * doc/tm.texi: Document new target hook.
6065 * doc/tm.texi.in: Likewise.
6066 * target.def: Add new target macro.
6067 * gcc.c (find_fortran_preinclude_file): Do not search multilib
6070 2019-02-17 Alan Modra <amodra@gmail.com>
6073 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
6074 output reg on add insn.
6075 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
6077 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
6080 * config/i386/sse.md (ssedoublemode): Remove V4HI.
6081 (PMULHRSW): Likewise.
6082 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
6084 (ssse3_pmulhrswv4hi3): New expander.
6086 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
6088 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
6089 MMX. Add isa attribute.
6091 2019-02-16 Jakub Jelinek <jakub@redhat.com>
6093 PR rtl-optimization/66152
6094 * builtins.h (c_readstr): Declare.
6095 * builtins.c (c_readstr): Remove forward declaration. Add
6096 null_terminated_p argument, if false, read all bytes from the
6097 string instead of stopping after '\0'.
6098 * expr.c (string_cst_read_str): New function.
6099 (store_expr): Use string_cst_read_str instead of
6100 builtin_strncpy_read_str. Try to store by pieces the whole
6101 exp_len first, and only if that fails, split it up into
6102 store by pieces followed by clear_storage. Formatting fix.
6104 * config/i386/i386.md (*movqi_internal): Remove static from
6105 buf variable. Use output_asm_insn (buf, operands); return "";
6106 instead of return buf;.
6107 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
6108 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
6109 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
6111 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6113 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
6114 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
6115 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
6116 (CC1_SPEC): Likewise.
6117 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
6119 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6121 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
6122 the base address on 64-bit strict-alignment platforms.
6124 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
6126 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
6128 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
6130 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
6132 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
6134 PR rtl-optimization/88308
6135 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
6136 on copied instruction.
6138 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6140 * final.c (insn_current_reference_address): Replace test on JUMP_P
6141 with test on jump_to_label_p.
6142 * config/visium/visium-passes.def: New file.
6143 * config/visium/t-visium (PASSES_EXTRA): Define.
6144 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
6145 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
6146 (TRAMPOLINE_ALIGNMENT): Define.
6147 * config/visium/visium.c (visium_option_override): Do not register
6148 the machine-specific reorg pass here.
6149 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
6151 (output_branch): Adjust threshold for long branch instruction.
6152 * config/visium/visium.md (cpu): Move around.
6153 (length): Adjust for the GR6.
6155 2019-02-15 Richard Biener <rguenther@suse.de>
6156 Jakub Jelinek <jakub@redhat.com>
6158 PR tree-optimization/89278
6159 * tree-loop-distribution.c: Include tree-eh.h.
6160 (generate_memset_builtin, generate_memcpy_builtin): Call
6161 rewrite_to_non_trapping_overflow on builtin->size before passing it
6162 to force_gimple_operand_gsi.
6164 2019-02-15 Jakub Jelinek <jakub@redhat.com>
6167 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
6169 * opth-gen.awk: Likewise.
6171 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
6173 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
6174 Enable MMX, SSE and SSE2 by default.
6175 * config/i386/i386.c (ix86_option_override_internal): Do not
6176 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
6178 2019-02-14 Jakub Jelinek <jakub@redhat.com>
6180 PR rtl-optimization/89354
6181 * combine.c (make_extraction): Punt if extraction_mode is narrower
6184 2019-02-14 Maya Rashish <coypu@sdf.org>
6186 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
6187 * config/netbsd-d.c: New file.
6188 * config/t-netbsd: Add netbsd-d.o
6190 2018-02-14 Steve Ellcey <sellcey@marvell.com>
6192 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
6193 affects_type_identity to true for aarch64_vector_pcs.
6194 (aarch64_comp_type_attributes): New function.
6195 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
6197 2019-02-14 Tamar Christina <tamar.christina@arm.com>
6200 * config/arm/iterators.md (ANY64): Add V4HF.
6202 2019-02-14 Martin Liska <mliska@suse.cz>
6204 PR rtl-optimization/89242
6205 * dce.c (delete_unmarked_insns): Call free_dominance_info we
6206 process a transformation.
6208 2019-02-14 Jakub Jelinek <jakub@redhat.com>
6210 PR tree-optimization/89314
6211 * fold-const.c (fold_binary_loc): Cast strlen argument to
6212 const char * before dereferencing it. Formatting fixes.
6215 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
6217 2019-02-13 Ian Lance Taylor <iant@golang.org>
6219 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
6220 and set current index for other optimizations.
6222 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
6224 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
6225 nonimmediate_operand as operand 2 predicate.
6226 (vec_set<VF2_512_256:mode>_0): Ditto.
6227 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
6228 (*vec_concatv2si): Remove alternative 2.
6229 (*vec_concatv4si_0): Use vm constraint for alternative 0.
6230 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
6231 (vec_concatv2di): Split alternatives 4,5,6 to ...
6232 (*vec_concatv2di_0) ... new pattern.
6234 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
6237 * config/arm/arm.c (ldm_stm_operation_p) Set
6238 addr_reg_in_reglist correctly for first register.
6239 (load_multiple_sequence): Remove dead base check.
6240 (gen_ldm_seq): Correctly set write_back for Thumb-1.
6242 2019-02-13 Tamar Christina <tamar.christina@arm.com>
6245 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
6246 Expose as @aarch64_pred_mov.
6247 * config/aarch64/aarch64.c (aarch64_classify_address):
6248 Use expand_insn which legitimizes operands.
6250 2019-02-13 Martin Liska <mliska@suse.cz>
6252 * builtins.h (expand_builtin_with_bounds): Remove declaration.
6253 * calls.c (struct arg_data): Remove special_slot, pointer_arg
6254 and pointer_offset fields.
6255 (initialize_argument_information): Remove usage of dead
6257 * cgraph.h (struct cgraph_thunk_info): Remove
6258 add_pointer_bounds_args.
6259 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
6261 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
6263 * config/i386/i386.c (ix86_function_arg_advance): Remove
6265 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
6266 (def_builtin): Remove usage of dead
6268 (ix86_add_new_builtins): Likewise.
6269 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6270 * ipa-icf.c (sem_function::equals_wpa): Likewise.
6271 (sem_function::init): Likewise.
6272 (sem_variable::merge): Likewise.
6273 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6274 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6275 * lto-cgraph.c (lto_output_node): Likewise.
6276 (lto_output_varpool_node): Likewise.
6277 (input_node): Likewise.
6278 (input_varpool_node): Likewise.
6279 * lto-streamer-out.c (lto_output): Likewise.
6280 * tree-inline.c (expand_call_inline): Remove usage of
6282 * tree-inline.h (struct copy_body_data): Likewise.
6283 * varpool.c (varpool_node::dump): Likewise.
6285 2019-02-13 Jakub Jelinek <jakub@redhat.com>
6288 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
6289 into pt->vars_contains_escaped_heap instead of setting
6290 pt->vars_contains_escaped_heap to it.
6293 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
6294 INTVAL (size), compare it to GET_MODE_MASK instead of
6295 1 << GET_MODE_BITSIZE.
6298 * config/i386/predicates.md (x86_64_immediate_operand): Allow
6299 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
6302 2019-02-13 Martin Liska <mliska@suse.cz>
6305 * cfgrtl.c (remove_barriers_from_footer): New function.
6306 (try_redirect_by_replacing_jump): Use it.
6307 (cfg_layout_redirect_edge_and_branch): Likewise.
6309 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
6311 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
6312 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
6313 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
6314 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
6315 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
6316 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
6318 * config/rs6000/rs6000.c (builtin_function_type)
6319 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
6320 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
6321 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
6322 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
6323 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
6325 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
6327 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
6328 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
6330 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
6333 * config/i386/i386.md (*movoi_internal_avx): Revert revision
6334 268678 and revision 268657.
6335 (*movti_internal): Likewise.
6337 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
6340 * config/s390/s390.c (s390_decompose_address): Update comment.
6341 (s390_check_qrst_address): Reject invalid address forms after
6344 2019-02-12 Martin Liska <mliska@suse.cz>
6347 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
6348 we need default values of funct_state for a function that
6351 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
6353 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
6354 the object to pick the size of stores on strict-alignment platforms.
6356 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
6357 (*movdi_insn_sp32): Likewise.
6358 (*movdi_insn_sp64): Likewise.
6360 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
6363 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
6364 types that needs constructiong.
6365 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
6367 2019-02-12 Richard Biener <rguenther@suse.de>
6369 PR tree-optimization/89253
6370 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
6373 2019-02-11 David Malcolm <dmalcolm@redhat.com>
6376 * input.c (selftest::test_line_offset_overflow): New selftest.
6377 (selftest::input_c_tests): Call it.
6379 2019-02-11 Martin Sebor <msebor@redhat.com>
6381 PR tree-optimization/88771
6382 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
6383 when -Wstringop-overflow is set.
6384 (builtin_memref::builtin_memref): Adjust excessive upper bound
6385 only when lower bound is not excessive.
6386 (maybe_diag_overlap): Detect and diagnose excessive bounds via
6387 -Wstringop-ovefflow.
6388 (maybe_diag_offset_bounds): Rename...
6389 (maybe_diag_access_bounds): ...to this.
6390 (check_bounds_or_overlap): Adjust for name change above.
6392 2019-02-11 Martin Sebor <msebor@redhat.com>
6395 * builtins.c (max_object_size): Move from here...
6396 * builtins.h (max_object_size): ...and here...
6397 * tree.c (max_object_size): ...to here...
6398 * tree.h (max_object_size): ...and here.
6400 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
6402 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
6403 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
6404 for correct semantics.
6406 2019-02-11 Alan Modra <amodra@gmail.com>
6408 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
6409 -mlongcall and -mpltseq.
6410 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
6411 (RS/6000 and PowerPC Options <-mpltseq>): Document.
6412 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
6413 * config/rs6000/sysv4.opt (mpltseq): New option.
6414 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
6415 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
6416 support is lacking. Don't allow -mpltseq with -mbss-plt.
6417 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
6418 -mpltseq given for ELFv1.
6419 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
6420 Only use UNSPEC_PLTSEQ for inline PLT calls.
6421 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
6422 use UNSPEC_PLTSEQ for inline PLT calls.
6423 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
6424 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
6425 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
6426 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
6427 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
6428 (pltseq_mtctr_<mode>): Likewise.
6430 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6432 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
6434 * configure: Regenerate.
6436 2019-02-11 Jakub Jelinek <jakub@redhat.com>
6439 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
6442 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
6444 * function.c (assign_parm_setup_block): Use the stored
6445 size, not the passed size, when allocating stack-space,
6446 also for a parameter with alignment larger than
6447 MAX_SUPPORTED_STACK_ALIGNMENT.
6449 2019-02-11 Martin Liska <mliska@suse.cz>
6452 * ipa-cp.c (build_toporder_info): Remove usage of a param.
6453 * ipa-inline.c (inline_small_functions): Likewise.
6454 * ipa-pure-const.c (propagate_pure_const): Likewise.
6455 (propagate_nothrow): Likewise.
6456 * ipa-reference.c (propagate): Likewise.
6457 * ipa-utils.c (struct searchc_env): Remove unused field.
6458 (searchc): Always search across AVAIL_INTERPOSABLE.
6459 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
6460 the only called IPA pure const can properly not propagate
6461 across interposable boundary.
6462 * ipa-utils.h (ipa_reduced_postorder): Remove param.
6464 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
6466 * config/nds32/nds32.md (call_internal, call_value_internal,
6467 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
6469 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
6471 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
6474 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
6476 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
6479 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
6481 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
6483 2019-02-10 Jakub Jelinek <jakub@redhat.com>
6485 PR tree-optimization/89268
6486 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
6487 if preds is non-NULL.
6489 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6492 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
6495 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
6497 * config/nds32/nds32.md (trap): New pattern.
6499 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
6501 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
6504 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
6506 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
6509 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6511 * ipa-visibility.c (localize_node): Also do not localize
6512 LDPR_PREVAILING_DEF_IRONLY_EXP.
6514 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6517 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
6518 instead of type_with_linkage.
6520 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6523 * params.def (uninlined-function-insns, uninlined-function-time,
6524 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
6525 bound so we don't get overflows.
6527 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
6529 * config/rs6000/rs6000-string.c (expand_compare_loop,
6530 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
6533 2019-02-09 Jakub Jelinek <jakub@redhat.com>
6536 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6537 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
6538 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
6540 2019-02-09 Alan Modra <amodra@gmail.com>
6543 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
6544 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
6547 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
6550 * lra-constraints.c (process_alt_operands): Don't increase reject
6551 for memory when offset memory is required.
6553 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
6555 * config/s390/vector.md: Implement vector copysign.
6557 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
6559 * expr.c (expand_constructor): Correct indentations.
6561 2019-02-08 Richard Biener <rguenther@suse.de>
6563 PR tree-optimization/89247
6564 * tree-if-conv.c: Include tree-cfgcleanup.h.
6565 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
6566 (tree_if_conversion): Pass through predicate vector.
6567 (pass_if_conversion::execute): Do CFG cleanup and SSA update
6568 inline, see if any if-converted loops we refrece in
6569 LOOP_VECTORIZED calls vanished and fixup.
6570 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
6572 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
6574 * config/s390/constraints.md (jdd): New constraint.
6576 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
6579 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
6580 upper 16 vector registers without TARGET_AVX512VL.
6581 (*movti_internal): Likewise.
6583 2019-02-08 Jakub Jelinek <jakub@redhat.com>
6585 PR rtl-optimization/89234
6586 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
6587 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
6588 (copy_reg_eh_region_note_backward): Likewise.
6590 2019-02-08 Richard Biener <rguenther@suse.de>
6593 * tree-data-ref.c (initialize_matrix_A): Fail if constant
6595 (analyze_subscript_affine_affine): Handle failure from
6596 initialize_matrix_A.
6598 2019-02-08 Jakub Jelinek <jakub@redhat.com>
6600 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
6603 2019-02-07 David Malcolm <dmalcolm@redhat.com>
6605 PR tree-optimization/86637
6606 PR tree-optimization/89235
6607 * tree-vect-loop.c (optimize_mask_stores): Add an
6608 auto_purge_vect_location sentinel to ensure that vect_location is
6611 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
6612 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
6613 to ensure that vect_location is purged on exit.
6614 (pass_slp_vectorize::execute): Likewise, replacing the manual
6616 * tree-vectorizer.h (class auto_purge_vect_location): New class.
6618 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6620 * config/aarch64/iterators.md (max_opp): New code_attr.
6621 (USMAX): New code iterator.
6622 * config/aarch64/predicates.md (aarch64_smin): New predicate.
6623 (aarch64_smax): Likewise.
6624 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
6625 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
6628 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
6631 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
6632 for TARGET_AVX512VL.
6633 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
6635 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
6637 * config/s390/s390-builtin-types.def: Add new types.
6638 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
6639 (s390_vec_xlw4): Make the memory operand into a const pointer.
6640 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
6642 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
6643 a new vector type with the alignment of the scalar memory operand.
6645 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
6646 Jakub Jelinek <jakub@redhat.com>
6649 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
6650 arm_count_ldrdstrd_insns): New declarations.
6651 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
6653 (valid_operands_ldrd_strd): New function.
6654 (arm_count_ldrdstrd_insns): New function.
6655 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
6656 sets instead of single DImode set and define new insns to match this.
6658 2019-02-07 Tamar Christina <tamar.christina@arm.com>
6660 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
6661 Make it a C initializer.
6663 2019-02-07 Tamar Christina <tamar.christina@arm.com>
6666 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
6668 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6670 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
6671 Use neon_dot<q> for type.
6672 (neon_<sup>dot_lane<vsi2qi>): Likewise.
6674 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6676 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
6677 Use neon_dot<q> for type.
6678 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
6679 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
6681 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
6683 PR rtl-optimization/89225
6684 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
6687 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
6689 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
6690 after restoring registers saved to allocate the frame on Windows.
6692 2019-02-06 Richard Biener <rguenther@suse.de>
6694 PR tree-optimization/89182
6695 * graphite.h (cached_scalar_evolution_in_region): Declare.
6696 * graphite.c (struct seir_cache_key): New.
6697 (struct sese_scev_hash): Likewise.
6698 (seir_cache): New global.
6699 (cached_scalar_evolution_in_region): New function.
6700 (graphite_transform_loops): Allocate and release seir_cache.
6701 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
6702 cached_scalar_evolution_in_region.
6703 * graphite-scop-detection.c (scop_detection::can_represent_loop):
6705 (scop_detection::graphite_can_represent_expr: Use
6706 cached_scalar_evolution_in_region.
6707 (scop_detection::stmt_simple_for_scop_p): Likewise.
6708 (find_params_in_bb): Likewise.
6709 (gather_bbs::before_dom_children): Likewise.
6710 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
6711 (add_loop_constraints): Likewise.
6713 2019-02-06 Jakub Jelinek <jakub@redhat.com>
6716 * fold-const-call.c (fold_const_vec_convert): Pass true as last
6717 operand to new_unary_operation only if both element types are integral
6718 and it isn't a widening conversion. Return NULL_TREE if
6719 new_unary_operation failed.
6721 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
6724 * config/s390/s390.md: Remove load and test FP splitter.
6726 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
6729 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
6730 expand_compare_loop, expand_block_compare_gpr,
6731 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
6732 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
6733 #include "profile-count.h" and "predict.h" for types and functions
6734 needed to work with REG_BR_PROB notes.
6736 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
6739 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
6740 for the long branch case.
6742 2019-02-05 Jakub Jelinek <jakub@redhat.com>
6745 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
6746 can throw, non-call exceptions are enabled and we can't delete
6747 dead exceptions or alter cfg. Set must_clean if
6748 delete_insn_and_edges returns true, don't set it blindly for calls.
6749 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
6751 PR rtl-optimization/89195
6752 * combine.c (make_extraction): For MEMs, don't extract bytes outside
6753 of the original MEM.
6755 2019-02-05 Martin Liska <mliska@suse.cz>
6757 PR gcov-profile/89000
6758 * gcov.c (function_summary): Remove argument.
6759 (file_summary): New function.
6760 (print_usage): Replace tabs with spaces.
6761 (generate_results): Use new function file_summary.
6763 2019-02-05 Jakub Jelinek <jakub@redhat.com>
6766 * optabs.c (prepare_cmp_insn): Pass x and y to
6767 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
6769 2019-02-05 Richard Biener <rguenther@suse.de>
6772 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
6773 (struct bitmap_element): Drop chain_prev so we properly recurse on
6774 the prev member, supporting tree views.
6775 (struct bitmap_head): GTY skip the obstack member.
6777 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
6780 * doc/extend.texi (Vector Extensions): Add an example of using vector
6781 types together with x86 intrinsics.
6783 2019-02-04 Alan Modra <amodra@gmail.com>
6785 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
6786 str[] size to 160, and comment.
6788 2019-02-04 Alan Modra <amodra@gmail.com>
6790 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
6791 (rs6000_pltseq_template): Guard output of TLS markers with
6793 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
6794 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
6795 to use inline PLT sequences.
6796 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
6797 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
6798 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
6800 2019-02-04 Martin Liska <mliska@suse.cz>
6803 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
6804 out when ipa_fn_summaries does not contain entry for callee.
6806 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
6808 * config/sparc/sparc.h: Remove superfluous blank lines.
6809 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
6810 (got_register_rtx): ...this.
6811 (sparc_got): Adjust to above renaming.
6812 (sparc_tls_got): Likewise.
6813 (sparc_delegitimize_address): Likewise.
6814 (sparc_output_mi_thunk): Likewise.
6815 (sparc_init_pic_reg): Likewise.
6816 (save_local_or_in_reg_p): Fix test on the GOT register.
6817 (USE_HIDDEN_LINKONCE): Move around.
6818 (get_pc_thunk_name): Likewise.
6819 (gen_load_pcrel_sym): Likewise.
6820 (load_got_register): Likewise.
6822 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
6824 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
6825 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
6827 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
6829 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
6832 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
6834 * config.gcc (with_nds32_lib, glibc):
6835 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
6836 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
6837 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
6839 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
6842 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
6843 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
6844 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
6845 (*rcpsf2_sse): Ditto.
6846 (*rsqrtsf2_sse): Ditto.
6847 (sse4_1_round<mode<2): Ditto.
6849 2019-02-03 Richard Biener <rguenther@suse.de>
6852 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
6855 2019-02-02 Jakub Jelinek <jakub@redhat.com>
6858 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6859 Punt with warning on aggregate return or argument types. Ignore
6860 type/mode checking for uniform arguments.
6862 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
6864 * combine.c (try_combine): Do not print "Can't combine" messages unless
6865 printing failed combination attempts.
6867 2019-02-01 Martin Jambor <mjambor@suse.cz>
6870 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
6871 segment and global segment variables before making them static.
6873 2019-02-01 Martin Jambor <mjambor@suse.cz>
6875 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
6876 missed optimization dump with dump_enabled_p.
6878 2019-02-01 Richard Biener <rguenther@suse.de>
6881 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
6882 the instantiate cache.
6883 (instantiate_scev_binary): Elide second operand procesing
6884 if equal to the first.
6885 * tree-chrec.c (chrec_contains_symbols): Add visited set.
6886 (chrec_contains_undetermined): Likewise.
6887 (tree_contains_chrecs): Likewise.
6889 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
6891 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
6893 2019-02-01 Jakub Jelinek <jakub@redhat.com>
6895 PR tree-optimization/89143
6896 * wide-int-range.h (wide_int_range_absu): Declare.
6897 * wide-int-range.cc (wide_int_range_absu): New function.
6898 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
6900 PR tree-optimization/88107
6901 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
6902 instead of assertion that eh_region_outermost is non-NULL, if it
6903 is NULL, set *ALL to true and return NULL.
6904 (move_sese_region_to_fn): Adjust caller, if all is set, call
6905 duplicate_eh_regions with NULL region.
6907 2019-02-01 Richard Biener <rguenth@suse.de>
6909 PR rtl-optimization/88593
6910 * mode-switching.c (optimize_mode_switching): Free dominators before
6911 calling cleanup_cfg.
6913 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
6915 PR tree-optimization/88932
6916 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
6918 2019-01-31 Jakub Jelinek <jakub@redhat.com>
6921 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
6922 bogus clang warning.
6924 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
6927 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
6928 alternative to avoid partial SSE register stall for TARGET_AVX.
6929 (truncdfsf2): Ditto.
6930 (sse4_1_round<mode>2): Ditto.
6932 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
6934 PR tree-optimization/89008
6935 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
6936 process anything of the form X * 0.
6938 2019-01-31 Richard Biener <rguenther@suse.de>
6940 PR tree-optimization/89135
6941 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
6942 with abnormal preds.
6944 2019-01-31 Jakub Jelinek <jakub@redhat.com>
6947 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
6948 always_inline callees into no_sanitize_address callers.
6950 2019-01-31 Richard Biener <rguenther@suse.de>
6952 PR rtl-optimization/89115
6953 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
6955 2019-01-30 Martin Sebor <msebor@redhat.com>
6958 * doc/extend.texi (cast to a union): Correct and expand.
6960 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
6962 PR rtl-optimization/87246
6963 * lra-constraints.c (simplify_operand_subreg): Reload memory
6964 in subreg if the address became invalid.
6966 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
6969 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
6970 Disable for little-endian.
6972 2019-01-30 Richard Biener <rguenther@suse.de>
6974 PR rtl-optimization/89115
6975 * opts.c (default_options_optimization): Reduce
6976 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
6977 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
6980 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
6982 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
6983 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
6984 type of vector element when vec_extract is implemented by direct
6987 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
6989 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
6991 2019-01-30 Richard Biener <rguenther@suse.de>
6993 PR tree-optimization/89111
6994 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
6995 canonicalization to appropriately sized access types.
6997 2019-01-30 Jakub Jelinek <jakub@redhat.com>
7000 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
7001 for arguments to functions that are TU-local and shouldn't be
7002 referenced by assembly.
7004 2019-01-30 Ulrich Drepper <drepper@redhat.com>
7006 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
7009 2019-01-29 Martin Sebor <msebor@redhat.com>
7012 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
7014 2019-01-29 Jakub Jelinek <jakub@redhat.com>
7018 * omp-simd-clone.c (simd_clone_clauses_extract)
7019 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
7020 OMP_CLAUSE_ALIGNED_ALIGNMENT.
7022 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
7024 * config.gcc: Force .init_array for ARC.
7026 2019-01-29 Richard Biener <rguenther@suse.de>
7029 * dwarf2out.c (collect_skeleton_dies): New helper.
7030 (copy_decls_for_unworthy_types): Call it.
7031 (build_abbrev_table): Assert we do not try to replace
7032 DW_AT_signature refs with local refs.
7034 2019-01-28 Jakub Jelinek <jakub@redhat.com>
7037 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
7038 for lastprivate/linear IV, push gimplify context around gimplify_assign
7039 and, if it needed any temporaries, pop it into a gimple bind around the
7042 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
7044 * common.opt (-Wattribute-alias): Remove "no-" from name.
7045 Make -Wattribute-alias command line option and
7046 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
7048 2019-01-28 Jakub Jelinek <jakub@redhat.com>
7051 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
7052 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
7054 (bmi2): Add missing @opindex.
7055 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
7056 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
7057 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
7058 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
7059 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
7060 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
7061 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
7062 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
7063 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
7064 xsavec, xsaveopt and xsaves options.
7066 2019-01-28 Richard Biener <rguenther@suse.de>
7069 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
7072 2019-01-28 Richard Biener <rguenther@suse.de>
7074 PR tree-optimization/88739
7075 * tree-cfg.c (verify_types_in_gimple_reference): Verify
7076 BIT_FIELD_REFs only are applied to mode-precision operands
7077 when they are integral.
7078 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
7079 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
7080 BIT_FIELD_REFs of non-mode-precision integral operands.
7082 2019-01-27 Jakub Jelinek <jakub@redhat.com>
7085 * config/i386/sse.md
7086 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
7087 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
7088 first constants in pairs are multiples of 2. Formatting fixes.
7089 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
7090 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
7091 first constants in each quadruple are multiples of 4. Formatting fixes.
7093 2019-01-26 Martin Jambor <mjambor@suse.cz>
7096 * tree-inline.c: Include tree-cfgcleanup.h.
7097 (delete_unreachable_blocks_update_callgraph): Move...
7098 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
7099 ...here, make externally visible, make second argument bool, adjust
7101 * tree-cfgcleanup.c: Include cgraph.h.
7102 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
7104 * ipa-prop.c: Include tree-cfgcleanup.h.
7105 (ipcp_transform_function): Call
7106 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
7108 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
7110 PR rtl-optimization/88846
7111 * ira.c (process_set_for_memref_referenced_p): New.
7112 (memref_referenced_p): Add new param. Use
7113 process_set_for_memref_referenced_p. Add new switch cases.
7114 (memref_used_between_p): Pass new arg to memref_referenced_p.
7116 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
7119 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
7120 argument ABI_BREAK. Set to true if the calculated alignment has
7121 changed in gcc-9. Check bit-fields for their base type alignment.
7122 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
7123 (aarch64_function_arg_boundary): Likewise.
7124 (aarch64_gimplify_va_arg_expr): Likewise.
7126 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
7129 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
7130 instead of accessing TREE_INT_CST_ELT directly.
7132 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
7134 * doc/sourcebuild.texi (Environment attributes): Add fenv and
7135 fenv_exceptions description.
7137 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
7139 PR rtl-optimization/87763
7140 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
7141 Allow SUBREG when matching CC_NZmode compare.
7143 2019-01-25 Richard Biener <rguenther@suse.de>
7145 PR tree-optimization/89049
7146 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
7147 Look at the pattern stmt to determine if the stmt is vectorized.
7149 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
7151 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
7152 (pred_mov<mode>): Handle all-register forms using both a new
7153 alternative and a split.
7155 2019-01-25 Richard Biener <rguenther@suse.de>
7157 PR tree-optimization/86865
7158 * graphite-scop-detection.c (scop_detection::can_represent_loop):
7159 Reject non-do-while loops.
7161 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
7163 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
7164 * config/rs6000/constraints.md (Q constraint): Use REG_P.
7165 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
7166 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
7167 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
7168 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7169 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
7170 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
7171 vlogical_operand, gpc_reg_operand, int_reg_operand,
7172 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
7173 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
7174 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
7175 (save_world_operation, restore_world_operation, lmw_operation,
7176 stmw_operation): Use MEM_P and REG_P.
7177 (tie_operand): Use MEM_P.
7178 (vrsave_operation, crsave_operation): Use REG_P.
7179 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
7180 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
7181 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
7182 (call_operand): Use HARD_REGISTER_P.
7183 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
7185 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
7186 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
7187 quad_aligned_load_p, replace_swapped_aligned_store,
7188 recombine_lvx_pattern, replace_swapped_aligned_load,
7189 recombine_stvx_pattern): Use MEM_P.
7190 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
7191 Use MEM_P and SYMBOL_REF_P.
7192 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
7193 (insn_is_swappable_p): Use REG_P and MEM_P.
7194 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
7195 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
7197 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
7199 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
7201 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
7202 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
7203 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
7204 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
7206 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
7207 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
7208 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
7209 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
7210 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
7211 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
7212 rs6000_split_logical_di): Use CONST_INT_P.
7213 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
7214 REG_P and SYMBOL_REF_P.
7215 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
7216 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
7217 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
7218 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
7219 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
7220 (small_data_operand, print_operand_address): Use CONST_INT_P and
7222 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
7223 (rs6000_init_hard_regno_mode_ok, direct_move_p):
7224 Use HARD_REGISTER_NUM_P.
7225 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
7226 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
7227 SUBREG_P and SYMBOL_REF_P.
7228 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
7229 and HARD_REGISTER_NUM_P.
7230 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
7232 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
7233 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
7235 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
7236 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
7237 find_addr_reg): Use REG_P.
7238 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
7239 (rs6000_emit_le_vsx_move): Use SUBREG_P.
7240 (offsettable_ok_by_alignment, constant_pool_expr_p,
7241 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
7242 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
7243 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
7244 rs6000_assemble_integer, create_TOC_reference,
7245 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
7246 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
7247 (rs6000_split_vec_extract_var): Use reg_or_subregno.
7248 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
7249 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
7250 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7251 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7252 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
7253 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
7254 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
7255 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
7256 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
7257 and cbranch<mode>4): Use CONST_INT_P.
7258 (multiple define_splits): Use REG_P and SUBREG_P.
7259 (define_expands call, call_value): Use MEM_P.
7260 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
7261 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
7262 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
7263 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
7264 and HARD_REGISTER_NUM_P.
7265 (multiple define_splits): Use HARD_REGISTER_NUM_P.
7267 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
7269 PR rtl-optimization/88948
7270 * rtl.h (prepare_copy_insn): New prototype.
7271 * gcse.c (prepare_copy_insn): New function, split out from
7272 process_insert_insn.
7273 (process_insert_insn): Use prepare_copy_insn.
7274 * store-motion.c (replace_store_insn): Use prepare_copy_insn
7275 instead of gen_move_insn.
7277 2019-01-24 Jakub Jelinek <jakub@redhat.com>
7280 * config/i386/i386.c (ix86_pic_register_p): Return true for
7283 PR tree-optimization/88964
7284 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
7285 punt if HONOR_SNANS (chrec).
7288 * tree-nested.c (convert_nonlocal_reference_stmt,
7289 convert_local_reference_stmt, convert_tramp_reference_stmt,
7290 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
7291 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
7294 PR tree-optimization/89027
7295 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
7296 for "omp simd array" variables.
7298 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
7301 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
7302 force the alignment of m_val.
7304 2019-01-24 Richard Biener <rguenther@suse.de>
7307 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
7308 When in "legacy" debug mode make sure to reset self-origins.
7310 2019-01-24 Martin Liska <mliska@suse.cz>
7312 PR gcov-profile/88994
7313 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
7314 result will be always smaller or equal to the original.
7315 * gcov.c (mangle_name): Fix else branch where we should
7316 also copy to PTR and shift the pointer.
7318 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
7320 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
7321 * vr-values.c (find_case_label_ranges): Fix a comment typo.
7323 2019-01-23 Bin Cheng <bin.cheng@arm.com>
7324 Steve Ellcey <sellcey@marvell.com>
7327 * recog.c (address_operand): Return false on wrong mode for address.
7328 (constrain_operands): Check for mode with 'p' constraint.
7330 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
7333 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
7334 Disparage MMX alternative.
7335 (sse2_cvtpd2pi): Ditto.
7336 (sse2_cvttpd2pi): Ditto.
7338 2019-01-23 David Malcolm <dmalcolm@redhat.com>
7341 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
7342 use-after-free of the result of
7343 aarch64_get_extension_string_for_isa_flags.
7345 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7348 * doc/extend.texi: Document break and continue behavior in
7349 statement expressions.
7351 2019-01-23 Richard Biener <rguenther@suse.de>
7353 PR tree-optimization/89008
7354 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
7355 not leave another stray operand.
7357 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7359 * BASE-VER: Bump to 9.0.1.
7361 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
7363 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
7364 thunk that returns by reference, use the type of the return object
7365 of the thunk instead of that of the alias to build the dereference.
7367 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
7369 * config/arc/atomic.md: Add operand to DMB instruction.
7371 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7373 PR tree-optimization/88964
7374 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
7375 build_zero_cst instead of build_int_cst. Return false for loop
7376 invariants which honor signed zeros.
7378 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
7380 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
7382 2019-01-22 Jakub Jelinek <jakub@redhat.com>
7385 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
7386 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
7387 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
7390 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
7391 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
7394 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
7395 Disable for little endian.
7397 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
7400 * config/arm/arm.c (arm_needs_double_word_align): Check
7401 DECL_BIT_FIELD_TYPE.
7403 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
7404 H.J. Lu <hongjiu.lu@intel.com>
7407 * config/i386/i386-builtin.def: Add mask2 to all builtin
7408 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
7410 * config/i386/i386.c (BDESC): Add mask2 to the definition.
7411 (BDESC_FIRST): Likewise.
7412 (define_builtin): Add an argument for mask2. Updated to handle
7413 both ix86_isa_flags and ix86_isa_flags2.
7414 (define_builtin_const): Likewise.
7415 (define_builtin_pure): Likewise.
7416 (define_builtin2): Deleted.
7417 (define_builtin_const2): Likewise.
7418 (builtin_description): Add a member, mask2.
7419 (bdesc_*): Add mask2 to builtin initializations.
7420 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
7421 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
7423 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
7425 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
7428 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
7431 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
7434 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
7435 alignment is dominated by a bitfield with 64-bit aligned base type.
7436 (arm_function_arg): Emit a warning if the alignment has changed since
7437 earlier GCC releases.
7438 (arm_function_arg_boundary): Likewise.
7439 (arm_setup_incoming_varargs): Likewise.
7441 2019-01-22 Richard Biener <rguenther@suse.de>
7443 PR tree-optimization/88862
7444 * graphite-scop-detection.c
7445 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
7447 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
7449 * doc/extend.tex (AMD GCN Function Attributes): New section.
7450 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
7451 * doc/invoke.texi (AMD GCN Options): New section.
7452 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
7454 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
7456 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
7457 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
7459 2019-01-22 Jakub Jelinek <jakub@redhat.com>
7461 PR tree-optimization/88044
7462 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
7463 is false in the first iteration, but !every_iteration, return false
7464 instead of true with niter->niter zero.
7466 PR rtl-optimization/88904
7467 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
7468 any nonequal registers before processing BB_END (b).
7471 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
7473 (expand_binop_directly, expand_doubleword_clz,
7474 expand_doubleword_popcount, expand_ctz, expand_ffs,
7475 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
7477 PR rtl-optimization/49429
7479 PR rtl-optimization/86334
7481 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
7482 addressable from here...
7483 (emit_block_op_via_libcall): ... to here.
7485 2019-01-22 Richard Biener <rguenther@suse.de>
7487 * tree-vect-loop.c (vect_analyze_loop_operations): Use
7488 auto_vec for cost vector to fix memleak.
7489 (vectorize_fold_left_reduction): Properly gather SLP defs.
7490 (vectorizable_comparison): Do not swap operands to properly
7493 2019-01-22 Alan Modra <amodra@gmail.com>
7496 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
7497 stays a reg. Allow a const_int.
7498 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
7499 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
7500 (IS_NOMARK_TLSGETADDR): Define.
7501 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
7502 (rs6000_output_tlsargs): New function.
7503 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
7504 __tls_get_addr call takes an arg.
7505 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
7506 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
7508 (call_value_nonlocal_sysv): ..or here, delete split.
7509 (tls_gdld_nomark): Delete.
7510 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
7511 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
7512 (call_value_nonlocal_sysv): Likewise.
7513 (call_value_nonlocal_sysv_secure): Likewise.
7514 (call_value_nonlocal_aix): Likewise.
7515 (call_value_indirect_aix): Likewise.
7516 (call_value_indirect_elfv2): Likewise.
7517 (call_value_local32, call_value_local64): Disable for no-mark tls.
7518 (call_value_local_aix): Likewise.
7520 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
7523 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
7524 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
7526 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
7528 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
7529 string contents as hash_map keys.
7531 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7534 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
7535 for rvalue context. Handle rvalues correctly. Use min_align_of_type
7536 instead of TYPE_ALIGN.
7537 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
7538 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
7539 pointer from TYPE_STUB_DECL.
7541 2019-01-21 Richard Biener <rguenther@suse.de>
7543 PR tree-optimization/88934
7544 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
7545 at the possibly non-constant operand.
7546 (vect_get_constant_vectors): Adjust.
7548 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7551 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
7552 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
7553 instead of _X86INTRIN_H_INCLUDED.
7554 * onfig/i386/clwbintrin.h: Likewise.
7555 * config/i386/pkuintrin.h: Likewise.
7556 * config/i386/prfchwintrin.h: Likewise.
7557 * config/i386/rdseedintrin.h: Likewise.
7558 * config/i386/wbnoinvdintrin.h: Likewise.
7559 * config/i386/xsavecintrin.h: Likewise.
7560 * config/i386/xsavesintrin.h: Likewise.
7561 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
7562 * config/i386/xsaveintrin.h: Likewise.
7563 * config/i386/xsaveoptintrin.h: Likewise.
7564 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
7565 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
7566 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
7567 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
7568 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
7569 * config/i386/immintrin.h: Here.
7571 2019-01-20 Martin Jambor <mjambor@suse.cz>
7574 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
7575 with aa_walk_budget.
7576 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
7577 aa_walk_budget_p parameter.
7578 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
7579 walk. Updated all callers.
7580 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
7581 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
7583 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
7584 parameter info. Extract info from fbi. Pass fbi to recursive calls
7585 and to unmodified_parm.
7586 (phi_result_unknown_predicate): New parameter fbi, removed parameter
7587 info, updated call to will_be_nonconstant_expr_predicate.
7588 (param_change_prob): New parameter fbi, limit AA walking.
7589 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
7590 calls to various above functions.
7591 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
7592 parameter. Use it to limit AA walking.
7593 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
7595 (detect_type_change): New parameter fbi, pass it on to
7596 detect_type_change_from_memory_writes.
7597 (detect_type_change_ssa): Likewise.
7598 (aa_overwalked): Removed.
7599 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
7600 accordingly, adjust to the neew AA limiting scheme.
7601 (parm_ref_data_preserved_p): Likewise.
7602 (ipa_compute_jump_functions_for_edge): Adjust call to
7604 (ipa_analyze_call_uses): Likewise.
7605 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
7606 (ipa_analyze_node): Initialize aa_walk_budget.
7607 (ipcp_transform_function): Likewise.
7608 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
7609 to get_dynamic_type.
7611 2019-01-19 Jakub Jelinek <jakub@redhat.com>
7613 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
7614 outside of #if CHECKING_P code.
7616 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
7618 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
7619 New function, split out from...
7620 (loop_versioning::analyze_stride): ...here.
7621 (loop_versioning::find_per_loop_multiplication): Use gassign.
7622 (loop_versioning::analyze_term_using_scevs): Return a success code.
7623 (loop_versioning::analyze_arbitrary_term): New function.
7624 (loop_versioning::analyze_address_fragment): Use
7625 analyze_arbitrary_term if all else fails.
7627 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
7630 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
7633 2019-01-18 Richard Biener <rguenther@suse.de>
7635 PR tree-optimization/88903
7636 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
7637 scalar stmts a SLP shift amount is composed of when detecting
7640 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
7643 * config/arm/arm-cpus.in (mp): New feature.
7645 (fgroup ARMv7ve): Add mp and sec features.
7646 (arch armv7-a): Add options to allow mp and sec extensions.
7647 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
7648 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
7649 extenstions to the base architecture.
7650 (cpu cortex-a8): Add sec extension to the base architecture.
7651 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
7652 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
7653 variants down to the base v7-a varaint.
7654 * config/arm/t-multilib (v7_a_arch_variants): New variable.
7655 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
7656 of permitted extensions for -march=armv7-a and for
7657 -mcpu=generic-armv7-a.
7659 2019-01-18 Martin Liska <mliska@suse.cz>
7661 * params.def: Fix comment.
7662 * tree-profile.c (gimple_init_gcov_profiler): Bump function
7664 (gimple_gen_ic_func_profiler): Likewise.
7666 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7668 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
7669 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
7670 and put in error checks for stack protector guard options.
7671 (aarch64_stack_protect_guard): New.
7672 (TARGET_STACK_PROTECT_GUARD): Define.
7673 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
7674 (reg_stack_protect_address<mode>): New.
7675 (stack_protect_set): Adjust for SSP_GLOBAL.
7676 (stack_protect_test): Likewise.
7677 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
7678 (-mstack-protector-guard): Likewise.
7679 (-mstack-protector-guard-offset): Likewise.
7681 2019-01-18 Jakub Jelinek <jakub@redhat.com>
7683 PR tree-optimization/86214
7684 * tree-inline.h (struct copy_body_data): Add
7685 add_clobbers_to_eh_landing_pads member.
7686 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
7687 (copy_edges_for_bb): Call it if EH edge destination is <
7688 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
7689 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
7690 if flag_stack_reuse != SR_NONE and clear it afterwards.
7692 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
7695 * doc/install.texi (with-multilib-list): Document for aarch64.
7697 2019-01-18 Jakub Jelinek <jakub@redhat.com>
7700 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
7701 (("..."))) with ("...").
7703 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
7705 * doc/extend.texi (Built-in Functions for Memory Model Aware
7706 Atomic Operations): Document atomic fetch and nand.
7708 2019-01-18 Martin Liska <mliska@suse.cz>
7709 Richard Biener <rguenther@suse.de>
7712 * cgraph.h (create_version_clone_with_body): Add new argument
7714 * cgraphclones.c (cgraph_node::create_version_clone): Add
7715 DECL_ATTRIBUTES to a newly created decl. And call
7716 valid_attribute_p so that proper cl_target_optimization_node
7717 is set for the newly created declaration.
7718 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
7720 (expand_target_clones): Do not call valid_attribute_p, it must
7722 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
7725 2019-01-17 Jakub Jelinek <jakub@redhat.com>
7728 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
7729 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
7730 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
7732 2019-01-17 Martin Sebor <msebor@redhat.com>
7735 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
7736 Handle anti-ranges the same as no range at all.
7738 2018-01-17 Steve Ellcey <sellcey@cavium.com>
7740 * config/aarch64/aarch64.c (cgraph.h): New include.
7741 (intl.h): New include.
7742 (supported_simd_type): New function.
7743 (currently_supported_simd_type): Ditto.
7744 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
7745 (aarch64_simd_clone_adjust): Ditto.
7746 (aarch64_simd_clone_usable): Ditto.
7747 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
7748 (TARGET_SIMD_CLONE_ADJUST): Ditto.
7749 (TARGET_SIMD_CLONE_USABLE): Ditto.
7750 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
7751 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
7754 2019-01-17 Martin Sebor <msebor@redhat.com>
7756 PR tree-optimization/88800
7757 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
7758 NO_WARNING bit here. Avoid folding out-of-bounds calls.
7759 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
7760 redundant argument. Add new argument and issue diagnostics under
7761 its control. Detect out-of-bounds access even with warnings
7763 (check_bounds_or_overlap): Change return type. Add argument.
7764 (wrestrict_dom_walker::check_call): Adjust.
7765 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
7766 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
7767 check_bounds_or_overlap's return value.
7768 (handle_builtin_stxncpy): Same.
7769 (handle_builtin_strcat): Same.
7771 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7772 Kwok Cheung Yeung <kcy@codesourcery.com>
7773 Julian Brown <julian@codesourcery.com>
7774 Tom de Vries <tom@codesourcery.com>
7776 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
7778 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7780 * doc/sourcebuild.texi: Document dg-require-effective-target
7781 llvm_binutils and offload_gcn.
7783 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7784 Kwok Cheung Yeung <kcy@codesourcery.com>
7785 Julian Brown <julian@codesourcery.com>
7786 Tom de Vries <tom@codesourcery.com>
7788 * doc/sourcebuild.texi: Document dg-required-effective-target
7791 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7792 Kwok Cheung Yeung <kcy@codesourcery.com>
7793 Julian Brown <julian@codesourcery.com>
7794 Tom de Vries <tom@codesourcery.com>
7795 Jan Hubicka <hubicka@ucw.cz>
7796 Martin Jambor <mjambor@suse.cz>
7798 * config.gcc: Add amdgcn*-*-amdhsa configuration.
7799 * configure.ac: Check for dlopen.
7800 * configure: Regenerate.
7802 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7803 Kwok Cheung Yeung <kcy@codesourcery.com>
7804 Julian Brown <julian@codesourcery.com>
7805 Tom de Vries <tom@codesourcery.com>
7806 Jan Hubicka <hubicka@ucw.cz>
7807 Martin Jambor <mjambor@suse.cz>
7809 * common/config/gcn/gcn-common.c: New file.
7810 * config/gcn/driver-gcn.c: New file.
7811 * config/gcn/gcn-builtins.def: New file.
7812 * config/gcn/gcn-hsa.h: New file.
7813 * config/gcn/gcn-modes.def: New file.
7814 * config/gcn/gcn-opts.h: New file.
7815 * config/gcn/gcn-passes.def: New file.
7816 * config/gcn/gcn-protos.h: New file.
7817 * config/gcn/gcn-run.c: New file.
7818 * config/gcn/gcn-tree.c: New file.
7819 * config/gcn/gcn.c: New file.
7820 * config/gcn/gcn.h: New file.
7821 * config/gcn/gcn.opt: New file.
7822 * config/gcn/t-gcn-hsa: New file.
7824 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7825 Kwok Cheung Yeung <kcy@codesourcery.com>
7826 Julian Brown <julian@codesourcery.com>
7827 Tom de Vries <tom@codesourcery.com>
7828 Jan Hubicka <hubicka@ucw.cz>
7829 Martin Jambor <mjambor@suse.cz>
7831 * config/gcn/constraints.md: New file.
7832 * config/gcn/gcn-valu.md: New file.
7833 * config/gcn/gcn.md: New file.
7834 * config/gcn/predicates.md: New file.
7836 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
7838 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
7839 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
7840 (stmt_uses_0_or_null_in_undefined_way): Likewise.
7841 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
7843 2019-01-17 Tamar Christina <tamar.christina@arm.com>
7846 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
7847 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
7848 it and document registers.
7850 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7852 * config/aarch64/aarch64.c (ares_tunings): Define.
7853 * config/aarch64/aarch64-cores.def (ares): Use the above.
7855 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7859 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
7861 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
7862 (_mm512_fixupimm_round_pd): Update parameters and builtin.
7863 (_mm512_maskz_fixupimm_round_pd): Ditto.
7864 (_mm512_fixupimm_round_ps): Ditto.
7865 (_mm512_maskz_fixupimm_round_ps): Ditto.
7866 (_mm_fixupimm_round_sd): Ditto.
7867 (_mm_maskz_fixupimm_round_sd): Ditto.
7868 (_mm_fixupimm_round_ss): Ditto.
7869 (_mm_maskz_fixupimm_round_ss): Ditto.
7870 (_mm512_fixupimm_pd): Ditto.
7871 (_mm512_maskz_fixupimm_pd): Ditto.
7872 (_mm512_fixupimm_ps): Ditto.
7873 (_mm512_maskz_fixupimm_ps): Ditto.
7874 (_mm_fixupimm_sd): Ditto.
7875 (_mm_maskz_fixupimm_sd): Ditto.
7876 (_mm_fixupimm_ss): Ditto.
7877 (_mm_maskz_fixupimm_ss): Ditto.
7878 (_mm512_mask_fixupimm_round_pd): Update builtin.
7879 (_mm512_mask_fixupimm_round_ps): Ditto.
7880 (_mm_mask_fixupimm_round_sd): Ditto.
7881 (_mm_mask_fixupimm_round_ss): Ditto.
7882 (_mm512_mask_fixupimm_pd): Ditto.
7883 (_mm512_mask_fixupimm_ps): Ditto.
7884 (_mm_mask_fixupimm_sd): Ditto.
7885 (_mm_mask_fixupimm_ss): Ditto.
7886 * config/i386/avx512vlintrin.h:
7887 (_mm256_fixupimm_pd): Update parameters and builtin.
7888 (_mm256_maskz_fixupimm_pd): Ditto.
7889 (_mm256_fixupimm_ps): Ditto.
7890 (_mm256_maskz_fixupimm_ps): Ditto.
7891 (_mm_fixupimm_pd): Ditto.
7892 (_mm_maskz_fixupimm_pd): Ditto.
7893 (_mm_fixupimm_ps): Ditto.
7894 (_mm_maskz_fixupimm_ps): Ditto.
7895 (_mm256_mask_fixupimm_pd): Update builtin.
7896 (_mm256_mask_fixupimm_ps): Ditto.
7897 (_mm_mask_fixupimm_pd): Ditto.
7898 (_mm_mask_fixupimm_ps): Ditto.
7899 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
7900 * config/i386/i386-builtin.def: Update builtin definitions.
7901 * config/i386/i386.c: Handle new builtin types and remove useless ones.
7902 * config/i386/sse.md: Update VFIXUPIMM* patterns.
7903 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7904 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7905 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
7906 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7907 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7908 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
7909 * config/i386/subst.md:
7910 (round_saeonly_sd_mask_operand4): Add new subst_attr.
7911 (round_saeonly_sd_mask_op4): Ditto.
7912 (round_saeonly_expand_operand5): Ditto.
7913 (round_saeonly_expand): Update.
7915 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7919 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
7921 * config/i386/sse.md: Combine VFIXUPIMM* patterns
7922 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7923 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7924 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
7925 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7926 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7927 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
7929 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7933 2018-12-15 Jakub Jelinek <jakub@redhat.com>
7936 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
7937 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
7938 instead of UNSPEC_FIXUPIMM.
7940 2019-01-17 Richard Biener <rguenther@suse.de>
7943 * dwarf2out.c (want_pubnames): Never generate pubnames sections
7944 and friends for the LTO part of debug info.
7946 2019-01-17 Jakub Jelinek <jakub@redhat.com>
7948 PR tree-optimization/86214
7949 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
7952 PR rtl-optimization/88870
7953 * dce.c (deletable_insn_p): Never delete const/pure calls that can
7954 throw if we can't alter the cfg or delete dead exceptions.
7955 (mark_insn): Don't call find_call_stack_args for such calls.
7957 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
7959 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
7960 prototypes for vec_st.
7961 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
7962 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
7963 mainly on signed/unsigned long long and double.
7965 2019-01-16 David Malcolm <dmalcolm@redhat.com>
7968 * combine.c (delete_noop_moves): Convert to "bool" return,
7969 returning true if any edges are eliminated.
7970 (combine_instructions): Also return true if delete_noop_moves
7973 2019-01-16 Tamar Christina <tamar.christina@arm.com>
7975 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
7976 correct max nunits for endian swap.
7977 (aarch64_expand_fcmla_builtin): Correct subreg code.
7978 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
7979 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
7982 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
7984 * config/alpha/alpha.c (alpha_gimplify_va_arg):
7985 Handle split indirect COMPLEX_TYPE arguments.
7987 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
7990 * config/aarch64/aarch64-modes.def: Add comment about how the carry
7991 bit is set by add and compare.
7992 (CC_ADC): New CC_MODE.
7993 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
7994 to cache the code and mode of X. Adjust the shape of a CC_Cmode
7995 comparison. Add detection for CC_ADCmode.
7996 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
7998 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
7999 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
8000 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
8001 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
8002 to eliminate the need for zero-extending the operands.
8003 (add<mode>3_compareC_imm): Delete. Merge into ...
8004 (add<mode>3_compareC): ... this. Restructure the comparison to
8005 eliminate the need for zero-extending the operands.
8006 (add<mode>3_carryin): Use LTU for the overflow detection.
8007 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
8008 Reexpress comparison for overflow.
8009 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
8010 (add<mode>3_carryinC): Likewise.
8011 (add<mode>3_carryinV): Use LTU for carry between partials.
8012 * config/aarch64/predicates.md (aarch64_carry_operation): Update
8013 handling of CC_Cmode and add CC_ADCmode.
8014 (aarch64_borrow_operation): Likewise.
8016 2019-01-16 Tamar Christina <tamar.christina@arm.com>
8018 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
8019 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
8020 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
8021 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
8023 2019-01-16 Martin Liska <mliska@suse.cz>
8025 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
8027 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
8029 * gcc.c (add_sysrooted_hdrs_prefix): New function.
8030 (path_prefix_reset): Move up in the source file.
8031 (find_fortran_preinclude_file): Make complex search for the
8032 fortran header files.
8034 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
8036 * godump.c (go_output_typedef): When outputting a typedef, refer
8037 to the underlying type by its name and not its structure.
8039 2019-01-15 David Malcolm <dmalcolm@redhat.com>
8042 * tree.c (build_function_type): Assert that arg_types is not
8045 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
8048 * doc/extend.texi: Document that listing the stack pointer in the
8049 clobber list of an asm is a deprecated feature.
8050 * common.opt (Wdeprecated): Moved from c-family/c.opt.
8051 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
8052 warning instead of an error for clobbers of the stack pointer.
8053 Add a note explaining why.
8055 2019-01-15 Richard Biener <rguenther@suse.de>
8058 * dwarf2out.c (gen_member_die): Do not generate inheritance
8061 2019-01-15 Richard Biener <rguenther@suse.de>
8063 PR tree-optimization/88855
8064 * tree-if-conv.c (combine_blocks): Collect
8065 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
8067 2019-01-15 Tom de Vries <tdevries@suse.de>
8070 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
8071 lhs == NULL_TREE for gang-level reduction.
8073 2019-01-15 Richard Biener <rguenther@suse.de>
8074 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8077 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
8078 return true if SSA_NAME is already marked in visited bitmap.
8079 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
8081 2019-01-15 Jakub Jelinek <jakub@redhat.com>
8083 PR tree-optimization/88775
8084 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
8085 equal == 0 equality pointer comparisons some more if compared in
8086 integral types and either one points to an automatic var and the
8087 other to a global, or we can prove at least one points to the middle
8088 or both point to start or both point to end.
8090 2019-01-14 Andi Kleen <ak@linux.intel.com>
8092 * Makefile.in: Lower autofdo sampling rate by 10x.
8093 * Makefile.tpl: Dito.
8095 2019-01-14 Tom Honermann <tom@honermann.net>
8097 * defaults.h: Define CHAR8_TYPE.
8099 2019-01-14 Martin Sebor <msebor@redhat.com>
8102 * doc/extend.texi (Darwin Format Checks): Clarify.
8104 2019-01-14 Richard Biener <rguenther@suse.de>
8106 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
8107 whether we are in (simplify ...) or (match ...) context.
8109 2019-01-14 Jakub Jelinek <jakub@redhat.com>
8111 PR rtl-optimization/88796
8112 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
8113 * cfgexpand.c (stack_protect_prologue): Initialize
8114 crtl->stack_protect_guard_decl.
8115 * function.c (stack_protect_epilogue): Use it instead of calling
8116 targetm.stack_protect_guard again.
8117 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
8118 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
8119 crtl->stack_protect_guard_decl.
8120 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
8121 on the returned MEM_EXPR.
8123 2019-01-12 Tom de Vries <tdevries@suse.de>
8125 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
8126 vector length using -fopenacc-dim.
8128 2019-01-12 Tom de Vries <tdevries@suse.de>
8130 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
8131 lengths into account.
8133 2019-01-12 Svante Signell <svante.signell@gmail.com>
8135 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
8136 (TARGET_CAN_SPLIT_STACK): Define.
8137 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
8139 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8141 * params.def (inline-unit-growth): Set to 40.
8143 2019-01-12 Jakub Jelinek <jakub@redhat.com>
8145 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
8147 2019-01-12 Tom de Vries <tdevries@suse.de>
8149 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
8150 region calling vector-partitionable routine, set default_vector_length
8153 2019-01-12 Tom de Vries <tdevries@suse.de>
8155 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
8156 variable default_vector_length.
8158 2019-01-12 Tom de Vries <tdevries@suse.de>
8161 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
8162 from oacc_default_dims, as oacc_validate_dims would do it, and apply
8165 2019-01-12 Tom de Vries <tdevries@suse.de>
8167 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
8168 (nvptx_goacc_validate_dims): Add used parameter.
8169 * doc/tm.texi: Regenerate.
8170 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
8171 argument to call to targetm.goacc.validate_dims.
8172 (default_goacc_validate_dims): Add used
8174 * target.def (validate_dims): Add used parameter in DEFHOOK.
8175 * targhooks.h (default_goacc_validate_dims): Add used parameter.
8177 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8181 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
8183 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
8184 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
8185 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
8186 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
8188 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
8190 PR rtl-optimization/87305
8192 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
8193 for little endian pseudos used as paradoxical subreg.
8195 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8197 PR tree-optimization/88693
8198 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
8199 for STRING_CSTs that don't contain any NUL characters in the first
8200 TREE_STRING_LENGTH bytes.
8202 2019-01-11 Alan Modra <amodra@gmail.com>
8206 * genattrtab.c (min_fn): Don't translate values.
8207 (min_attr_value): Return INT_MAX when the value can't be calculated.
8208 Return minimum among any values that can be calculated.
8209 (max_attr_value): Adjust.
8211 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8213 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
8215 2019-01-11 Steve Ellcey <sellcey@marvell.com>
8217 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
8218 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
8219 (aarch64_return_call_with_max_clobbers): New function.
8220 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
8221 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
8223 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
8224 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
8225 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
8226 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
8227 * cselib.c (cselib_process_insn): Add argument to
8228 targetm.hard_regno_call_part_clobbered call.
8229 * ira-conflicts.c (ira_build_conflicts): Ditto.
8230 * ira-costs.c (ira_tune_allocno_costs): Ditto.
8231 * lra-constraints.c (inherit_reload_reg): Ditto.
8232 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
8233 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
8234 argument. Call targetm.return_call_with_max_clobbers.
8235 Add argument to targetm.hard_regno_call_part_clobbered call.
8236 (calls_have_same_clobbers_p): New function.
8237 (process_bb_lives): Add call_insn and last_call_insn variables.
8238 Pass call_insn to check_pseudos_live_through_calls.
8239 Modify if stmt to check targetm.return_call_with_max_clobbers.
8240 Update setting of flush variable.
8241 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
8243 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
8244 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
8245 targetm.hard_regno_call_part_clobbered call.
8246 * reginfo.c (choose_hard_reg_mode): Ditto.
8247 * regrename.c (check_new_reg_p): Ditto.
8248 * reload.c (find_equiv_reg): Ditto.
8249 * reload1.c (emit_reload_insns): Ditto.
8250 * sched-deps.c (deps_analyze_insn): Ditto.
8251 * sel-sched.c (init_regs_for_mode): Ditto.
8252 (mark_unavailable_hard_regs): Ditto.
8253 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
8254 * target.def (hard_regno_call_part_clobbered): Add insn argument.
8255 (return_call_with_max_clobbers): New target function.
8256 * doc/tm.texi: Regenerate.
8257 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
8258 * hooks.c (hook_bool_uint_mode_false): Change to
8259 hook_bool_insn_uint_mode_false.
8260 * hooks.h (hook_bool_uint_mode_false): Ditto.
8262 2019-01-11 Steve Ellcey <sellcey@marvell.com>
8264 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
8265 (aarch64_remove_extra_call_preserved_regs): New function.
8266 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
8267 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
8268 * doc/tm.texi: Regenerate.
8269 * final.c (get_call_reg_set_usage): Call new hook.
8270 * target.def (remove_extra_call_preserved_regs): New hook.
8271 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
8272 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
8274 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8277 * passes.c (finish_optimization_passes): Call print_combine_total_stats
8278 inside of pass_combine_1 dump rather than pass_profile_1.
8280 2019-01-11 Tom de Vries <tdevries@suse.de>
8282 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
8283 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
8284 (PTX_NUM_PER_WORKER_BARRIERS): Define.
8285 (nvptx_apply_dim_limits): Prevent vector_length 64 and
8288 2019-01-11 Tom de Vries <tdevries@suse.de>
8290 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
8292 2019-01-11 Jan Beulich <jbeulich@suse.com>
8294 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
8295 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
8296 sse2_cvtsi2sd): Add {l}.
8297 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
8300 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8303 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
8305 (*float<floatunssuffix>v2div2sf2): New define_insn.
8306 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
8307 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
8308 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
8309 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
8310 match_operands with "const0_operand" "C".
8312 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8314 * config/aarch64/aarch64-builtins.c
8315 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
8316 (aarch64_init_simd_builtins): ...Here
8318 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
8320 PR rtl-optimization/87305
8322 (setup_live_pseudos_and_spill_after_risky_transforms): Check
8323 allocation for big endian pseudos used as paradoxical subregs and
8324 spill them if it is wrong.
8325 * lra-constraints.c (lra_constraints): Add a comment.
8327 2019-01-10 Richard Biener <rguenther@suse.de>
8329 PR tree-optimization/88792
8330 * tree-ssa-pre.c (get_representative_for): Do not return a
8333 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8337 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
8338 (assign_parm_setup_block): Do the argument slot realignment here
8341 2019-01-10 Stefan Agner <stefan@agner.ch>
8344 * config/arm/arm.c (arm_option_override_internal): Force
8345 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
8347 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8350 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
8353 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8355 * config/arm/arm-builtins.c
8356 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
8357 (MAC_LANE_PAIR_QUALIFIERS): New.
8358 (arm_expand_builtin_args): Use it.
8359 (arm_expand_builtin_1): Likewise.
8360 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
8361 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
8362 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
8363 * config/arm/arm_neon.h:
8364 (vcadd_rot90_f16): New.
8365 (vcaddq_rot90_f16): New.
8366 (vcadd_rot270_f16): New.
8367 (vcaddq_rot270_f16): New.
8370 (vcmla_lane_f16): New.
8371 (vcmla_laneq_f16): New.
8372 (vcmlaq_lane_f16): New.
8373 (vcmlaq_laneq_f16): New.
8374 (vcmla_rot90_f16): New.
8375 (vcmlaq_rot90_f16): New.
8376 (vcmla_rot90_lane_f16): New.
8377 (vcmla_rot90_laneq_f16): New.
8378 (vcmlaq_rot90_lane_f16): New.
8379 (vcmlaq_rot90_laneq_f16): New.
8380 (vcmla_rot180_f16): New.
8381 (vcmlaq_rot180_f16): New.
8382 (vcmla_rot180_lane_f16): New.
8383 (vcmla_rot180_laneq_f16): New.
8384 (vcmlaq_rot180_lane_f16): New.
8385 (vcmlaq_rot180_laneq_f16): New.
8386 (vcmla_rot270_f16): New.
8387 (vcmlaq_rot270_f16): New.
8388 (vcmla_rot270_lane_f16): New.
8389 (vcmla_rot270_laneq_f16): New.
8390 (vcmlaq_rot270_lane_f16): New.
8391 (vcmlaq_rot270_laneq_f16): New.
8392 (vcadd_rot90_f32): New.
8393 (vcaddq_rot90_f32): New.
8394 (vcadd_rot270_f32): New.
8395 (vcaddq_rot270_f32): New.
8398 (vcmla_lane_f32): New.
8399 (vcmla_laneq_f32): New.
8400 (vcmlaq_lane_f32): New.
8401 (vcmlaq_laneq_f32): New.
8402 (vcmla_rot90_f32): New.
8403 (vcmlaq_rot90_f32): New.
8404 (vcmla_rot90_lane_f32): New.
8405 (vcmla_rot90_laneq_f32): New.
8406 (vcmlaq_rot90_lane_f32): New.
8407 (vcmlaq_rot90_laneq_f32): New.
8408 (vcmla_rot180_f32): New.
8409 (vcmlaq_rot180_f32): New.
8410 (vcmla_rot180_lane_f32): New.
8411 (vcmla_rot180_laneq_f32): New.
8412 (vcmlaq_rot180_lane_f32): New.
8413 (vcmlaq_rot180_laneq_f32): New.
8414 (vcmla_rot270_f32): New.
8415 (vcmlaq_rot270_f32): New.
8416 (vcmla_rot270_lane_f32): New.
8417 (vcmla_rot270_laneq_f32): New.
8418 (vcmlaq_rot270_lane_f32): New.
8419 (vcmlaq_rot270_laneq_f32): New.
8420 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
8421 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
8422 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
8423 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
8424 vcmlaq_lane270): New.
8425 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
8426 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
8427 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
8428 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
8429 (arm_option_reconfigure_globals): Use them.
8430 * config/arm/iterators.md (VDF, VQ_HSF): New.
8431 (VCADD, VCMLA): New.
8432 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
8433 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
8435 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
8436 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
8438 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8440 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
8441 Add qualifier_lane_pair_index.
8442 (emit-rtl.h): Include.
8443 (TYPES_QUADOP_LANE_PAIR): New.
8444 (aarch64_simd_expand_args): Use it.
8445 (aarch64_simd_expand_builtin): Likewise.
8446 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
8448 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
8449 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
8450 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
8451 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
8452 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
8453 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
8454 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
8455 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
8456 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
8457 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
8458 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
8459 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
8460 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
8461 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
8462 Add __ARM_FEATURE_COMPLEX.
8463 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
8464 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
8465 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
8466 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
8467 fcmlaq_lane270): New.
8468 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
8469 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
8470 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
8471 * config/aarch64/arm_neon.h:
8472 (vcadd_rot90_f16): New.
8473 (vcaddq_rot90_f16): New.
8474 (vcadd_rot270_f16): New.
8475 (vcaddq_rot270_f16): New.
8478 (vcmla_lane_f16): New.
8479 (vcmla_laneq_f16): New.
8480 (vcmlaq_lane_f16): New.
8481 (vcmlaq_rot90_lane_f16): New.
8482 (vcmla_rot90_laneq_f16): New.
8483 (vcmla_rot90_lane_f16): New.
8484 (vcmlaq_rot90_f16): New.
8485 (vcmla_rot90_f16): New.
8486 (vcmlaq_laneq_f16): New.
8487 (vcmla_rot180_laneq_f16): New.
8488 (vcmla_rot180_lane_f16): New.
8489 (vcmlaq_rot180_f16): New.
8490 (vcmla_rot180_f16): New.
8491 (vcmlaq_rot90_laneq_f16): New.
8492 (vcmlaq_rot270_laneq_f16): New.
8493 (vcmlaq_rot270_lane_f16): New.
8494 (vcmla_rot270_laneq_f16): New.
8495 (vcmlaq_rot270_f16): New.
8496 (vcmla_rot270_f16): New.
8497 (vcmlaq_rot180_laneq_f16): New.
8498 (vcmlaq_rot180_lane_f16): New.
8499 (vcmla_rot270_lane_f16): New.
8500 (vcadd_rot90_f32): New.
8501 (vcaddq_rot90_f32): New.
8502 (vcaddq_rot90_f64): New.
8503 (vcadd_rot270_f32): New.
8504 (vcaddq_rot270_f32): New.
8505 (vcaddq_rot270_f64): New.
8509 (vcmla_lane_f32): New.
8510 (vcmla_laneq_f32): New.
8511 (vcmlaq_lane_f32): New.
8512 (vcmlaq_laneq_f32): New.
8513 (vcmla_rot90_f32): New.
8514 (vcmlaq_rot90_f32): New.
8515 (vcmlaq_rot90_f64): New.
8516 (vcmla_rot90_lane_f32): New.
8517 (vcmla_rot90_laneq_f32): New.
8518 (vcmlaq_rot90_lane_f32): New.
8519 (vcmlaq_rot90_laneq_f32): New.
8520 (vcmla_rot180_f32): New.
8521 (vcmlaq_rot180_f32): New.
8522 (vcmlaq_rot180_f64): New.
8523 (vcmla_rot180_lane_f32): New.
8524 (vcmla_rot180_laneq_f32): New.
8525 (vcmlaq_rot180_lane_f32): New.
8526 (vcmlaq_rot180_laneq_f32): New.
8527 (vcmla_rot270_f32): New.
8528 (vcmlaq_rot270_f32): New.
8529 (vcmlaq_rot270_f64): New.
8530 (vcmla_rot270_lane_f32): New.
8531 (vcmla_rot270_laneq_f32): New.
8532 (vcmlaq_rot270_lane_f32): New.
8533 (vcmlaq_rot270_laneq_f32): New.
8534 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
8535 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
8536 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
8537 (FCADD, FCMLA): New.
8539 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
8541 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
8545 * config/pa/pa.c: Change "can not" to "cannot".
8546 * gimple-ssa-evrp-analyze.c: Likewise.
8547 * ipa-icf.c: Likewise.
8548 * ipa-polymorphic-call.c: Likewise.
8549 * ipa-pure-const.c: Likewise.
8550 * lra-constraints.c: Likewise.
8551 * lra-remat.c: Likewise.
8552 * reload1.c: Likewise.
8553 * reorg.c: Likewise.
8554 * tree-ssa-uninit.c: Likewise.
8556 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
8560 * Makefile.in: Mechanically replace "can not" with "cannot".
8561 * alias.c: Likewise.
8562 * builtins.c: Likewise.
8563 * calls.c: Likewise.
8564 * cgraph.c: Likewise.
8565 * cgraph.h: Likewise.
8566 * cgraphclones.c: Likewise.
8567 * cgraphunit.c: Likewise.
8568 * combine-stack-adj.c: Likewise.
8569 * combine.c: Likewise.
8570 * common/config/i386/i386-common.c: Likewise.
8571 * config/aarch64/aarch64.c: Likewise.
8572 * config/alpha/sync.md: Likewise.
8573 * config/arc/arc.c: Likewise.
8574 * config/arc/predicates.md: Likewise.
8575 * config/arm/arm-c.c: Likewise.
8576 * config/arm/arm.c: Likewise.
8577 * config/arm/arm.h: Likewise.
8578 * config/arm/arm.md: Likewise.
8579 * config/arm/cortex-r4f.md: Likewise.
8580 * config/csky/csky.c: Likewise.
8581 * config/csky/csky.h: Likewise.
8582 * config/darwin-f.c: Likewise.
8583 * config/epiphany/epiphany.md: Likewise.
8584 * config/i386/i386.c: Likewise.
8585 * config/i386/sol2.h: Likewise.
8586 * config/m68k/m68k.c: Likewise.
8587 * config/mcore/mcore.h: Likewise.
8588 * config/microblaze/microblaze.md: Likewise.
8589 * config/mips/20kc.md: Likewise.
8590 * config/mips/sb1.md: Likewise.
8591 * config/nds32/nds32.c: Likewise.
8592 * config/nds32/predicates.md: Likewise.
8593 * config/pa/pa.c: Likewise.
8594 * config/rs6000/e300c2c3.md: Likewise.
8595 * config/rs6000/rs6000.c: Likewise.
8596 * config/s390/s390.h: Likewise.
8597 * config/sh/sh.c: Likewise.
8598 * config/sh/sh.md: Likewise.
8599 * config/spu/vmx2spu.h: Likewise.
8600 * cprop.c: Likewise.
8601 * dbxout.c: Likewise.
8602 * df-scan.c: Likewise.
8603 * doc/cfg.texi: Likewise.
8604 * doc/extend.texi: Likewise.
8605 * doc/fragments.texi: Likewise.
8606 * doc/gty.texi: Likewise.
8607 * doc/invoke.texi: Likewise.
8608 * doc/lto.texi: Likewise.
8609 * doc/md.texi: Likewise.
8610 * doc/objc.texi: Likewise.
8611 * doc/rtl.texi: Likewise.
8612 * doc/tm.texi: Likewise.
8614 * emit-rtl.c: Likewise.
8615 * emit-rtl.h: Likewise.
8616 * except.c: Likewise.
8617 * expmed.c: Likewise.
8619 * fold-const.c: Likewise.
8620 * genautomata.c: Likewise.
8621 * gimple-fold.c: Likewise.
8622 * hard-reg-set.h: Likewise.
8623 * ifcvt.c: Likewise.
8624 * ipa-comdats.c: Likewise.
8625 * ipa-cp.c: Likewise.
8626 * ipa-devirt.c: Likewise.
8627 * ipa-fnsummary.c: Likewise.
8628 * ipa-icf.c: Likewise.
8629 * ipa-inline-transform.c: Likewise.
8630 * ipa-inline.c: Likewise.
8631 * ipa-polymorphic-call.c: Likewise.
8632 * ipa-profile.c: Likewise.
8633 * ipa-prop.c: Likewise.
8634 * ipa-pure-const.c: Likewise.
8635 * ipa-reference.c: Likewise.
8636 * ipa-split.c: Likewise.
8637 * ipa-visibility.c: Likewise.
8639 * ira-build.c: Likewise.
8640 * ira-color.c: Likewise.
8641 * ira-conflicts.c: Likewise.
8642 * ira-costs.c: Likewise.
8643 * ira-int.h: Likewise.
8644 * ira-lives.c: Likewise.
8647 * loop-invariant.c: Likewise.
8648 * loop-unroll.c: Likewise.
8649 * lower-subreg.c: Likewise.
8650 * lra-assigns.c: Likewise.
8651 * lra-constraints.c: Likewise.
8652 * lra-eliminations.c: Likewise.
8653 * lra-lives.c: Likewise.
8654 * lra-remat.c: Likewise.
8655 * lra-spills.c: Likewise.
8657 * lto-cgraph.c: Likewise.
8658 * lto-streamer-out.c: Likewise.
8659 * postreload-gcse.c: Likewise.
8660 * predict.c: Likewise.
8661 * profile-count.h: Likewise.
8662 * profile.c: Likewise.
8663 * recog.c: Likewise.
8665 * reload.c: Likewise.
8666 * reload1.c: Likewise.
8667 * reorg.c: Likewise.
8668 * resource.c: Likewise.
8669 * rtl.def: Likewise.
8671 * rtlanal.c: Likewise.
8672 * sched-deps.c: Likewise.
8673 * sched-ebb.c: Likewise.
8674 * sched-rgn.c: Likewise.
8675 * sel-sched-ir.c: Likewise.
8676 * sel-sched.c: Likewise.
8677 * shrink-wrap.c: Likewise.
8678 * simplify-rtx.c: Likewise.
8679 * symtab.c: Likewise.
8680 * target.def: Likewise.
8681 * toplev.c: Likewise.
8682 * tree-call-cdce.c: Likewise.
8683 * tree-cfg.c: Likewise.
8684 * tree-complex.c: Likewise.
8685 * tree-core.h: Likewise.
8686 * tree-eh.c: Likewise.
8687 * tree-inline.c: Likewise.
8688 * tree-loop-distribution.c: Likewise.
8689 * tree-nrv.c: Likewise.
8690 * tree-profile.c: Likewise.
8691 * tree-sra.c: Likewise.
8692 * tree-ssa-alias.c: Likewise.
8693 * tree-ssa-dce.c: Likewise.
8694 * tree-ssa-dom.c: Likewise.
8695 * tree-ssa-forwprop.c: Likewise.
8696 * tree-ssa-loop-im.c: Likewise.
8697 * tree-ssa-loop-ivcanon.c: Likewise.
8698 * tree-ssa-loop-ivopts.c: Likewise.
8699 * tree-ssa-loop-niter.c: Likewise.
8700 * tree-ssa-phionlycprop.c: Likewise.
8701 * tree-ssa-phiopt.c: Likewise.
8702 * tree-ssa-propagate.c: Likewise.
8703 * tree-ssa-threadedge.c: Likewise.
8704 * tree-ssa-threadupdate.c: Likewise.
8705 * tree-ssa-uninit.c: Likewise.
8706 * tree-ssanames.c: Likewise.
8707 * tree-streamer-out.c: Likewise.
8710 * vr-values.c: Likewise.
8712 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
8714 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
8715 (ix86_split_xorsign): Ditto.
8716 * config/i386/i386.c (ix86_expand_xorsign): New function.
8717 (ix86_split_xorsign): Ditto.
8718 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
8719 (xorsign<mode>3): New expander.
8720 (xorsign<mode>3_1): New insn_and_split pattern.
8721 * config/i386/sse.md (xorsign<mode>3): New expander.
8723 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8725 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
8726 (*tablejump_sp64): Likewise.
8727 (*tablejump<P:mode>): ...this.
8728 (*call_address_sp32): Merge into...
8729 (*call_address_sp64): Likewise.
8730 (*call_address<P:mode>): ...this.
8731 (*call_symbolic_sp32): Merge into...
8732 (*call_symbolic_sp64): Likewise.
8733 (*call_symbolic<P:mode>): ...this.
8734 (call_value): Remove constraint and add predicate.
8735 (*call_value_address_sp32): Merge into...
8736 (*call_value_address_sp64): Likewise.
8737 (*call_value_address<P:mode>): ...this.
8738 (*call_value_symbolic_sp32): Merge into...
8739 (*call_value_symbolic_sp64): Likewise.
8740 (*call_value_symbolic<P:mode>): ...this.
8741 (*sibcall_symbolic_sp32): Merge into...
8742 (*sibcall_symbolic_sp64): Likewise.
8743 (*sibcall_symbolic<P:mode>): ...this.
8744 (sibcall_value): Remove constraint and add predicate.
8745 (*sibcall_value_symbolic_sp32): Merge into...
8746 (*sibcall_value_symbolic_sp64): Likewise.
8747 (*sibcall_value_symbolic<P:mode>): ...this.
8748 (window_save): Minor tweak.
8749 (*branch_sp32): Merge into...
8750 (*branch_sp64): Likewise.
8751 (*branch<P:mode>): ...this.
8753 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8754 James Clarke <jrtc27@jrtc27.com>
8757 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
8758 consistently in TLS address generation and adjust code to the renaming
8759 of patterns. Mark calls to __tls_get_addr as const.
8760 * config/sparc/sparc.md (tgd_hi22): Turn into...
8761 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
8762 (tgd_lo10): Turn into...
8763 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
8764 (tgd_add32): Merge into...
8765 (tgd_add64): Likewise.
8766 (tgd_add<P:mode>): ...this and use Pmode throughout.
8767 (tldm_hi22): Turn into...
8768 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
8769 (tldm_lo10): Turn into...
8770 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
8771 (tldm_add32): Merge into...
8772 (tldm_add64): Likewise.
8773 (tldm_add<P:mode>): ...this and use Pmode throughout.
8774 (tldm_call32): Merge into...
8775 (tldm_call64): Likewise.
8776 (tldm_call<P:mode>): ...this and use Pmode throughout.
8777 (tldo_hix22): Turn into...
8778 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
8779 (tldo_lox10): Turn into...
8780 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
8781 (tldo_add32): Merge into...
8782 (tldo_add64): Likewise.
8783 (tldo_add<P:mode>): ...this and use Pmode throughout.
8784 (tie_hi22): Turn into...
8785 (tie_hi22<P:mode>): ...this and use Pmode throughout.
8786 (tie_lo10): Turn into...
8787 (tie_lo10<P:mode>): ...this and use Pmode throughout.
8788 (tie_ld64): Use DImode throughout.
8789 (tie_add32): Merge into...
8790 (tie_add64): Likewise.
8791 (tie_add<P:mode>): ...this and use Pmode throughout.
8792 (tle_hix22_sp32): Merge into...
8793 (tle_hix22_sp64): Likewise.
8794 (tle_hix22<P:mode>): ...this and use Pmode throughout.
8795 (tle_lox22_sp32): Merge into...
8796 (tle_lox22_sp64): Likewise.
8797 (tle_lox22<P:mode>): ...this and use Pmode throughout.
8798 (*tldo_ldub_sp32): Merge into...
8799 (*tldo_ldub_sp64): Likewise.
8800 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
8801 (*tldo_ldub1_sp32): Merge into...
8802 (*tldo_ldub1_sp64): Likewise.
8803 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
8804 (*tldo_ldub2_sp32): Merge into...
8805 (*tldo_ldub2_sp64): Likewise.
8806 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
8807 (*tldo_ldsb1_sp32): Merge into...
8808 (*tldo_ldsb1_sp64): Likewise.
8809 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
8810 (*tldo_ldsb2_sp32): Merge into...
8811 (*tldo_ldsb2_sp64): Likewise.
8812 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
8813 (*tldo_ldub3_sp64): Use DImode throughout.
8814 (*tldo_ldsb3_sp64): Likewise.
8815 (*tldo_lduh_sp32): Merge into...
8816 (*tldo_lduh_sp64): Likewise.
8817 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
8818 (*tldo_lduh1_sp32): Merge into...
8819 (*tldo_lduh1_sp64): Likewise.
8820 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
8821 (*tldo_ldsh1_sp32): Merge into...
8822 (*tldo_ldsh1_sp64): Likewise.
8823 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
8824 (*tldo_lduh2_sp64): Use DImode throughout.
8825 (*tldo_ldsh2_sp64): Likewise.
8826 (*tldo_lduw_sp32): Merge into...
8827 (*tldo_lduw_sp64): Likewise.
8828 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
8829 (*tldo_lduw1_sp64): Use DImode throughout.
8830 (*tldo_ldsw1_sp64): Likewise.
8831 (*tldo_ldx_sp64): Likewise.
8832 (*tldo_stb_sp32): Merge into...
8833 (*tldo_stb_sp64): Likewise.
8834 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
8835 (*tldo_sth_sp32): Merge into...
8836 (*tldo_sth_sp64): Likewise.
8837 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
8838 (*tldo_stw_sp32): Merge into...
8839 (*tldo_stw_sp64): Likewise.
8840 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
8841 (*tldo_stx_sp64): Use DImode throughout.
8843 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8845 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
8846 check configure option to set BTI and Return Address Signing.
8847 * configure.ac: Add --enable-standard-branch-protection and
8848 --disable-standard-branch-protection.
8849 * configure: Regenerated.
8850 * doc/install.texi: Document the same.
8852 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8853 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8855 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
8856 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
8857 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
8859 * config/aarch64/aarch64-bti-insert.c: New file.
8860 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
8862 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
8864 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
8865 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
8866 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
8867 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
8869 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8871 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
8872 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
8873 Disable bti for -mbranch-protection=none.
8874 (aarch64_handle_standard_branch_protection): Enable bti for
8875 -mbranch-protection=standard.
8876 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
8877 -mbranch-protection.
8878 (aarch64_bti_enabled): Check if bti is enabled.
8879 * config/aarch64/aarch64.opt: Declare target variable.
8880 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
8882 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8884 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
8885 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
8886 (aarch64_expand_epilogue): Likewise.
8887 (aarch64_output_mi_thunk): Likewise
8888 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
8889 TAILCALL_ADDR_REGS to x16 and x17.
8890 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
8892 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8894 * config/aarch64/aarch64-option-extensions.def: Define
8895 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
8896 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
8897 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
8898 (AARCH64_FL_PREDRES): New.
8899 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
8900 AARCH64_FL_PREDRES by default.
8901 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
8903 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8905 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
8907 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
8908 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
8909 * doc/invoke.texi: Document ARMv8.5-A.
8911 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8913 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
8914 (xorsign<mode>3): Likewise.
8916 2019-01-09 Jelinek <jakub@redhat.com>
8919 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
8920 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
8922 PR rtl-optimization/88331
8923 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
8924 not currently_expanding_to_rtl.
8926 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8928 * doc/invoke.texi (-Os): Remove trailing spaces.
8929 (-finline-functions): Remove reference to -O2.
8931 2019-01-08 Jakub Jelinek <jakub@redhat.com>
8933 PR rtl-optimization/79593
8934 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
8936 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
8937 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
8939 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
8942 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
8946 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
8947 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
8949 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
8952 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
8953 ix86_avx_u128_mode_entry.
8955 2019-01-08 Martin Liska <mliska@suse.cz>
8957 PR tree-optimization/88753
8958 * tree-switch-conversion.c (switch_conversion::build_one_array):
8959 Come up with local variable constructor. Convert first to
8960 type of constructor values.
8962 2019-01-08 Richard Biener <rguenther@suse.de>
8964 PR tree-optimization/86554
8965 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
8966 rpo_avail): Move earlier.
8967 (visit_nary_op): When value-numbering to expressions
8968 with different overflow behavior make sure there's an
8969 available expression on the path.
8971 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
8973 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
8974 aarch64_parse_branch_protection,
8975 struct aarch64_branch_protect_type,
8976 aarch64_handle_no_branch_protection,
8977 aarch64_handle_standard_branch_protection,
8978 aarch64_validate_mbranch_protection,
8979 aarch64_handle_pac_ret_protection,
8980 aarch64_handle_attr_branch_protection,
8981 accepted_branch_protection_string,
8982 aarch64_pac_ret_subtypes,
8983 aarch64_branch_protect_types,
8984 aarch64_handle_pac_ret_leaf): Define.
8985 (aarch64_override_options_after_change_1, aarch64_override_options):
8986 Add check for accepted_branch_protection_string.
8987 (aarch64_option_save): Save accepted_branch_protection_string.
8988 (aarch64_option_restore): Save accepted_branch_protection_string.
8989 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
8990 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
8991 msign-return-address.
8992 * doc/invoke.texi: Add mbranch-protection.
8994 2019-01-08 Alan Modra <amodra@gmail.com>
8997 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
8998 Delete "unknownp" parameter. Adjust callers. Handle
8999 CONST_INT, PLUS, MINUS, and MULT.
9000 (attr_value_aligned): Renamed from or_attr_value.
9001 (min_attr_value): Return INT_MIN for unhandled rtl case..
9002 (min_fn): ..and translate to INT_MAX here.
9003 (write_length_unit_log): Modify to cope without "unknown".
9004 (write_attr_value): Handle IF_THEN_ELSE.
9006 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9008 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
9009 optimization for masked stores.
9011 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9014 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
9015 output vector directly to duplicate_and_interleave instead of
9016 going through a temporary. Postpone insertion of ctor_seq to
9017 the end of the loop.
9019 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
9022 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
9023 unsigned_p. Handle signed and unsigned overflow correction as
9025 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
9027 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
9029 (add<mode>3_compareV_imm): Make this callable for expanding.
9030 (subv<GPI:mode>4): Use register_operand for operand 1. Use
9031 aarch64_plus_operand for operand 2.
9032 (subv<GPI:mode>_insn): New insn pattern.
9033 (subv<GPI:mode>_imm): Likewise.
9034 (negv<GPI:mode>3): New expand pattern.
9035 (negv<GPI:mode>_insn): New insn pattern.
9036 (negv<GPI:mode>_cmp_only): Likewise.
9037 (cmpv<GPI:mode>_insn): Likewise.
9038 (subvti4): Use register_operand for operand 1. Update call to
9039 aarch64_expand_subvti.
9040 (usubvti4): Likewise.
9041 (negvti3): New expand pattern.
9042 (negdi_carryout): New insn pattern.
9043 (negvdi_carryinV): New insn pattern.
9044 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
9045 version the named version.
9046 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
9048 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
9050 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
9052 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
9053 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
9054 (sub<mode>3_carryinCV): Delete.
9055 (sub<GPI:mode>3_carryinV): New expand pattern.
9056 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
9058 2019-01-07 Richard Biener <rguenther@suse.de>
9060 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
9061 of tree_operand_hash.
9063 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9065 PR tree-optimization/88598
9066 * tree.h (single_nonzero_element): Declare.
9067 * tree.c (single_nonzero_element): New function.
9068 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
9069 if I is the only nonzero element of CST.
9071 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9073 PR tree-optimization/88598
9074 * tree.h (initializer_each_zero_or_onep): Declare.
9075 * tree.c (initializer_each_zero_or_onep): New function.
9076 (signed_or_unsigned_type_for): Handle float types too.
9077 (unsigned_type_for, signed_type_for): Update comments accordingly.
9078 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
9079 x & { 0 or -1, 0 or -1, ... }.
9081 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
9083 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
9084 with x86_64-pc-linux-gnu.
9086 2019-01-07 Tom de Vries <tdevries@suse.de>
9089 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
9091 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
9094 2019-01-07 Jakub Jelinek <jakub@redhat.com>
9096 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
9097 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
9098 TARGET_AVX512F as condition.
9101 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
9102 const_not_ok_for_debug_p target hook.
9103 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
9104 on UNSPEC and subexpressions thereof if all subexpressions of the
9105 UNSPEC are CONSTANT_P.
9107 PR tree-optimization/88676
9108 * tree-ssa-phiopt.c (two_value_replacement): New function.
9109 (tree_ssa_phiopt_worker): Call it.
9112 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
9113 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
9116 * tree-vect-generic.c: Include insn-config.h and recog.h.
9117 (expand_vector_piecewise): Add defaulted ret_type argument,
9118 if non-NULL, use that in preference to type for the result type.
9119 (expand_vector_parallel): Formatting fix.
9120 (do_vec_conversion, do_vec_narrowing_conversion,
9121 expand_vector_conversion): New functions.
9122 (expand_vector_operations_1): Call expand_vector_conversion
9123 for VEC_CONVERT ifn calls.
9124 * internal-fn.def (VEC_CONVERT): New internal function.
9125 * internal-fn.c (expand_VEC_CONVERT): New function.
9126 * fold-const-call.c (fold_const_vec_convert): New function.
9127 (fold_const_call): Use it for CFN_VEC_CONVERT.
9128 * doc/extend.texi (__builtin_convertvector): Document.
9130 2019-01-07 Tom de Vries <tdevries@suse.de>
9132 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
9133 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
9134 vector_red_partition, vector_red_sym): New global variables.
9135 (nvptx_option_override): Initialize vector_red_sym.
9136 (nvptx_declare_function_name): Restore red_partition register.
9137 (nvptx_file_end): Emit code to declare the vector reduction variables.
9138 (nvptx_output_red_partition): New function.
9139 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
9140 large vector reductions.
9141 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
9142 (nvptx_init_builtins): Add VECTOR_ADDR.
9143 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
9144 Handle nvptx_expand_shared_addr.
9145 (nvptx_get_shared_red_addr): Add vector argument and handle large
9147 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
9149 (nvptx_goacc_reduction_init): Likewise.
9150 (nvptx_goacc_reduction_fini): Likewise.
9151 (nvptx_goacc_reduction_teardown): Likewise.
9152 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
9153 init,fini,teardown}.
9154 (nvptx_init_axis_predicate): Initialize vector_red_partition.
9155 (nvptx_set_current_function): Init vector_red_partition.
9156 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
9157 (nvptx_red_partition): New insn.
9158 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
9160 2019-01-07 Tom de Vries <tdevries@suse.de>
9163 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
9166 2019-01-07 Tom de Vries <tdevries@suse.de>
9168 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
9169 (nvptx_option_override): Init oacc_bcast_partition.
9170 (nvptx_init_oacc_workers): New function.
9171 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
9172 (nvptx_needs_shared_bcast): New function.
9173 (nvptx_find_par): Generalize to enable vectors to use shared-memory
9175 (nvptx_shared_propagate): Initialize vector bcast partition and
9176 synchronization state.
9177 (nvptx_single): Generalize to enable vectors to use shared-memory
9179 (nvptx_process_pars): Likewise.
9180 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
9181 * config/nvptx/nvptx.h (struct machine_function): Add
9182 bcast_partition and sync_bar members.
9184 2019-01-07 Tom de Vries <tdevries@suse.de>
9186 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
9187 (nvptx_apply_dim_limits): New function.
9188 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
9191 2019-01-07 Tom de Vries <tdevries@suse.de>
9193 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
9194 as late as possible.
9196 2019-01-07 Tom de Vries <tdevries@suse.de>
9198 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
9199 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
9200 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
9201 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
9202 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
9204 2019-01-07 Tom de Vries <tdevries@suse.de>
9206 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
9208 2019-01-07 Tom de Vries <tdevries@suse.de>
9210 * omp-offload.c (oacc_get_min_dim): New function.
9211 * omp-offload.h (oacc_get_min_dim): Declare.
9213 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
9216 * config/i386/i386.c (function_value_ms_64): Return small sturct in
9217 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
9219 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9223 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
9225 * ipa-inline.c (edge_badness): Use inlined_time instead of
9226 inline_summaries->get.
9228 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9230 * opts.c (enable_fdo_optimizations): Enable
9231 version-loops-for-strides, loop-interchange, unrol-and-jam
9232 and tree-loop-distribution.
9233 * invoke.texi: Document newly enabled options.
9235 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9237 * doc/invoke.texi (max-inline-insns-small): New parameters.
9238 * ipa-inline.c (want_early_inline_function_p): simplify.
9239 (want_inline_small_function_p): Fix pasto from previous patch;
9240 use max-inline-insns-small bound.
9241 * params.def (max-inline-insns-small): New param.
9242 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
9243 variables correctly.
9245 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9247 * doc/invoke.texi: Document max-inline-insns-size,
9248 uninlined-function-insns, uninlined-function-time,
9249 uninlined-thunk-insns and uninlined-thunk-time.
9250 * params.def: Add max-inline-insns-size,
9251 uninlined-function-insns, uninlined-function-time,
9252 uninlined-thunk-insns and uninlined-thunk-time.
9253 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
9255 * ipa-inline.c (can_inline_edge_by_limits_p,
9256 want_inline_small_function_p): Use new parameters.
9258 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9260 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
9262 2019-01-05 Jakub Jelinek <jakub@redhat.com>
9266 * expr.c (expand_assignment): For calls returning VLA structures
9267 if to_rtx is not a MEM, force it into a stack temporary.
9270 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
9271 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
9272 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
9273 subexpressions of both operands.
9274 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
9275 subrtxes are CONSTANT_P.
9276 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
9279 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
9281 * params.def (hot-bb-count-ws-permille): Set to 990.
9283 2019-01-04 Martin Sebor <msebor@redhat.com>
9286 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
9289 2019-01-04 Martin Sebor <msebor@redhat.com>
9292 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
9294 2019-01-04 Jakub Jelinek <jakub@redhat.com>
9296 * gdbinit.in: Turn off pagination for the skip commands, restore
9297 it to previous state afterwards.
9299 2019-01-04 Jakub Jelinek <jakub@redhat.com>
9302 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
9303 of GET_MODE (opN) as modes of the libcall arguments.
9305 2019-01-04 Jan Beulich <jbeulich@suse.com>
9307 * config/i386/sse.md
9308 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
9309 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
9310 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
9311 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
9312 avx512f_vmcmp<mode>3<round_saeonly_name>,
9313 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
9314 avx512f_maskcmp<mode>3,
9315 <avx512>_cvt<ssemodesuffix>2mask<mode>,
9316 <avx512>_cvt<ssemodesuffix>2mask<mode>,
9317 *<avx512>_cvtmask2<ssemodesuffix><mode>,
9318 *<avx512>_cvtmask2<ssemodesuffix><mode>,
9319 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
9320 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
9321 <avx512>_gt<mode>3<mask_scalar_merge_name>,
9322 <avx512>_gt<mode>3<mask_scalar_merge_name>,
9323 <avx512>_testm<mode>3<mask_scalar_merge_name>,
9324 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
9325 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
9326 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
9327 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
9328 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
9329 avx512cd_maskb_vec_dup<mode>,
9330 avx512cd_maskw_vec_dup<mode>,
9331 avx512dq_fpclass<mode><mask_scalar_merge_name>,
9332 avx512dq_vmfpclass<mode>,
9333 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
9336 2019-01-03 Martin Sebor <msebor@redhat.com>
9338 PR tree-optimization/88659
9339 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
9341 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9343 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
9344 unaligned vsx and avoid lxvd2x/stxvd2x.
9345 (gen_lvx_v4si_move): New function.
9347 2019-01-03 Tom de Vries <tdevries@suse.de>
9349 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
9350 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
9352 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
9354 2019-01-03 Tom de Vries <tdevries@suse.de>
9356 * config/nvptx/nvptx.c (struct offload_attrs): New.
9357 (populate_offload_attrs): New function. Factor mask extraction out of
9358 nvptx_reorg. Add extraction of dimensions.
9359 (nvptx_reorg): Use populate_offload_attrs.
9361 2019-01-03 Tom de Vries <tdevries@suse.de>
9363 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
9364 cases for oacc_min_dims_p and routine_p. Add asserts for
9365 oacc_default_dims_p and offload_region_p.
9367 2019-01-03 Tom de Vries <tdevries@suse.de>
9369 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
9371 (nvptx_goacc_validate_dims): ... here.
9373 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
9375 PR tree-optimization/85574
9376 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
9378 (struct ssa_equip_hash_traits): Declare.
9379 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
9381 2019-01-03 Jakub Jelinek <jakub@redhat.com>
9384 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
9385 change it to qualified_type.
9387 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
9389 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
9390 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
9392 2019-01-02 Martin Sebor <msebor@redhat.com>
9393 Jeff Law <law@redhat.com>
9395 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
9396 (get_range_strlen_tree): Update appropriately.
9398 * gimple-fold.h (get_range_strlen): Drop unused last argument.
9400 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
9401 rather than set_range_info.
9402 * tree-ssa-strlen.c (set_strlen_range): Extracted from
9403 maybe_set_strlen_range. Handle potentially boundary crossing
9404 cases more conservatively.
9405 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
9406 Call set_strlen_range.
9407 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
9410 * gimple-fold.c (get_range_strlen): Update prototype to no longer
9411 need the flexp argument.
9412 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
9413 from calls to get_range_strlen. Update comments. Just update
9414 VAL for an unterminated const char array and let the reset of the
9415 code handle it normally. No longer try to set *flexp. Adjust
9417 (get_range_strlen): Update for the new get_range_strlen API.
9418 (get_maxval_strlen): Similarly.
9419 (gimple_fold_builtin_strlen): Handle update meaning of return value
9420 from get_range_strlen.
9421 * gimple-ssa-sprintf.c (get_string_length): Update for the new
9422 get_range_strlen API.
9424 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
9427 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
9428 false at WPA time when body was removed.
9430 2019-01-02 Martin Liska <mliska@suse.cz>
9432 PR tree-optimization/88650
9433 * predict.c (set_even_probabilities): Calculate probability
9434 remainer only when really used.
9436 2019-01-02 Richard Biener <rguenther@suse.de>
9439 * tree-data-ref.c (analyze_subscript_affine_affine): Use
9440 widest_ints when mangling max_stmt_execution results.
9442 2019-01-02 Richard Biener <rguenther@suse.de>
9444 PR tree-optimization/88621
9445 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
9446 bitfields when canoncalizing.
9448 2019-01-02 Richard Biener <rguenther@suse.de>
9451 * config/i386/x86-tune-costs.h (intel_cost): Adjust
9452 cost of cheap SSE instruction.
9454 2019-01-02 Richard Biener <rguenther@suse.de>
9457 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
9458 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
9460 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
9461 set after UIDs before splitting them.
9463 2019-01-01 Martin Sebor <msebor@redhat.com>
9464 Jeff Law <law@redhat.com>
9466 * gimple-fold.c (get_range_strlen_tree): Record if the computed
9467 length is optimistic. If it is, then arrange to compute the
9468 conservative length as well.
9470 * gimple-fold.h (get_range_strlen): Update prototype.
9471 * builtins.c (check_access): Update call to get_range_strlen to use
9472 c_strlen_data pointer. Change various variable accesses to instead
9473 pull data from the c_strlen_data structure.
9474 (check_strncat_sizes, expand_builtin_strncat): Likewise.
9475 * calls.c (maybe_warn_nonstring_arg): Likewise.
9476 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
9477 minimum length if maximum lengh is unknown.
9478 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
9479 that used c_strlen, it's no longer needed. Restructure slightly.
9480 (format_string): Set unlikely range appropriately.
9481 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
9483 (get_range_strlen): Accept c_strlen_data pointer for external
9484 call sites as well. Pass through to call to internal get_range_strlen.
9485 Adjust minlen, maxlen and maxbound as needed.
9486 (get_maxval_strlen): Update comments.
9487 (gimple_fold_builtin_strlen): Update call to get_range_strlen
9488 to use c_strlen_data pointer. Change variable accesses to instead
9489 use c_strlen_data data members.
9491 * gimple-fold.c (get_range_strlen): Update prototype.
9492 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
9493 local variables. Use pdata to return information to caller.
9494 Update calls to get_range_strlen. Update pdata->maxbound.
9495 (get_range_strlen -- static version): Similarly.
9496 (get_range_strlen -- extern version): Update for internal
9497 get_range_strlen API change. Convert to external data format.
9498 (get_maxval_strlen): Similarly.
9500 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
9502 * coverage.c (get_coverage_counts): Use current_function_decl.
9503 * profile.c (read_thunk_profile): New function.
9504 (branch_prob): Add THUNK parameter.
9505 * tree-profile.c (tree_profiling): Handle thunks.
9506 * value-prof.c (init_node_map): Handle thunks.
9507 * value-prof.h (branch_prob): Upate prototype.
9508 (read_thunk_profile): Declare.
9510 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9512 Update copyright years.
9514 * gcc.c (process_command): Update copyright notice dates.
9515 * gcov-dump.c (print_version): Ditto.
9516 * gcov.c (print_version): Ditto.
9517 * gcov-tool.c (print_version): Ditto.
9518 * gengtype.c (create_file): Ditto.
9519 * doc/cpp.texi: Bump @copying's copyright year.
9520 * doc/cppinternals.texi: Ditto.
9521 * doc/gcc.texi: Ditto.
9522 * doc/gccint.texi: Ditto.
9523 * doc/gcov.texi: Ditto.
9524 * doc/install.texi: Ditto.
9525 * doc/invoke.texi: Ditto.
9527 Copyright (C) 2019 Free Software Foundation, Inc.
9529 Copying and distribution of this file, with or without modification,
9530 are permitted in any medium without royalty provided the copyright
9531 notice and this notice are preserved.