1 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
3 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
4 kernel does not exit cleanly.
5 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
7 2019-05-24 Jason Merrill <jason@redhat.com>
10 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
12 2019-05-24 Richard Biener <rguenther@suse.de>
15 * tree-loop-distribution.c (struct partition): Add location
17 (partition_alloc): Initialize all fields.
18 (generate_memset_builtin): Use the location recorded in the
19 partition for the generated call.
20 (generate_memcpy_builtin): Likewise.
21 (classify_partition): Record the location of a single store
22 as location for the partition.
24 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
29 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
32 * common/config/aarch64/aarch64-common.c
33 (aarch64_rewrite_selected_cpu): Change local temporary variable
34 type from unsigned long to uint64_t.
35 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
36 aarch64_get_extension_string_for_isa_flags): Change declaration to
37 match new definition by replacing unsigned long with uint64_t.
39 2019-05-24 Jakub Jelinek <jakub@redhat.com>
42 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
43 gen_attr_type just once instead of 4-7 times. Formatting fixes.
44 Handle stack_protect_test_<mode> codegen similarly to corresponding
47 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
49 * config/i386/darwin.h: Reject -mfentry*.
50 * doc/sourcebuild.texi: Document mfentry target support.
52 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
54 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
55 Rename to rs6000_global_entry_point_prologue_needed_p. Return
56 false for PC-relative functions.
57 (rs6000_output_function_prologue): Change called function name to
58 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
59 name,1" for PC-relative functions.
60 (rs6000_elf_declare_function_name): Change called function name to
61 rs6000_global_entry_point_prologue_needed_p.
63 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
66 * config/i386/i386.c (gen_rtx_cost):
67 Use ix86_tune_cost instead of ix86_cost.
69 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
70 Michael Meissner <meissner@linux.ibm.com>
71 Segher Boessenkool <segher@kernel.crashing.org>
73 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
75 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
76 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
77 (rs6000_fndecl_pcrel_p): Likewise.
78 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
79 error if -mpcrel is requested without -mcpu=future.
80 (rs6000_opt_masks): Add entry for pcrel.
81 (rs6000_fndecl_pcrel_p): New function.
82 (rs6000_pcrel_p): Likewise.
83 * config/rs6000/rs6000.opt (mpcrel): New option.
84 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
86 2019-05-23 Jan Hubicka <jh@suse.cz>
87 Martin Liska <mliska@suse.cz>
89 PR tree-optimization/90576
90 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
92 (aliasing_component_refs_p): Fix three way size compare conditional;
93 give up earlier in case we can not decide on equivalence.
95 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
96 Michael Meissner <meissner@linux.ibm.com>
97 Segher Boessenkool <segher@kernel.crashing.org>
99 * config.gcc: Add future cpu.
100 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
101 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
103 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
104 (RS6000_CPU): New instantiation for future cpu.
105 * config/rs6000/rs6000-opts.h (enum processor_type): Add
107 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
108 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
109 * config/rs6000/rs6000-tables.opt: Regenerate.
110 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
111 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
112 (rs6000_machine_from_flags): Handle future cpu.
113 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
114 PROCESSOR_POWER9 for now.
115 (rs6000_adjust_cost): Likewise.
116 (rs6000_issue_rate): Likewise.
117 (rs6000_register_move_cost): Likewise.
118 (rs6000_opt_masks): Add entry for future.
119 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
120 (MASK_FUTURE): New #define.
121 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
122 * config/rs6000/rs6000.opt (mfuture): New target option.
123 * doc/invoke.texi (mcpu): Add future cpu.
125 2019-05-23 Martin Liska <mliska@suse.cz>
128 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
129 operation points to a temporary (pointed via tree_to_wide_ref)
130 that is out of scope after the &.
132 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
135 * doc/extend.texi (Function Names): Add missing word.
137 2019-05-23 Richard Biener <rguenther@suse.de>
139 PR tree-optimization/88440
140 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
142 * tree-loop-distribution.c (generate_memset_builtin): Fold the
144 (generate_memcpy_builtin): Likewise.
145 (distribute_loop): Pass in whether to only distribute patterns.
146 (prepare_perfect_loop_nest): Also allow size optimization.
147 (pass_loop_distribution::execute): When optimizing a loop
148 nest for size allow pattern replacement.
150 2019-05-23 Jakub Jelinek <jakub@redhat.com>
153 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
156 2019-05-23 Martin Liska <mliska@suse.cz>
159 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
160 expression similarly to gimplify_decl_expr.
162 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
164 * cse.c (cse_dump_path): s/dump_file/f.
166 2019-05-22 David Malcolm <dmalcolm@redhat.com>
169 * diagnostic-format-json.cc: Include "selftest.h".
170 (json_from_expanded_location): Only add "file" key for non-NULL
172 (json_from_location_range): Don't add "start" and "finish"
173 children if they are UNKNOWN_LOCATION.
174 (selftest::test_unknown_location): New selftest.
175 (selftest::test_bad_endpoints): New selftest.
176 (selftest::diagnostic_format_json_cc_tests): New function.
177 * json.cc (json::object::get): New function.
178 (selftest::test_object_get): New selftest.
179 (selftest::json_cc_tests): Call it.
180 * json.h (json::object::get): New decl.
181 * selftest-run-tests.c (selftest::run_tests): Call
182 selftest::diagnostic_format_json_cc_tests.
183 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
186 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
187 Andrew Stubbs <amd@codesourcery.com>
189 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
190 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
191 (kernel): Rename to...
192 (main_kernel): ... this.
193 (load_image): Load _init_array and _fini_array kernels.
194 (run): Add argument for kernel to run.
195 (main): Run init_array_kernel before main_kernel, and
196 fini_array_kernel after.
197 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
198 amdgpu_hsa_kernel attribute on functions.
199 (gcn_disable_constructors): Delete.
200 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
201 * config/gcn/crt0.c (size_t): Define.
202 (_init_array, _fini_array): New.
203 (__preinit_array_start, __preinit_array_end,
204 __init_array_start, __init_array_end,
205 __fini_array_start, __fini_array_end): Declare weak references.
207 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
209 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
211 2019-05-22 Jason Merrill <jason@redhat.com>
213 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
215 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
218 * config/i386/i386-options.c (ix86_init_machine_status): Set
219 stack_frame_required to true.
220 * config/i386/i386.c (ix86_get_frame_size): New function.
221 (ix86_frame_pointer_required): Replace get_frame_size with
223 (ix86_compute_frame_layout): Likewise.
224 (ix86_find_max_used_stack_alignment): Changed to void. Set
225 stack_frame_required.
226 (ix86_finalize_stack_frame_flags): Always call
227 ix86_find_max_used_stack_alignment. Replace get_frame_size with
229 * config/i386/i386.h (machine_function): Add stack_frame_required.
231 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
233 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
235 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
237 * common/config/aarch64/aarch64-common.c
238 (struct aarch64_option_extension, struct processor_name_to_arch,
239 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
240 aarch64_contains_opt,
241 aarch64_get_extension_string_for_isa_flags): Change type of
242 variables storing flags to uint64_t.
243 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
244 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
245 * config/aarch64/aarch64.c (struct processor,
246 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
247 aarch64_validate_march, aarch64_override_options,
248 aarch64_option_print, aarch64_handle_attr_isa_flags,
249 aarch64_declare_function_name, aarch64_start_file): Make flag
251 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
252 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
253 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
254 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
255 * config/aarch64/driver-aarch64.c
256 (struct aarch64_arch_extension, struct aarch64_core_data,
257 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
258 flag variables uint64_t.
259 * doc/invoke.texi: Add documentation for new arguments.
261 2019-05-22 Richard Biener <rguenther@suse.de>
263 * alias.c (ao_ref_from_mem): Move stack-slot sharing
265 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
267 2019-05-22 Martin Liska <mliska@suse.cz>
270 * doc/extend.texi: Document the change.
272 2019-05-22 Richard Biener <rguenther@suse.de>
274 PR tree-optimization/90450
275 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
276 (mem_ref_hasher::equal): Check it.
277 (mem_ref_alloc): Initialize it.
278 (gather_mem_refs_stmt): Set it.
280 2019-05-22 Richard Biener <rguenther@suse.de>
282 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
284 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
287 2019-05-22 Alan Modra <amodra@gmail.com>
289 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
290 (ASM_CPU_SPEC): Conditionally add -many.
291 * config/rs6000/rs6000.c (rs6000_machine): New static var.
292 (rs6000_machine_from_flags, emit_asm_machine): New functions..
293 (rs6000_file_start): ..extracted from here, and modified to
295 (rs6000_output_function_prologue): Emit .machine as necessary.
296 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
298 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
299 added by check_vect_support_and_set_flags.
300 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
301 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
303 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
306 * ira-lives.c (process_bb_node_lives): Consider defs
307 for a call insn to be die before the call, not after.
309 * function.c (assign_parm_setup_block): Raise alignment of
310 stacked parameter only for STRICT_ALIGNMENT targets.
312 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
314 * config/rs6000/constraints.md (define_register_constraint "wz"):
316 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
317 RS6000_CONSTRAINT_wz.
318 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
319 (rs6000_init_hard_regno_mode_ok): Adjust.
320 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
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 "wl"):
327 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
328 RS6000_CONSTRAINT_wl.
329 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
330 (rs6000_init_hard_regno_mode_ok): Adjust.
331 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
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 "wm"):
338 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
339 RS6000_CONSTRAINT_wm.
340 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
341 (rs6000_init_hard_regno_mode_ok): Adjust.
342 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" 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 "wk"):
349 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
350 RS6000_CONSTRAINT_wk.
351 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
352 (rs6000_init_hard_regno_mode_ok): Adjust.
353 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
354 * doc/md.texi (Machine Constraints): Adjust.
356 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
358 * config/rs6000/constraints.md (define_register_constraint "wj"):
360 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
361 RS6000_CONSTRAINT_wj.
362 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
363 (rs6000_init_hard_regno_mode_ok): Adjust.
364 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
366 * config/rs6000/vsx.md: Ditto.
367 * doc/md.texi (Machine Constraints): Adjust.
369 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
371 * config/rs6000/constraints.md (define_register_constraint "wh"):
373 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
374 RS6000_CONSTRAINT_wh.
375 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
376 (rs6000_init_hard_regno_mode_ok): Adjust.
377 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
378 * doc/md.texi (Machine Constraints): Adjust.
380 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
383 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
384 Avoid calling gen_lowpart with CONST operand.
386 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
388 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
389 field template_last_to_copy.
390 (ssa_create_duplicates): Set it, and use it. Attempt to
391 preserve more debug stmts.
393 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
395 * config/i386/sse.md (VF1_AVX2): New mode iterator.
396 (signbit<mode>2): New expander
398 2019-05-21 James Clarke <jrtc27@jrtc27.com>
401 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
402 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
404 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
406 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
407 %ebx and %ecx bafore calling cpuid with leaf 1 or
408 non-constant leaf argument.
410 2019-05-21 Alan Modra <amodra@gmail.com>
413 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
414 power9 direct move cost.
415 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
416 Correct comments and rename functions to suit parameters.
418 2019-05-21 Richard Biener <rguenther@suse.de>
421 * fold-const.c (fold_read_from_vector): New function.
422 * fold-const.h (fold_read_from_vector): Declare.
423 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
424 single-element insert permutations. Canonicalize selector
425 further and fix issue with last commit.
427 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
429 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
430 parameter with default value false to declaration.
431 (split_edges_for_insertion): New inline function. Wrapper for
432 split_critical_edges with for_edge_insertion_p = true.
433 * tree-cfg.c (split_critical_edges): Don't split non-critical
434 edges if for_edge_insertion_p is false. Fix whitespace.
435 * tree-ssa-pre.c (pass_pre::execute): Call
436 split_edges_for_insertion instead of split_critical_edges.
437 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
438 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
439 (pass_data_sink_code): Update function name in the comment.
441 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
443 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
444 around is_value_included_in that knows how to handle BIT_AND_EXPR.
445 (is_pred_expr_subset_of): Use the new function. Handle more cases where
446 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
449 2019-05-21 Martin Liska <mliska@suse.cz>
451 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
453 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
454 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
456 * config/rs6000/rs6000.c (rs6000_option_override_internal):
458 (rs6000_function_arg): Likewise.
459 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
460 (rs6000_expand_ternop_builtin): Use interval syntax.
461 (get_element_number): Likewise.
462 (altivec_expand_builtin): Likewise.
463 (rs6000_get_function_versions_dispatcher): Quote target_clones.
467 2019-05-20 Jakub Jelinek <jakub@redhat.com>
471 * function.h (struct function): Add calls_eh_return member.
472 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
473 gimplifying __builtin_eh_return call.
474 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
476 (expand_call_inline): Or in src_cfun->calls_eh_return into
477 dst_cfun->calls_eh_return.
478 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
479 cfun->calls_eh_return.
480 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
481 * lto-streamer-out.c (output_struct_function_base): Write
484 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
486 PR rtl-optimization/43147
487 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
490 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
492 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
493 (refs_may_alias_p_1): ... here; update stats.
494 (refs_may_alias_p): Do not update stats here.
496 2019-05-20 Richard Biener <rguenther@suse.de>
498 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
499 doesn't produce pointers.
500 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
501 the first operand points to.
503 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
505 * tree-ssa-alias.c (compare_sizes): New function.
506 (sompare_type_sizes): New function
507 (aliasing_component_refs_p): Use it.
508 (indirect_ref_may_alias_decl_p): Likewise.
510 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
512 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
514 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
516 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
517 (LIBLSAN_EARLY_SPEC): Likewise.
518 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
520 2019-05-20 Martin Liska <mliska@suse.cz>
522 * config/i386/i386.c (ix86_libc_has_fast_function):
523 Add ATTRIBUTE_UNUSED for the argument.
525 2019-05-20 Richard Biener <rguenther@suse.de>
527 * gimple-match-head.c: Include vec-perm-indices.h.
528 * generic-match-head.c: Likewise.
529 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
531 * fold-const.c (fold_vec_perm): Export.
532 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
535 2019-05-20 Jakub Jelinek <jakub@redhat.com>
537 * cfgloop.h (struct loop): Add simdlen member.
538 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
539 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
540 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
541 as new argument to autovectorize_vector_sizes target hook. If
542 loop->simdlen, pick up vector size where the vectorization factor
543 is equal to loop->simd, and if there is none, fall back to the first
545 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
547 * omp-low.c (omp_clause_aligned_alignment): Likewise.
548 * omp-general.c (omp_max_vf): Likewise.
549 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
550 * tree-vect-slp.c (vect_slp_bb): Likewise.
551 * target.def (autovectorize_vector_sizes): Add ALL argument and
553 * doc/tm.texi: Adjust documentation.
554 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
555 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
556 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
558 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
559 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
560 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
561 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
562 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
563 preferred vector size is not 512-bit or 256-bit, just put those
564 unpreferred ones last.
566 2019-05-20 Martin Liska <mliska@suse.cz>
568 * targhooks.c (default_libc_has_fast_function): New function.
569 * targhooks.h (default_libc_has_fast_function): Likewise.
571 2019-05-20 Martin Liska <mliska@suse.cz>
574 * builtins.c (expand_builtin_memory_copy_args): When having a
575 target with fast mempcpy implementation do now use memcpy.
576 * config/i386/i386.c (ix86_libc_has_fast_function): New.
577 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
578 * doc/tm.texi: Likewise.
579 * doc/tm.texi.in: Likewise.
581 * expr.c (emit_block_move_hints): Add 2 new arguments.
582 * expr.h (emit_block_move_hints): Bail out when libcall
583 to memcpy would be used.
585 2019-05-20 Martin Liska <mliska@suse.cz>
587 * profile-count.c: Add vertical spacing in order
588 to separate functions.
589 * profile-count.h: Likewise.
591 2019-05-20 Martin Liska <mliska@suse.cz>
593 * profile-count.h: Do not use full qualified
595 * profile-count.c (profile_count::to_frequency): Likewise.
597 2019-05-20 Martin Liska <mliska@suse.cz>
599 * profile-count.h (enum profile_quality): Use capital letters
600 for enum value names. Use the adjusted names.
601 * profile-count.c: Use the adjusted names.
603 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
605 * config/rs6000/constraints.md (define_register_constraint "wH"):
607 (define_register_constraint "wI"): Delete.
608 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
609 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
610 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
611 (rs6000_init_hard_regno_mode_ok): Adjust.
612 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
613 resp. "d", or with "wa" as appropriate, all with "p8v".
614 * config/rs6000/vsx.md: Ditto.
615 * doc/md.texi (Machine Constraints): Adjust.
617 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
619 * config/rs6000/constraints.md (define_register_constraint "wy"):
621 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
622 RS6000_CONSTRAINT_wy.
623 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
624 (rs6000_init_hard_regno_mode_ok): Adjust.
625 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
626 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
627 (define_mode_attr Fisa): New.
628 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
629 * doc/md.texi (Machine Constraints): Adjust.
631 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
633 * config/rs6000/constraints.md (define_register_constraint "wu"):
635 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
636 RS6000_CONSTRAINT_wu.
637 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
638 (rs6000_init_hard_regno_mode_ok): Adjust.
639 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
641 (define_mode_attr Fa): Delete.
642 * config/rs6000/vsx.md: Ditto.
643 * doc/md.texi (Machine Constraints): Adjust.
645 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
647 * config/rs6000/constraints.md (define_register_constraint "wJ"):
649 (define_register_constraint "wK"): Delete.
650 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
651 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
652 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
653 (rs6000_init_hard_regno_mode_ok): Adjust.
654 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
655 Replace "wK" constraint by "wH" with "p9v".
656 * config/rs6000/vsx.md: Ditto.
657 * doc/md.texi (Machine Constraints): Adjust.
659 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
661 * config/rs6000/constraints.md (define_register_constraint "wb"):
663 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
664 RS6000_CONSTRAINT_wb.
665 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
666 (rs6000_init_hard_regno_mode_ok): Adjust.
667 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
668 * config/rs6000/vsx.md: Ditto.
669 * doc/md.texi (Machine Constraints): Adjust.
671 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
673 * config/rs6000/constraints.md (define_register_constraint "wo"):
675 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
676 RS6000_CONSTRAINT_wo.
677 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
678 (rs6000_init_hard_regno_mode_ok): Adjust.
679 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
680 * config/rs6000/altivec.md: Ditto.
681 * doc/md.texi (Machine Constraints): Adjust.
683 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
685 * config/darwin-c.c (darwin_register_objc_includes): Do not
686 prepend the sysroot when building gnu-runtime header search
689 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
691 * config/darwin.c (darwin_file_end): Use switch_to_section ()
692 instead of direct output of the asm.
694 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
696 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
697 argument to be type bool (was int before).
698 (rs6000_emit_epilogue): Simplify some code. Declare some variables
699 at first use. Use type bool for some variables. Fix a theoretical
700 eh_return bug for svr4.
702 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
704 * config/rs6000/rs6000.md (isa): New attribute.
705 (enabled): New attribute.
707 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
709 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
710 assemble_start_function and assemble_end_function.
712 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
715 * omp-general.c (oacc_verify_routine_clauses): Change formal
716 parameters. Add checking if already marked with an OpenACC
717 'routine' directive. Adjust all users.
720 * omp-general.c (oacc_build_routine_dims): Move some of its
722 (oacc_verify_routine_clauses): ... this new function.
723 * omp-general.h (oacc_verify_routine_clauses): New prototype.
725 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
727 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
728 formating of picbase labels to match other ports.
730 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
732 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
733 in the generated code.
735 2019-05-16 Martin Sebor <msebor@redhat.com>
737 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
738 identifiers, keywords, operators, and types in diagnostics. Correct
739 quoting, spelling, and sentence capitalization issues.
740 (expand_builtin_atomic_is_lock_free): Same.
741 (fold_builtin_next_arg): Same.
742 * cfgexpand.c (expand_one_var): Same.
743 (tree_conflicts_with_clobbers_p): Same.
744 (expand_asm_stmt): Same.
745 (verify_loop_structure): Same.
746 * cgraphunit.c (process_function_and_variable_attributes): Same.
747 * collect-utils.c (collect_execute): Same.
748 * collect2.c (maybe_run_lto_and_relink): Same.
749 (is_lto_object_file): Same.
750 (scan_prog_file): Same.
751 * convert.c (convert_to_real_1): Same.
752 * dwarf2out.c (dwarf2out_begin_prologue): Same.
753 * except.c (verify_eh_tree): Same.
754 * gcc.c (execute): Same.
755 (eval_spec_function): Same.
757 (driver::set_up_specs): Same.
758 (compare_debug_auxbase_opt_spec_function): Same.
759 * gcov-tool.c (unlink_gcda_file): Same.
762 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
763 * gimplify.c (gimplify_asm_expr): Same.
764 (gimplify_adjust_omp_clauses): Same.
765 * hsa-gen.c (gen_hsa_addr_insns): Same.
766 (gen_hsa_insns_for_load): Same.
767 (gen_hsa_cmp_insn_from_gimple): Same.
768 (gen_hsa_insns_for_operation_assignment): Same.
769 (gen_get_level): Same.
770 (gen_hsa_alloca): Same.
771 (omp_simple_builtin::generate): Same.
772 (gen_hsa_atomic_for_builtin): Same.
773 (gen_hsa_insns_for_call): Same.
774 * input.c (dump_location_info): Same.
775 * ipa-devirt.c (compare_virtual_tables): Same.
776 * ira.c (ira_setup_eliminable_regset): Same.
777 * lra-assigns.c (lra_assign): Same.
778 * lra-constraints.c (lra_constraints): Same.
779 * lto-streamer-in.c (lto_input_mode_table): Same.
780 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
781 (merge_and_complain): Same.
782 (compile_offload_image): Same.
783 (compile_images_for_offload_targets): Same.
784 (debug_objcopy): Same.
787 * opts.c (print_specific_help): Same.
788 (parse_no_sanitize_attribute): Same.
790 (handle_param): Same.
791 * plugin.c (add_new_plugin): Same.
792 (parse_plugin_arg_opt): Same.
793 (try_init_one_plugin): Same.
794 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
795 operators, and types in diagnostics. Correct quoting and spelling
797 * read-rtl-function.c (parse_edge_flag_token): Same.
798 (function_reader::parse_enum_value): Same.
799 * reg-stack.c (check_asm_stack_operands): Same.
800 * regcprop.c (validate_value_data): Same.
801 * sched-rgn.c (make_pass_sched_fusion): Same.
802 * stmt.c (check_unique_operand_names): Same.
803 * targhooks.c (default_target_option_pragma_parse): Same.
804 * tlink.c (recompile_files): Same.
805 * toplev.c (process_options): Same.
807 * trans-mem.c (diagnose_tm_1): Same.
808 (ipa_tm_scan_irr_block): Same.
809 (ipa_tm_diagnose_transaction): Same.
810 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
811 format a tree code name in a diagnostic.
812 (verify_types_in_gimple_min_lval): Same.
813 (verify_types_in_gimple_reference): Same.
814 (verify_gimple_call): Same.
815 (verify_gimple_assign_unary): Same.
816 (verify_gimple_assign_binary): Same.
817 (verify_gimple_assign_ternary): Same.
818 (verify_gimple_assign_single): Same.
819 (verify_gimple_switch): Same.
820 (verify_gimple_label): Same.
821 (verify_gimple_phi): Same.
822 (verify_gimple_in_seq): Same.
823 (verify_eh_throw_stmt_node): Same.
824 (collect_subblocks): Same.
825 (gimple_verify_flow_info): Same.
826 (do_warn_unused_result): Same.
827 * tree-inline.c (expand_call_inline): Same.
828 * tree-into-ssa.c (update_ssa): Same.
829 * tree.c (tree_int_cst_elt_check_failed): Same.
830 (tree_vec_elt_check_failed): Same.
831 (omp_clause_operand_check_failed): Same.
832 (verify_type_variant): Same.
834 * value-prof.c (verify_histograms): Same.
835 * varasm.c (assemble_start_function): Same.
837 2019-05-16 Martin Sebor <msebor@redhat.com>
839 * config/i386/i386-expand.c (get_element_number): Quote keywords
840 and other internal names in diagnostics. Adjust other diagnostic
841 formatting issues noted by -Wformat-diag.
842 * config/i386/i386-features.c
843 (ix86_mangle_function_version_assembler_name): Same.
844 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
845 * config/i386/i386.c (ix86_function_type_abi): Same.
846 (ix86_function_ms_hook_prologue): Same.
847 (classify_argument): Same.
848 (ix86_expand_prologue): Same.
849 (ix86_md_asm_adjust): Same.
850 (ix86_memmodel_check): Same.
852 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
854 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
855 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
858 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
861 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
862 intrinsics without SSE/SSE2/SSSE3.
863 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
865 (*mmx_uavgv8qi3): Likewise.
867 2019-05-17 Richard Biener <rguenther@suse.de>
869 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
870 VEC_PERM_EXPR as __VEC_PERM with -gimple.
872 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
874 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
875 vec_sldw insn pattern.
877 2019-05-17 Richard Biener <rguenther@suse.de>
879 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
881 2019-05-17 Martin Liska <mliska@suse.cz>
884 * toplev.c (output_stack_usage): With LTO and sanitizer it
885 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
886 has no file location.
888 2019-05-16 Jakub Jelinek <jakub@redhat.com>
891 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
892 sz0 is equal to sz1, instead return false in that case.
894 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
895 has non-constant expression, force sctx.lane and use two
896 argument IFN_GOMP_SIMD_LANE instead of single argument.
897 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
898 two argument IFN_GOMP_SIMD_LANE without lhs.
899 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
901 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
903 (LOOP_REQUIRES_VERSIONING): Or in
904 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
905 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
907 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
908 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
909 from simd if clause if needed.
911 2019-05-16 Richard Biener <rguenther@suse.de>
913 * tree-affine.c (expr_to_aff_combination): New function split
915 (tree_to_aff_combination): ... here.
916 (aff_combination_expand): Avoid building a GENERIC tree.
918 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
920 * cgraphunit.c (cgraph_node::expand_thunk): Remove
921 assemble_start_function and assemble_end_function calls.
922 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
923 assemble_start_function and assemble_end_function.
924 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
925 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
926 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
927 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
928 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
929 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
930 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
931 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
932 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
933 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
934 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
935 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
937 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
938 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
939 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
940 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
941 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
942 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
943 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
944 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
945 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
946 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
947 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
948 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
949 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
950 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
952 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
953 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
954 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
956 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
958 * tree-ssa-alias.c (alias_stats): Add
959 aliasing_component_refs_p_may_alias and
960 aliasing_component_refs_p_no_alias.
961 (dump_alias_stats): Print aliasing_component_refs_p stats.
962 (aliasing_component_refs_p): Update stats.
964 2019-05-16 Martin Liska <mliska@suse.cz>
967 * multiple_target.c (expand_target_clones): Do not allow
968 target_clones being used with a symbol that is an alias.
970 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
972 PR tree-optimization/90394
973 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
974 positives rather than ICE for cases where (code2 == NE_EXPR
975 && code1 == BIT_AND_EXPR).
977 2019-05-16 Jakub Jelinek <jakub@redhat.com>
980 * tree-core.h (struct tree_decl_common): Document
981 decl_nonshareable_flag for PARM_DECLs.
982 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
983 * calls.c (expand_call): Don't try tail call if caller
984 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
985 passed on the stack and callee needs to pass any arguments on the
987 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
988 else if instead of series of mutually exclusive ifs. Handle
989 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
990 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
992 * lto-streamer.h (LTO_major_version): Bump to 9.
994 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
996 PR tree-optimization/90106
997 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
998 new parameter as new internal function call, also move it to new
1000 (use_internal_fn): Pass internal function call to
1001 shrink_wrap_one_built_in_call_with_conds.
1003 2019-05-15 Jakub Jelinek <jakub@redhat.com>
1005 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
1007 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
1008 safelen_int and set loop->dont_vectorize.
1010 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1013 * config/i386/i386-builtin.def: Enable MMX intrinsics with
1015 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
1017 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
1018 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
1019 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
1022 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1025 * config/i386/mmx.md (*vec_dupv2sf): Changed to
1026 define_insn_and_split to support SSE emulation.
1027 (*vec_extractv2sf_0): Likewise.
1028 (*vec_extractv2sf_1): Likewise.
1029 (*vec_extractv2si_0): Likewise.
1030 (*vec_extractv2si_1): Likewise.
1031 (*vec_extractv2si_zext_mem): Likewise.
1032 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
1033 (vec_extractv2sf_1 splitter): Likewise.
1034 (vec_extractv2sfsf): Likewise.
1035 (vec_setv2si): Likewise.
1036 (vec_extractv2si_1 splitter): Likewise.
1037 (vec_extractv2sisi): Likewise.
1038 (vec_setv4hi): Likewise.
1039 (vec_extractv4hihi): Likewise.
1040 (vec_setv8qi): Likewise.
1041 (vec_extractv8qiqi): Likewise.
1042 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
1043 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
1044 (vec_extractv2sisi): Likewise.
1045 (vec_extractv4hihi): Likewise.
1046 (vec_extractv8qiqi): Likewise.
1047 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
1048 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
1049 (vec_initv2sisi): Likewise.
1050 (vec_initv4hihi): Likewise.
1051 (vec_initv8qiqi): Likewise.
1052 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
1053 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
1054 (vec_setv4hi): Likewise.
1055 (vec_setv8qi): Likewise.
1057 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1060 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
1061 TARGET_MMX_WITH_SSE.
1062 (MMXMODE:*mov<mode>_internal): Likewise.
1063 (MMXMODE:movmisalign<mode>): Likewise.
1065 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
1068 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
1069 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
1070 (sse2_cvtpd2pi): Ditto.
1071 (sse2_cvttpd2pi): Ditto.
1072 (*vec_concatv2sf_sse4_1): Ditto.
1073 (*vec_concatv2sf_sse): Ditto.
1074 (*vec_concatv2si_sse4_1): Ditto.
1075 (*vec_concatv2si): Ditto.
1076 (*vec_concatv4si_0): Ditto.
1077 (*vec_concatv2di_0): Ditto.
1079 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1082 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
1084 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1087 * config/i386/sse.md (ssse3_palignrdi): Changed to
1088 define_insn_and_split to support SSE emulation.
1090 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1093 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
1095 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1098 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
1099 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
1102 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1105 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
1106 or TARGET_MMX_WITH_SSE.
1107 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
1109 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1112 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
1114 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1117 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
1118 Changed to define_insn_and_split to support SSE emulation.
1120 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1123 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
1124 Changed to define_insn_and_split to support SSE emulation.
1126 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1129 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
1130 (*mmx_<emms>): This.
1131 (mmx_<emms>): New expander.
1133 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1136 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
1138 (*sse2_umulv1siv1di3): Add SSE2 emulation.
1140 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1143 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
1145 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1148 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
1150 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1153 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
1154 TARGET_MMX_WITH_SSE.
1155 (*mmx_uavgv4hi3): Add SSE emulation.
1157 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1160 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
1161 and TARGET_MMX_WITH_SSE.
1162 (*mmx_uavgv8qi3): Add SSE emulation.
1164 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1167 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
1168 maskmovdqu for __MMX_WITH_SSE__.
1170 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1173 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
1174 TARGET_MMX and TARGET_MMX_WITH_SSE.
1175 (*mmx_umulv4hi3_highpart): Add SSE emulation.
1177 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1180 * config/i386/mmx.md (mmx_pmovmskb): Changed to
1181 define_insn_and_split to support SSE emulation.
1183 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1186 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
1187 and TARGET_MMX_WITH_SSE.
1188 (mmx_<code>v8qi3): Likewise.
1189 (smaxmin:<code>v4hi3): New.
1190 (umaxmin:<code>v8qi3): Likewise.
1191 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
1192 (umaxmin:*mmx_<code>v8qi3): Likewise.
1194 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1197 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
1198 TARGET_MMX_WITH_SSE.
1199 (*mmx_pinsrw): Add SSE emulation.
1201 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1204 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
1206 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1209 * config/i386/sse.md (sse_cvtpi2ps): Changed to
1210 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
1213 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1216 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
1217 (sse_cvttps2pi): Likewise.
1219 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1222 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
1223 TARGET_MMX_WITH_SSE.
1224 (mmx_pshufw_1): Add SSE emulation.
1225 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
1226 TARGET_MMX_WITH_SSE to support SSE emulation.
1228 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1231 * config/i386/constraints.md (Yw): New constraint.
1232 * config/i386/mmx.md (*vec_dupv2si): Changed to
1233 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
1234 support SSE emulation.
1236 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1239 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
1240 TARGET_MMX_WITH_SSE.
1241 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
1243 (mmx_gt<mode>3): Likewise.
1245 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1248 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
1249 TARGET_MMX_WITH_SSE. Add SSE support.
1251 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1254 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
1255 TARGET_MMX_WITH_SSE.
1256 (any_logic:<code><mode>3): New.
1257 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
1260 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1263 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
1264 TARGET_MMX_WITH_SSE. Add SSE emulation.
1265 (mmx_<shift_insn><mode>3): Likewise.
1267 (<shift_insn><mode>3): Likewise.
1269 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1272 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
1273 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
1275 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1278 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
1279 TARGET_MMX_WITH_SSE.
1280 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
1283 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1286 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
1287 TARGET_MMX_WITH_SSE.
1289 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
1292 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1295 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
1296 (plusminus:mmx_<plusminus_insn><mode>3): Check
1297 TARGET_MMX_WITH_SSE.
1298 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
1299 (<plusminus_insn><mode>3): New.
1300 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
1301 (*mmx_<plusminus_insn><mode>3): Likewise.
1303 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1306 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
1307 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
1309 * config/i386/mmx.m (mmx_punpckhbw): Changed to
1310 define_insn_and_split to support SSE emulation.
1311 (mmx_punpcklbw): Likewise.
1312 (mmx_punpckhwd): Likewise.
1313 (mmx_punpcklwd): Likewise.
1314 (mmx_punpckhdq): Likewise.
1315 (mmx_punpckldq): Likewise.
1317 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1318 Uros Bizjak <ubizjak@gmail.com>
1321 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
1323 (ix86_split_mmx_pack): Likewise.
1324 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
1326 (ix86_split_mmx_pack): Likewise.
1327 * config/i386/i386.md (mmx_isa): New.
1328 (enabled): Also check mmx_isa.
1329 * config/i386/mmx.md (any_s_truncate): New code iterator.
1330 (s_trunsuffix): New code attr.
1331 (mmx_packsswb): Removed.
1332 (mmx_packssdw): Likewise.
1333 (mmx_packuswb): Likewise.
1334 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
1335 MMX packsswb/packuswb with SSE2.
1336 (mmx_packssdw): Likewise.
1337 * config/i386/predicates.md (register_mmxmem_operand): New.
1339 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1342 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1343 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
1344 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
1345 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
1346 (ix86_vector_mode_supported_p): Likewise.
1347 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
1349 2019-05-15 Martin Liska <mliska@suse.cz>
1352 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
1355 2019-05-15 Richard Biener <rguenther@suse.de>
1357 * tree-into-ssa.c (pass_build_ssa::execute): Run
1358 update_address_taken before going into SSA.
1360 2019-05-15 Richard Biener <rguenther@suse.de>
1362 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
1363 as __BIT_FIELD_REF with type with -gimple.
1365 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
1367 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
1368 semantically equivalent branches (left over after prior refactorings).
1370 2019-05-15 Richard Biener <rguenther@suse.de>
1372 PR tree-optimization/88828
1373 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
1376 2019-05-14 Richard Biener <rguenther@suse.de>
1378 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
1379 as __VIEW_CONVERT with -gimple.
1381 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1384 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
1387 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
1389 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
1390 define_split to become a define_insn_and_split.
1392 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
1394 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
1396 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
1397 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
1398 (sibcall_epilogue): Adjust.
1401 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1403 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
1404 to unsupported ones.
1405 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
1406 * config.host: Likewise.
1407 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
1408 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
1409 __svr4__]: Remove "brand" fallback.
1410 [!KSTAT_DATA_STRING]: Remove.
1411 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
1413 (comdat_group): Likewise.
1414 (set_have_as_tls): Likewise.
1415 (gcc_cv_target_dl_iterate_phdr): Likewise.
1416 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
1417 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
1418 * configure: Regenerate.
1419 * doc/install.texi: Simplify Solaris target triplets.
1420 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
1421 (Specific, *-*-solaris2*): Document Solaris 10 removal.
1422 Remove Solaris 10 references.
1423 Remove obsolete Solaris bug reference.
1424 (Specific, sparc-sun-solaris2.10): Remove.
1426 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
1428 * config/i386/i386.md (any_div): New code iterator.
1429 (paired_mod): New code attribute.
1430 (sgnprefix): Handle DIV and UDIV RTXes.
1432 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
1433 and udivmod<mode>4 patterns using any_div code iterator.
1434 (divmod splitters): Macroize splitters using any_div code iterator.
1435 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
1436 (*udivmodsi4_pow2_zext_2): Ditto.
1437 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
1438 and *udivmod<mode>4_noext patterns using any_div code iterator.
1439 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
1440 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
1441 patterns using any_div code iterator.
1442 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
1443 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
1444 patterns using any_div code iterator.
1445 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
1446 udivmodhiqi3 patterns using any_extend code iterator.
1448 2019-05-14 Richard Biener <rguenther@suse.de>
1449 H.J. Lu <hongjiu.lu@intel.com>
1451 PR tree-optimization/88828
1452 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1453 permuting in a single non-constant element not extracted
1456 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1458 * internal-fn.def (SIGNBIT): New.
1459 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
1461 (signbitv4sf2): Likewise.
1463 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
1466 * config/mips/mips.c (mips_split_move): Skip forward SRC into
1467 next insn when the SRC reg is dead.
1469 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
1471 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
1472 (alloc_cand_and_find_basis): Ditto.
1473 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
1474 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
1475 (create_add_imm_cand, slsr_process_cast): Ditto.
1476 (slsr_process_copy, replace_mult_candidate): Ditto.
1477 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
1478 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
1479 (pass_strength_reduction::execute): Init the first NULL element.
1481 2019-05-13 Nathan Sidwell <nathan@acm.org>
1483 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
1484 (run_attempt): Reformat line break.
1486 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
1489 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
1490 data registers in sibcall epilogues.
1491 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
1493 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
1496 * configure.ac (--enable-frame-pointer):
1497 Disable by default for cygwin and mingw.
1498 * configure: Regenerate.
1500 2019-05-13 Nathan Sidwell <nathan@acm.org>
1502 * dwarf2out.c (breakout_comdat_types): Move comment to correct
1504 (const_ok_for_output_1): Balance parens around #if/#else/#endif
1505 (gen_member_die): Move abstract origin check earlier. Only VARs
1506 can be static_inline_p. Simplify splicing control flow.
1508 2019-05-13 Richard Biener <rguenther@suse.de>
1510 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
1512 (vect_build_slp_tree_1): Likewise.
1514 2019-05-13 Richard Biener <rguenther@suse.de>
1516 PR tree-optimization/90402
1517 * tree-if-conv.c (tree_if_conversion): Value number only
1518 the loop body by making the latch an exit of the region
1520 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
1522 (do_rpo_vn): Deal with multiple edges into the entry block
1523 that are not backedges inside the region by skipping PHIs
1526 2019-05-13 Richard Biener <rguenther@suse.de>
1528 PR tree-optimization/90316
1529 * tree-ssa-pre.c (insert_aux): Fold into ...
1530 (insert): ... this function. Use a RPO walk to reduce the
1531 number of required iterations.
1533 2019-05-13 Martin Liska <mliska@suse.cz>
1535 PR tree-optimization/90416
1536 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
1537 string instead of passing the second part as va_arg argument.
1539 2019-05-13 Martin Liska <mliska@suse.cz>
1541 PR gcov-profile/90380
1542 * gcov.c (handle_cycle): Do not support zero cycle count,
1543 it should not be possible.
1544 (path_contains_zero_cycle_arc): New function.
1545 (circuit): Ignore zero cycle arc counts.
1547 2019-05-13 Martin Liska <mliska@suse.cz>
1549 PR gcov-profile/90380
1550 * gcov.c (enum loop_type): Remove the enum and
1552 (handle_cycle): Assert that we should not reach
1554 (circuit): Use loop_found instead of a tri-state loop_type.
1555 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
1558 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1561 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
1562 (ix86_output_indirect_branch_via_reg): Use output mechanism
1563 accounting for __USER_LABEL_PREFIX__.
1564 (ix86_output_indirect_branch_via_push): Likewise.
1565 (ix86_output_function_return): Likewise.
1566 (ix86_output_indirect_function_return): Likewise.
1568 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
1570 * doc/md.texi: Document use of code attributes in rtx patterns.
1571 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
1572 * read-rtl.c (find_code): Split out search loops into...
1573 (maybe_find_code): ...this new function.
1574 (check_code_iterator): Make the error message more informative.
1575 (check_code_attribute): New function.
1576 (rtx_reader::rtx_alloc_for_name): Likewise.
1577 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
1578 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
1579 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
1580 <max_opp> directly as an rtx code instead of via a match_operator.
1581 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
1582 (<su>abd<mode>_3): Update accordingly.
1584 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1586 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
1587 is given, print the state of the EH "save world" computation for
1590 2019-05-11 Jakub Jelinek <jakub@redhat.com>
1593 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
1594 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
1596 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
1598 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
1599 Use pinsrd for TARGET_SSE4_1.
1600 * config/i386/sse.md (movdi_to_sse): Ditto.
1602 2019-05-10 Richard Biener <rguenther@suse.de>
1604 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
1605 (do_rpo_vn): Initialize next_value_id.
1607 2019-05-10 Martin Liska <mliska@suse.cz>
1609 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
1612 2019-05-10 Jakub Jelinek <jakub@redhat.com>
1614 PR tree-optimization/90385
1615 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
1616 arguments of the exit phis.
1619 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
1620 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
1622 (copy_tree_body_r): Likewise.
1623 (copy_fn): Set id.do_not_fold to true.
1625 2019-05-10 Martin Liska <mliska@suse.cz>
1627 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
1628 Reapply changes from r269790.
1630 2019-05-10 Martin Liska <mliska@suse.cz>
1633 * doc/invoke.texi: New params.
1634 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
1635 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
1636 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
1638 * tree-switch-conversion.h (struct jump_table_cluster):
1641 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
1643 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
1645 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
1647 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
1649 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
1651 PR rtl-optimization/88879
1652 * sel-sched.c (sel_target_adjust_priority): Remove assert.
1654 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
1657 * config/arm/arm.c (callee_saved_reg_p): Move before
1658 thumb_find_work_register.
1659 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
1660 thumb_find_work_register. Only call df_get_live_out once.
1661 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
1662 (thumb_find_work_register): Use
1663 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
1664 algorithms to locate a spare call clobbered reg.
1666 2019-05-09 Martin Liska <mliska@suse.cz>
1668 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
1669 and MAX_EXPR in GIMPLE FE format.
1671 2019-05-09 Martin Liska <mliska@suse.cz>
1673 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
1674 * gimple-pretty-print.c (dump_gimple_bb_header):
1676 (pp_cfg_jump): Dump edge probability.
1677 * profile-count.c (profile_quality_as_string): Simplify
1678 with a static array.
1679 (parse_profile_quality): New function.
1680 (profile_count::dump): Simplify with a static array.
1681 (profile_count::from_gcov_type): Add new argument.
1682 * profile-count.h (parse_profile_quality): Likewise.
1683 * predict.h (set_hot_bb_threshold): New.
1684 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
1686 * predict.c (get_hot_bb_threshold): Set from the new param.
1687 (set_hot_bb_threshold): New.
1689 2019-05-09 Richard Biener <rguenther@suse.de>
1691 PR tree-optimization/90395
1692 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
1693 rewrite vector stores that throw internally.
1695 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
1697 * cif-code.def (CHKP): Remove.
1700 * configure.ac (--enable-frame-pointer): Disable by default for
1702 * configure: Regenerate.
1704 2019-05-09 Alan Modra <amodra@gmail.com>
1707 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
1708 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
1709 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
1710 cost for general <-> vsx when direct moves are available.
1711 Cost union classes at minimal cost for any reg in the class.
1712 Correct calculation for moves between vsx, float, and altivec.
1713 Don't return a low cost for moves between special regs. Don't
1714 use hard coded register numbers.
1715 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
1716 (rs6000_ira_change_pseudo_allocno_class): New function.
1717 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
1718 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
1720 (movsi_internal1): Don't disparage vector alternatives.
1721 (mov<mode>_internal): Likewise, excepting alternative that
1723 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
1724 we <- b alternative.
1726 2019-05-08 Jakub Jelinek <jakub@redhat.com>
1729 PR tree-optimization/89060
1730 * tree-ssa-live.h (live_vars_map): New typedef.
1731 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
1732 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
1733 (struct compute_live_vars_data): New type.
1734 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
1735 live_vars_at_stmt, destroy_live_vars): New functions.
1736 * tree-tailcall.c: Include tree-ssa-live.h.
1737 (live_vars, live_vars_vec): New global variables.
1738 (find_tail_calls): Perform variable life analysis before punting.
1739 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
1740 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
1742 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
1743 Perform variable life analysis to select variables that really need
1745 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
1746 instead set id->eh_landing_pad_dest and assert it is the same.
1747 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
1749 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
1750 Richard Earnshaw <rearnsha@arm.com>
1753 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
1755 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
1756 (thumb1_compute_save_core_reg_mask): Don't force a spare work
1757 register if both the epilogue and prologue can use call-clobbered
1759 (thumb1_unexpanded_epilogue): Use
1760 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
1761 picking temporaries for restoring high regs to match that of the
1762 prologue where possible.
1763 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
1764 the list of work registers. Detect if the return address is still live
1765 at the end of the prologue and avoid using it for a work register if so.
1766 If the return address is not live, add LR to the list of pushable regs
1767 after the first pass.
1769 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
1771 PR tree-optimization/90078
1772 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
1773 (INFTY): Increase the value for infinite cost.
1774 (struct comp_cost): Promote type of members to int64_t.
1775 (infinite_cost): Don't set complexity in initialization.
1776 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
1777 overflows to infinite_cost.
1778 (adjust_setup_cost): Promote type of parameter and cost computation
1780 (struct ainc_cost_data, struct iv_ca): Promote type of member to
1782 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
1783 cost computation to int64_t.
1784 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
1785 int64_t's format specifier in dump.
1787 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
1789 PR tree-optimization/90240
1790 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
1791 with respect to scaling factor pre-computed for each basic block.
1792 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
1793 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
1794 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
1795 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
1796 live range for array of loop's basic blocks. Cleanup aux field of
1797 loop's basic blocks.
1799 2019-05-08 Jakub Jelinek <jakub@redhat.com>
1801 PR tree-optimization/90356
1802 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
1804 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
1806 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
1807 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
1808 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
1809 (ix86_handle_option): Handle -mavx512bf16.
1810 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
1812 * config/i386/avx512bf16vlintrin.h: New.
1813 * config/i386/avx512bf16intrin.h: New.
1814 * config/i386/cpuid.h (bit_AVX512BF16): New.
1815 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
1816 * config/i386/i386-builtin-types.def: Add new types.
1817 * config/i386/i386-builtin.def: Add new builtins.
1818 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1820 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
1821 (ix86_option_override_internal): Handle BF16.
1822 (ix86_valid_target_attribute_inner_p): Ditto.
1823 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
1824 * config/i386/i386-builtin.c (enum processor_features): Add
1826 (static const _isa_names_table isa_names_table): Ditto.
1827 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
1828 (PTA_AVX512BF16): Ditto.
1829 * config/i386/i386.opt: Add -mavx512bf16.
1830 * config/i386/immintrin.h: Include avx512bf16intrin.h
1831 and avx512bf16vlintrin.h.
1832 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
1833 avx512f_cvtneps2bf16_<mode><mask_name>,
1834 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
1835 * config/i386/subst.md (mask_half): Add new subst.
1836 * doc/invoke.texi: Document -mavx512bf16.
1838 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
1840 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
1842 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
1843 (rs6000_debug_legitimize_reload_address): Delete.
1844 (rs6000_legitimize_reload_address_ptr): Delete.
1845 (rs6000_option_override_internal): Adjust.
1846 (mem_operand_gpr): Adjust comment.
1847 (legitimate_lo_sum_address_p): Ditto.
1848 (rs6000_legitimize_reload_address): Delete.
1849 (rs6000_debug_legitimize_reload_address): Delete.
1850 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
1852 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
1855 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1856 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
1857 to compute vector element selector for both constant and variable
1860 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
1862 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
1863 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
1864 ashrdi3_cvt using SWI48 mode iterator.
1866 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1868 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
1869 (aarch64_<su>abd<mode>_3): Likewise.
1870 (*aarch64_<su>abd<mode>_3): New define_insn.
1871 (<sur>sad<vsi2qi>): New define_expand.
1872 * config/aarch64/iterators.md: Added MAX_OPP attribute.
1873 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
1874 (build_vect_cond_expr): Likewise.
1876 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
1878 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
1879 clobbers outside of accessible_reg_set.
1880 * config/i386/i386.c (ix86_conditional_register_usage):
1881 Disable register sets by clearing corresponding bits in
1882 accessible_reg_set. Do not set corresponding bits in fixed_regs,
1883 call_used_regs and don't clear corresponding reg_names array members.
1885 2019-05-07 Richard Biener <rguenther@suse.de>
1887 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
1888 not specified still compute a comp_vectype for invariant
1891 2019-05-07 Richard Biener <rguenther@suse.de>
1893 PR tree-optimization/90316
1894 * tree-ssa-pre.c (translate_vuse_through_block): When
1895 same_valid is NULL do not bother to search for a virtual
1897 (phi_translate_1): When operands changed we cannot keep
1898 the same value-number so do not bother to ask whether
1899 that's possible from translate_vuse_through_block.
1901 2019-05-07 Martin Liska <mliska@suse.cz>
1903 * bitmap.c (bitmap_register): Come up with
1904 alloc_descriptor_max_uid and assign it for
1906 (register_overhead): Use get_descriptor as
1908 (release_overhead): New.
1909 (bitmap_elem_to_freelist): Call it.
1910 (bitmap_elt_clear_from): Likewise.
1911 (bitmap_obstack_free): Likewise.
1912 (bitmap_move): Sensitively release memory.
1913 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
1914 (bitmap_initialize): Initialize alloc_descriptor to zero.
1915 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
1917 2019-05-07 Richard Biener <rguenther@suse.de>
1919 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
1920 we build a SLP node. Remove max_size and limiting.
1921 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
1923 2019-05-07 Richard Biener <rguenther@suse.de>
1925 PR tree-optimization/90316
1926 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
1928 (walk_non_aliased_vuses): Take walking limit argument.
1929 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
1930 walking if it is reached instead of just counting.
1931 (get_continuation_for_phi): Likewise.
1932 (walk_non_aliased_vuses): Likewise, instead of leaving counter
1933 limiting to the callback.
1934 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
1935 (vn_reference_lookup_3): Likewise.
1936 (vn_reference_lookup_pieces): Likewise.
1937 (vn_reference_lookup): Likewise.
1938 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
1939 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
1940 (avail_exprs_stack::lookup_avail_expr): Likewise.
1942 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
1944 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
1945 for comparaible types in the second direction even if first one
1946 hits incomparable type.
1948 2019-05-07 Richard Biener <rguenther@suse.de>
1951 * lto-wrapper.c (debug_objcopy): Use the original filename
1952 including archive offset for the filename used for -save-temps.
1954 2019-05-07 Li Jia He <helijia@linux.ibm.com>
1956 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
1959 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1961 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
1962 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
1963 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
1964 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
1965 (FRAME_POINTER_REGNUM): Change numbering.
1966 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
1967 (alt_reg_names): Adjust.
1968 (rs6000_conditional_register_usage): Don't mark hard register 64 as
1970 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
1971 (DWARF_FRAME_REGISTERS): Delete.
1972 (DWARF2_FRAME_REG_OUT): Fix whitespace.
1973 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1975 (REG_ALLOC_ORDER): Adjust.
1976 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
1977 (REG_CLASS_CONTENTS): Adjust.
1978 (RETURN_ADDR_RTX): Change comment.
1979 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
1981 (REGISTER_NAMES): Adjust.
1982 (ADDITIONAL_REGISTER_NAMES): Adjust.
1983 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
1985 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1987 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
1989 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
1990 (DWARF_FRAME_REGISTERS): Adjust.
1991 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1993 (REG_ALLOC_ORDER): Adjust.
1994 (enum reg_class): Delete SPR_REGS.
1995 (REG_CLASS_NAMES): Delete SPR_REGS.
1996 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
1997 (REGISTER_NAMES): Adjust.
1998 (ADDITIONAL_REGISTER_NAMES): Adjust.
1999 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
2000 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
2001 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
2002 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
2003 (htm_spr_regno): Delete.
2004 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
2006 (rs6000_dbx_register_number): Adjust.
2008 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2010 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
2012 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2014 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
2015 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
2017 2019-05-06 Jakub Jelinek <jakub@redhat.com>
2019 PR tree-optimization/88709
2020 PR tree-optimization/90271
2021 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
2022 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
2023 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
2025 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
2026 of the store merging group is larger than
2027 PARAM_STORE_MERGING_MAX_SIZE parameter.
2028 (split_group): Add bzero_first argument. If set, always emit first
2029 the first store which must be = {} of the whole area and then for the
2030 rest of the stores consider all zero bytes as paddings.
2031 (imm_store_chain_info::output_merged_store): Check if first store
2032 is = {} of the whole area and if yes, determine which setting of
2033 bzero_first for split_group gives smaller number of stores. Adjust
2034 split_group callers.
2035 (lhs_valid_for_store_merging_p): Allow decls.
2036 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
2038 (pass_store_merging::process_store): Likewise.
2040 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
2043 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2044 handling of V1TImode.
2046 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
2049 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
2050 and enable_frame_pointer ...
2051 * configure.ac: ... here. Update help strings for
2052 --enable-frame-pointer.
2053 * configure: Regenerate.
2054 * config/i386/i386-options.c (ix86_option_override_internal): Remove
2055 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
2056 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
2057 (USE_X86_64_FRAME_POINTER): Ditto.
2059 2019-05-06 Martin Liska <mliska@suse.cz>
2061 * config.gcc: Append to target_gtfiles and fix indentation.
2063 2019-05-06 Richard Biener <rguenther@suse.de>
2065 PR tree-optimization/90358
2066 * tree-vect-stmts.c (get_group_load_store_type): Properly
2067 detect unused upper half of load.
2068 (vectorizable_load): Likewise.
2070 2019-05-06 Richard Biener <rguenther@suse.de>
2072 PR tree-optimization/88828
2073 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
2074 (simplify_vector_constructor): ...here. Handle constants in
2077 2019-05-06 Richard Biener <rguenther@suse.de>
2079 PR tree-optimization/90328
2080 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
2081 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
2082 is valid in the loop nest before using it.
2083 (initialize_data_dependence_relation): Adjust.
2084 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
2085 loop as loop-nest to dr_may_alias_p.
2087 2019-05-06 Richard Biener <rguenther@suse.de>
2089 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
2091 2019-05-06 Richard Biener <rguenther@suse.de>
2093 PR tree-optimization/90316
2094 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
2095 compute target on demand.
2096 (get_continuation_for_phi): Remove code walking stmts to
2097 get to a target virtual operand which could end up being
2100 2019-05-06 Martin Liska <mliska@suse.cz>
2103 * config/i386/i386-options.c (ix86_option_override_internal): Error only
2104 when -mabi is selected to a non-default version.
2106 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
2107 Martin Liska <mliska@suse.cz>
2109 * Makefile.in: Add lto-dump.texi.
2110 * cgraph.h: Add new functions get_visibility_string and
2111 get_symtab_type_string.
2112 * doc/gcc.texi: Include lto-dump section.
2113 * doc/lto-dump.texi: New file.
2114 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
2115 (parse_dump_option): Factor out this function.
2116 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
2117 (parse_dump_option): Export the function.
2118 * symtab.c (symtab_node::get_visibility_string): New function.
2119 (symtab_node::get_symtab_type_string): Likewise.
2121 2019-05-06 Martin Liska <mliska@suse.cz>
2123 * config/i386/i386-builtins.c: New file.
2124 * config/i386/i386-builtins.h: New file.
2125 * config/i386/i386-expand.c: New file.
2126 * config/i386/i386-expand.h: New file.
2127 * config/i386/i386-features.c: New file.
2128 * config/i386/i386-features.h: New file.
2129 * config/i386/i386-options.c: New file.
2130 * config/i386/i386-options.h: New file.
2131 * config.gcc: Add new files into extra_objs and
2133 * config/i386/i386.c: Split content of the file
2134 into newly introduced files.
2135 * config/i386/i386.h: Declare common variables
2137 * config/i386/t-i386: Define dependencies for new files.
2139 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
2142 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
2143 Restrict 'all' variant to 32-bit configurations.
2144 (unaligned_loadhiu): Likewise.
2145 (unaligned_storehi): Likewise.
2146 (unaligned_storesi): Likewise.
2147 (unaligned_loadhis): Disable when compiling for thumb1.
2149 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
2151 PR tree-optimization/90269
2152 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
2155 2019-05-03 Martin Liska <mliska@suse.cz>
2157 * hash-map.h: Add is_empty function.
2158 * hash-set.h: Likewise.
2159 * hash-table.h: Likewise.
2160 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
2161 elements () == 0 (and similar usages).
2162 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
2163 * gimplify.c (gimplify_bind_expr): Likewise.
2164 (gimplify_switch_expr): Likewise.
2165 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
2166 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
2167 * postreload-gcse.c (dump_hash_table): Likewise.
2168 (gcse_after_reload_main): Likewise.
2169 * predict.c (combine_predictions_for_bb): Likewise.
2170 * tree-parloops.c (reduction_phi): Likewise.
2171 (separate_decls_in_region): Likewise.
2172 (transform_to_exit_first_loop): Likewise.
2173 (gen_parallel_loop): Likewise.
2174 (gather_scalar_reductions): Likewise.
2175 (try_create_reduction_list): Likewise.
2176 * var-tracking.c (dump_vars): Likewise.
2177 (emit_notes_for_changes): Likewise.
2178 (vt_emit_notes): Likewise.
2180 2019-05-03 Richard Biener <rguenther@suse.de>
2182 PR tree-optimization/90316
2183 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
2186 2019-05-03 Richard Biener <rguenther@suse.de>
2188 * tree-vect-stmts.c (get_group_load_store_type): Avoid
2189 peeling for gaps by loading only lower halves of vectors
2191 (vectorizable_load): Likewise.
2193 2019-05-03 Richard Biener <rguenther@suse.de>
2196 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
2198 2019-05-03 Richard Biener <rguenther@suse.de>
2201 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
2202 Handle STRING_CST vs DECL or STRING_CST.
2204 2019-05-03 Richard Biener <rguenther@suse.de>
2206 PR tree-optimization/88963
2207 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
2208 vector loads feeding only BIT_FIELD_REFs to component
2209 loads. Rewrite stores fed by CONSTRUCTORs to component
2212 2019-05-03 Jakub Jelinek <jakub@redhat.com>
2214 * opts.h (finish_options): Remove lang_mask argument.
2215 (print_help, help_option_argument): Declare.
2216 * opts.c (print_help): Remove forward declaration, no longer static.
2217 (finish_options): Remove lang_mask argument, don't call print_help
2219 * opts-global.c (decode_options): Adjust finish_option caller, call
2222 PR tree-optimization/90303
2223 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
2224 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
2226 2019-05-03 Richard Biener <rguenther@suse.de>
2228 PR tree-optimization/89698
2229 * gimple-fold.c (canonicalize_constructor_val): Early out
2230 for constants, handle unfolded INTEGER_CSTs as they appear in
2231 C++ virtual table ctors.
2233 2019-05-03 Richard Biener <rguenther@suse.de>
2235 * passes.c (execute_function_todo): Remove dead code.
2237 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
2239 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
2240 the internal register number, for any "real" register.
2242 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
2244 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
2245 correct numbers for TFHAR, TFIAR, TEXASR.
2247 2019-05-02 Richard Biener <rguenther@suse.de>
2249 PR tree-optimization/89653
2250 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
2251 update-address-taken before the pass.
2252 * passes.def (pass_tree_loop_init): Put comment before it.
2254 2019-05-02 Richard Biener <rguenther@suse.de>
2256 PR tree-optimization/89509
2257 * tree-ssa-structalias.c (compute_dependence_clique): Look
2258 at the first subvar when determining whether it is restrict.
2260 2019-05-02 Richard Biener <rguenther@suse.de>
2262 PR tree-optimization/90273
2263 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
2264 useless debug stmts.
2266 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
2268 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
2270 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
2272 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
2273 VEC_COND_EXPR be inserted to emulate a conditional internal function.
2274 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
2275 (vectorizable_reduction): Use the functions above to vectorize in a
2276 fully masked loop codes that don't have a conditional internal
2279 2019-05-02 Martin Liska <mliska@suse.cz>
2281 * cgraphclones.c: Call valid_attribute_p with 1 for
2283 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
2284 it's for target attribute.
2285 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
2286 Add new boolean argument.
2287 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2289 (ix86_valid_target_attribute_tree): Pass target_clone_attr
2290 to ix86_valid_target_attribute_inner_p.
2291 (ix86_valid_target_attribute_p): Pass flags argument to
2292 ix86_valid_target_attribute_inner_p.
2293 (get_builtin_code_for_version): Use 0 as it's target attribute.
2295 2019-05-02 Martin Liska <mliska@suse.cz>
2297 * gcc.c (process_command): Add dummy file only
2299 * opts-global.c (decode_options): Pass lang_mask.
2300 * opts.c (print_help): New function.
2301 (finish_options): Print --help if help_option_argument
2303 (common_handle_option): Factor out content of OPT__help_
2305 * opts.h (finish_options): Add new argument.
2307 2019-05-02 Martin Liska <mliska@suse.cz>
2310 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
2311 With -minline-all-stringops use inline expansion using 4B loop.
2312 * doc/invoke.texi: Document the change of
2313 -minline-all-stringops.
2315 2019-05-01 Jeff Law <law@redhat.com>
2317 PR tree-optimization/88797
2318 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
2319 PHI feeds a conditional on the RHS of an assignment.
2321 2019-04-30 Andrew Waterman <andrew@sifive.com>
2322 Jim Wilson <jimw@sifive.com>
2324 * config/riscv/constraints.md (L): New.
2325 * config/riscv/predicates.md (lui_operand): New.
2326 (sfb_alu_operand): New.
2327 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
2328 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
2329 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
2330 * config/riscv/risc.md (type): Add sfb_alu.
2331 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
2332 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
2333 (branch_zero<mode>): Delete.
2335 (mov<GPR:mode><X:mode>cc): Likewise.
2336 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
2338 2019-04-30 Nathan Sidwell <nathan@acm.org>
2340 * tree.h (MARK_TS_EXP): New.
2342 2019-04-30 Martin Liska <mliska@suse.cz>
2344 * opts.c (enable_warning_as_error): Provide hints
2345 for unknown options.
2347 2019-04-30 Martin Liska <mliska@suse.cz>
2350 * doc/invoke.texi: Add missing dash for gas-locview-support
2351 and gno-as-locview-support.
2353 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2356 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
2357 whitespace at the start of target attribute string.
2359 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2362 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
2363 Define __ARM_FEATURE_ATOMICS.
2365 2019-04-30 Martin Liska <mliska@suse.cz>
2367 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
2368 into built_in_function enum. Remove code for endp == 2 and
2369 use BUILT_IN_* constants.
2370 (gimple_fold_builtin): Call the function with fcode.
2372 2019-04-30 Martin Liska <mliska@suse.cz>
2374 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
2375 DECL_FUNCTION_CODE into ix86_builtins enum before
2376 the switch statement.
2378 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2380 PR tree-optimization/89475
2381 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
2384 2019-04-30 Martin Liska <mliska@suse.cz>
2386 PR translation/90274
2387 * opts.c (print_filtered_help): Wrap string in _(...).
2389 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
2391 PR tree-optimization/90240
2393 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2395 PR tree-optimization/90078
2396 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
2397 checks for infinite_cost overflow.
2399 2019-04-29 Jeff Law <law@redhat.com>
2401 * passes.def: Move -Wrestrict pass after copy propagation.
2403 2019-04-29 Maya Rashish <coypu@sdf.org>
2405 * config.gcc (default_gnu_indirect_function): Default to yes
2406 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
2407 sparc*-*-netbsd*, x86_64-*-netbsd*.
2409 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
2411 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
2412 where cond2 is NE_EXPR.
2413 (is_value_included_in): Update comment.
2415 2019-04-29 Richard Biener <rguenther@suse.de>
2417 PR tree-optimization/90278
2418 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
2419 EH on comparison simplification.
2421 2019-04-29 Jason Merrill <jason@redhat.com>
2423 PR c++/82081 - tail call optimization breaks noexcept
2424 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
2425 nothrow function to a might-throw function into a tail call.
2427 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
2429 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
2430 (DDR_INNER_LOOP): Likewise.
2431 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
2432 (initialize_data_dependence_relation): Likewise.
2433 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
2435 2019-04-29 Jakub Jelinek <jakub@redhat.com>
2437 PR rtl-optimization/90257
2438 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
2442 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
2446 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
2449 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
2452 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
2454 * lra-spills.c (lra_final_code_change): Remove useless move insns.
2456 2019-04-29 Richard Biener <rguenther@suse.de>
2458 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
2461 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
2463 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
2464 varasm.h, and netbsd-protos.h.
2466 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
2469 * config/i386/i386-protos.h (ix86_data_alignment): Change
2470 the second argument type to unsigned int.
2471 * config/i386/i386.c (ix86_data_alignment): Change "align"
2472 argument type to unsigned int.
2474 2019-04-27 Martin Liska <mliska@suse.cz>
2477 * opt-suggestions.c (option_proposer::build_option_suggestions):
2478 When get_valid_option_values returns empty values, add the
2479 misspelling candidate.
2481 2019-04-26 Jim Wilson <jimw@sifive.com>
2483 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
2485 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
2486 Pass orig_mode to riscv_build_integer.
2487 (riscv_split_integer): Pass mode to riscv_move_integer.
2488 (riscv_legitimize_const_move): Likewise.
2489 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
2490 promoted_mode. Replace force_reg call with code to load constant into
2491 promoted reg and then subreg it for the store.
2492 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
2495 2018-04-26 Eugene Sharygin <eush@ispras.ru>
2497 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
2500 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
2502 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
2503 commentary about the encoding of precision.
2505 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
2507 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
2508 * config/i386/t-freebsd64: New file.
2509 * config.gcc: Add the t-freebsd64 for multilib support.
2511 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
2513 * doc/extend.texi (vector_size): Add missing comma after @xref.
2515 2019-04-25 Jakub Jelinek <jakub@redhat.com>
2517 * BASE-VER: Set to 10.0.0.
2519 2019-04-25 Richard Biener <rguenther@suse.de>
2522 * gimplify.c (gimplify_expr): Avoid turning a lvalue
2523 VIEW_CONVERT_EXPR into one operating on an rvalue.
2525 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
2528 * config/i386/i386.c (feature_priority): Moved to file scope.
2529 (processor_features): Likewise.
2530 (processor_model): Likewise.
2531 (_arch_names_table): Likewise.
2532 (arch_names_table): Likewise.
2533 (_feature_list): Removed.
2534 (feature_list): Likewise.
2535 (_isa_names_table): Moved to file scope. Add priority.
2536 (isa_names_table): Likewise.
2537 (get_builtin_code_for_version): Replace feature_list with
2538 isa_names_table. Update error message for P_ZERO priority.
2540 2019-04-25 Richard Biener <rguenther@suse.de>
2542 * tree-pass.h (make_pass_phi_only_cprop): Remove.
2543 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
2545 2019-04-24 Jeff Law <law@redhat.com>
2547 PR tree-optimization/90037
2548 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
2549 * passes.def: Replace all instance of phi-only cprop with the
2550 lattice propagator. Move propagation pass from after erroneous
2551 path isolation to before erroneous path isolation.
2552 * tree-ssa-phionlycprop.c: Remove.
2554 2019-04-24 Richard Biener <rguenther@suse.de>
2557 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
2558 by size and BITS_PER_UNIT on poly-wide-ints.
2560 2019-04-25 Richard Biener <rguenther@suse.de>
2563 * match.pd: Add pattern to simplify view-conversion of an
2566 2019-04-24 Clement Chigot <clement.chigot@atos.net>
2568 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
2569 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
2570 for Go on 32 bit AIX.
2571 * config/rs6000/aix72.h: Likewise.
2573 2019-04-24 Jakub Jelinek <jakub@redhat.com>
2576 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
2577 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
2579 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
2582 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
2583 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
2584 for restored hard frame pointer.
2585 (s390_sched_dependencies_evaluation): Implement new target hook.
2586 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
2588 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
2590 * config/arc/arc-options.def: Fix typos and spelling mistakes.
2591 * config/arc/arc.c (arc_init): Cleanup warning message.
2592 (arc_override_options): Likewise.
2594 2019-04-24 Jakub Jelinek <jakub@redhat.com>
2597 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
2598 a register if both if_true and if_false are MEMs.
2600 PR tree-optimization/90208
2601 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
2602 after labels of new_bb, not before them.
2604 PR tree-optimization/90211
2605 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
2606 which are not SSA_NAMEs.
2608 2018-04-23 Sudakshina Das <sudi.das@arm.com>
2610 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
2612 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
2614 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
2616 PR rtl-optimization/87979
2617 * modulo-sched.c (sms_schedule): Start ii value "mii" should
2620 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
2622 PR rtl-optimization/84032
2623 * modulo-sched.c (ps_insn_find_column): Change condition so that
2624 branch will always be the last insn in a row inside partial
2627 2019-04-23 Richard Biener <rguenther@suse.de>
2630 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
2631 dest_single_pred_p argument.
2632 (remove_forwarder_block): Adjust.
2633 (remove_forwarder_block_with_phi): Likewise.
2635 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2636 Bernd Edlinger <bernd.edlinger@hotmail.de>
2637 Jakub Jelinek <jakub@redhat.com>
2640 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
2641 if used with general-regs-only.
2642 (arm_conditional_register_usage): Don't add non-general regs if
2644 (arm_valid_target_attribute_rec): Handle general-regs-only.
2645 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
2647 (TARGET_HARD_FLOAT_SUB): Define.
2648 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
2649 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
2650 (TARGET_REALLY_IWMMXT2): Likewise.
2651 * config/arm/arm.opt: Add -mgeneral-regs-only.
2652 * doc/extend.texi: Document ARM general-regs-only target.
2653 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
2655 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2657 PR tree-optimization/90078
2658 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
2659 checks for infinite_cost overflow.
2661 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2663 PR tree-optimization/90021
2664 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
2665 and check univariate against it.
2666 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
2667 * tree-data-ref.c (add_other_self_distances): Pass new argument.
2669 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
2673 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
2676 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
2679 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
2681 * lra-spills.c (lra_final_code_change): Remove useless move insns.
2683 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
2685 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
2686 names using operand format, rather than hard-wired.
2687 (speculation_barrier): Likewise.
2689 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
2691 PR tree-optimization/88055
2692 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
2693 (gen_one_condition): Use it if !HONOR_NANS.
2695 2019-04-19 Jakub Jelinek <jakub@redhat.com>
2698 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
2699 assign_temp instead of gen_reg_rtx.
2701 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
2703 PR translation/90118
2704 * config/aarch64/aarch64.c (aarch64_override_options_internal):
2705 Add missing space before %<.
2707 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
2709 PR rtl-optimization/87871
2710 * ira-lives.c (make_object_dead): Don't add conflicts to
2711 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
2713 2019-04-18 Martin Sebor <msebor@redhat.com>
2716 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
2717 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
2718 assuming type size fits in SHWI.
2720 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
2723 * ipa-inline.c (flatten_function): New parameter UPDATE.
2724 (ipa_inline, early_inliner): Use it.
2726 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
2728 * fold-const.c (int_const_binop): Return early on failure.
2730 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
2733 * combine.c (force_int_to_mode): Cast the argument rather than
2734 the result of known_alignment.
2735 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
2737 2019-04-18 Richard Biener <rguenther@suse.de>
2740 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
2742 (remove_forwarder_block): ... here.
2743 (remove_forwarder_block_with_phi): Also move debug stmts here.
2745 2019-04-18 Jakub Jelinek <jakub@redhat.com>
2747 PR translation/79183
2748 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
2749 inform where appropriate.
2751 2019-04-18 Richard Biener <rguenther@suse.de>
2753 * tree.c (get_qualified_type): Put found type variants at the
2754 head of the variant list.
2756 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2758 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
2760 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
2763 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
2764 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
2765 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
2766 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
2767 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
2769 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
2771 * ira-conflicts.c (print_allocno_conflicts): Always print something,
2772 even for allocno's with no conflicts.
2773 (print_conflicts): Print an extra newline.
2775 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2777 * auto-inc-dec.c (attempt_change): Set the alignment of the
2778 temporary memory to that of the original.
2780 2019-04-17 Joao Moreira <jmoreira@suse.de>
2782 * targhooks.c (default_print_patchable_function_entry): Emit
2783 __patchable_function_entries section with writable flags to allow
2784 relocation resolution.
2786 2019-04-17 Jonny Grant <jg@jguk.org>
2788 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
2790 2019-04-17 Jakub Jelinek <jakub@redhat.com>
2793 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
2796 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
2798 * config/arc/arc.c (arc_init): Format diagnostic string.
2799 (arc_override_options): Likewise.
2800 (check_if_valid_regno_const): Likewise.
2801 (arc_reorg): Likewise.
2803 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2806 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
2808 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
2810 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
2811 (*movdi_update1): Use Pmode.
2812 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
2813 (movdi_<mode>_update_stack): Rename to ...
2814 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
2816 (*movsi_update1): Use Pmode.
2817 (*movsi_update2): Use Pmode.
2818 (movsi_update): Rename to ...
2819 (movsi_<mode>_update): ... this. Use Pmode.
2820 (movsi_update_stack): Fix condition.
2821 (*movhi_update1): Use Pmode. Fix argument to
2822 avoiding_indexed_address_p.
2823 (*movhi_update2): Ditto.
2824 (*movhi_update3): Ditto.
2825 (*movhi_update4): Ditto.
2826 (*movqi_update1): Ditto.
2827 (*movqi_update2): Ditto.
2828 (*movqi_update3): Ditto.
2829 (*movsf_update1, *movdf_update1): Merge, rename to...
2830 (*mov<mode>_update1): This. Use Pmode. Fix argument to
2831 avoiding_indexed_address_p. Add "size" attribute.
2832 (*movsf_update2, *movdf_update2): Merge, rename to...
2833 (*mov<mode>_update2): This. Ditto.
2834 (*movsf_update3): Use Pmode. Fix argument to
2835 avoiding_indexed_address_p.
2836 (*movsf_update4): Ditto.
2837 (allocate_stack): Simplify condition. Adjust pattern names.
2839 2019-04-17 Jakub Jelinek <jakub@redhat.com>
2842 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
2843 whitespace at the start of target attribute string.
2845 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
2848 * config/rs6000/power9.md: Add store forwarding bypass.
2850 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
2853 * valtrack.c (dead_debug_insert_temp): Reset debug references
2854 to the return value of a call being removed.
2856 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2858 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
2859 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
2860 implement target hook.
2861 (arc_memory_move_cost): New function.
2862 (TARGET_REGISTER_MOVE_COST): Define.
2863 (TARGET_MEMORY_MOVE_COST): Likewise.
2864 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
2865 (MEMORY_MOVE_COST): Likewise.
2867 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2869 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
2870 (sibcall_value_insn): Likewise.
2871 * config/arc/constraints.md (Rs5): Remove.
2873 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2875 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
2876 for last two fake registers.
2877 (arc_conditional_register_usage): Make sure fake frame and arg
2878 pointer regs are in general regs class.
2879 (FRAME_POINTER_MASK): Remove.
2880 (RETURN_ADDR_MASK): Remove.
2881 (arc_must_save_register): Use hard frame regnum.
2882 (frame_restore_reg): Use hard_frame_pointer_rtx.
2883 (arc_save_callee_saves): Likewise.
2884 (arc_restore_callee_saves): Likewise.
2885 (arc_save_callee_enter): Likewise.
2886 (arc_restore_callee_leave): Likewise.
2887 (arc_save_callee_milli): Likewise.
2888 (arc_eh_return_address_location): Likewise.
2889 (arc_check_multi): Use hard frame regnum.
2890 (arc_can_eliminate): Likewise.
2891 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
2892 for register allocator.
2893 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
2894 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
2895 (FRAME_POINTER_REGNUM): Change it to a fake register.
2896 (HARD_FRAME_POINTER_REGNUM): Defined.
2897 (ARG_POINTER_REGNUM): Change it to a new fake register.
2898 (ELIMINABLE_REGS): Update.
2899 (REGISTER_NAMES): Update names.
2900 * config/arc/arc.md (LP_START): Remove.
2902 (shift_si3_loop): Update pattern.
2904 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2906 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
2907 to avoid delay slot scheduling.
2908 (arc_must_save_register): Don't save SP.
2909 * config/arc/arc.md (stack_tie): Remove.
2910 (UNSPEC_ARC_STKTIE): Likewise.
2912 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
2913 Shiva Chen <shiva0217@gmail.com>
2915 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
2916 code gen with large shift amount.
2918 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
2920 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
2923 2019-04-16 Jakub Jelinek <jakub@redhat.com>
2926 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
2927 print -m64/-mx32/-m32 if it is true.
2928 (ix86_debug_options, ix86_function_specific_print): Pass true as
2929 ADD_ABI_P to ix86_target_string.
2930 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
2931 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
2932 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
2934 PR rtl-optimization/90082
2935 * dce.c (can_delete_call): New function.
2936 (deletable_insn_p, mark_insn): Use it.
2938 PR tree-optimization/90090
2939 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
2941 (is_division_by_square): Likewise. Formatting fix.
2943 2019-04-16 Richard Biener <rguenther@suse.de>
2945 PR tree-optimization/56049
2946 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
2947 equality check if alias-set zero will prevail.
2949 2019-04-15 Jeff Law <law@redhat.com>
2951 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
2952 size and alignment as unsigned.
2954 2019-04-15 Richard Biener <rguenther@suse.de>
2957 * tree-loop-distribution.c (destroy_loop): Preserve correct
2960 2019-04-15 Richard Biener <rguenther@suse.de>
2962 PR tree-optimization/90071
2963 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
2964 abnormal operands from def stmts.
2966 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
2968 PR rtl-optimization/89794
2969 * combine.c (count_auto_inc): New function.
2970 (try_combine): Count how many auto_inc expressions there were in the
2971 original instructions. Ensure we have the same number in the new
2972 instructions. Remove the code that tried to ensure auto_inc side
2973 effects on i1 and i0 are not lost.
2975 2019-04-15 Richard Biener <rguenther@suse.de>
2978 * tree.h (auto_var_p): Declare.
2979 * tree.c (auto_var_p): New function, split out from ...
2980 (auto_var_in_fn_p): ... here.
2981 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
2983 (new_var_info): Initialize it.
2984 (set_uids_in_ptset): Also set the shadow variable uid if required.
2985 (ipa_pta_execute): Postprocess points-to solutions assigning
2986 shadow variable uids for locals that may reach their containing
2987 function recursively.
2988 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
2989 assert but instead check whether the points-to solution is
2992 2019-04-15 Martin Jambor <mjambor@suse.cz>
2995 * cgraph.c (clone_of_p): Loop over clone chain for each step in
2998 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
3000 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
3002 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
3003 Kito Cheng <kito.cheng@gmail.com>
3004 Shiva Chen <shiva0217@gmail.com>
3006 * config/nds32/nds32-md-auxiliary.c
3007 (nds32_legitimize_pic_address): Use new PIC pattern.
3008 (nds32_legitimize_tls_address): Use new TLS pattern.
3009 (nds32_output_symrel): New.
3010 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
3011 (nds32_alloc_relax_group_id): Ditto.
3012 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
3013 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
3015 (nds32_group_tls_insn): Ditto.
3016 (nds32_group_float_insns): Ditto.
3017 * config/nds32/nds32.md (tls_le): New.
3020 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
3022 * configure: Add nds32 target for dwarf2 debug_line checking.
3023 * configure.ac: Regenerated.
3025 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
3028 * ipa-devirt.c (skip_in_fields_list_p): New.
3029 (odr_types_equivalent_p): Use it.
3031 2019-04-13 Jakub Jelinek <jakub@redhat.com>
3034 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
3035 instead of strncmp when checking for thumb and arm. Formatting fixes.
3037 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
3039 * doc/install.texi: Document --with-target-system-zlib.
3041 2019-04-12 Martin Sebor <msebor@redhat.com>
3047 * targhooks.c (default_vector_alignment): Avoid assuming
3048 argument fits in SHWI.
3049 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
3051 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
3053 2019-04-12 Jakub Jelinek <jakub@redhat.com>
3055 PR rtl-optimization/89965
3056 * dce.c: Include rtl-iter.h.
3057 (struct check_argument_load_data): New type.
3058 (check_argument_load): New function.
3059 (find_call_stack_args): Check for loads from stack slots still tracked
3060 in sp_bytes and punt if any is found.
3062 * config/mips/loongson-mmiintrin.h: Fix up #error message.
3064 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
3066 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
3067 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
3069 2019-04-12 Martin Liska <mliska@suse.cz>
3072 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
3074 (separate_attrs): Handle multiple 'default's.
3075 (expand_target_clones): Rework error handling code.
3077 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
3080 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
3081 mode of vector rather than mode of destination for move instruction.
3082 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
3083 Use QI inner mode with V16QI vector mode.
3085 2019-04-12 Jakub Jelinek <jakub@redhat.com>
3088 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
3089 "invalid %%t operand" in output_operand_lossage message.
3091 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
3093 * config/s390/predicates.md (permute_pattern_operand): New
3095 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
3096 operand for the permute pattern.
3097 ("*vec_perm<mode>"): New insn definition.
3098 ("bswap<mode>"): Generate the permute pattern operand in the
3099 expander and perform the operand reloads for pre arch13 level
3101 ("*bswap<mode>_emu"): Rename to ...
3102 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
3103 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
3104 Add the USE operand for the permute pattern.
3105 ("*vec_set_bswap_vec<mode>"): Likewise.
3107 2019-04-12 Jakub Jelinek <jakub@redhat.com>
3110 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
3111 and gcc_unreachable if it fails, just call tree_to_uhwi which
3112 verifies that too. Test TREE_CHAIN instead of list_length > 1.
3113 Start warning message with a lower-case letter. Formatting fixes.
3115 PR rtl-optimization/90026
3116 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
3117 successors, look for BARRIERs inside of the whole BB_FOOTER chain
3118 rather than just at the start of it. If e->src BB_FOOTER is not NULL
3119 in cfglayout mode, use emit_barrier_after_bb.
3121 2018-04-11 Steve Ellcey <sellcey@marvell.com>
3123 PR rtl-optimization/87763
3124 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
3127 2019-04-11 Tom de Vries <tdevries@suse.de>
3129 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
3130 max macro using statement expression.
3132 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
3134 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
3135 * xcoffout.c (xcoff_private_rodata_section_name): Define.
3136 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
3137 read_only_private_data_section using xcoff_private_rodata_section_name.
3138 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
3140 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
3143 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
3145 2019-04-11 Jakub Jelinek <jakub@redhat.com>
3147 PR rtl-optimization/89965
3148 * dce.c (sp_based_mem_offset): New function.
3149 (find_call_stack_args): Use sp_based_mem_offset.
3151 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
3153 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
3155 2019-04-11 Richard Biener <rguenther@suse.de>
3157 PR tree-optimization/90020
3158 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
3159 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
3160 * tree-ssa-pre.c (compute_avail): Use it to not put
3161 possibly trapping references after a call that might not
3162 return into EXP_GEN.
3163 * gcse.c (compute_hash_table_work): Do not elide
3164 marking a block containing a call if the call might not
3167 2019-04-11 Richard Biener <rguenther@suse.de>
3169 PR tree-optimization/90018
3170 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
3171 Test both SLP and interleaving variants.
3173 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
3175 * config/s390/8561.md: New file.
3176 * config/s390/driver-native.c (s390_host_detect_local_cpu):
3177 Add arch13 cpu model.
3178 * config/s390/s390-opts.h (enum processor_type): Likewise.
3179 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
3180 (s390_get_unit_mask): Likewise.
3181 (s390_is_fpd): Likewise.
3182 (s390_is_fxd): Likewise.
3183 * config/s390/s390.h (s390_tune_attr): Likewise.
3184 * config/s390/s390.md: Include arch13 pipeline description.
3185 * config/s390/s390.opt: Add arch13.
3187 2018-04-10 Steve Ellcey <sellcey@marvell.com>
3189 PR rtl-optimization/87763
3190 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
3192 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
3194 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
3196 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
3197 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
3198 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
3199 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
3201 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
3203 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
3204 "Although" in -fipa-icf documentation.
3206 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
3207 of using multiple -g options.
3209 2019-04-10 Martin Liska <mliska@suse.cz>
3211 PR gcov-profile/89959
3212 * doc/gcov.texi: Make documentation of -x option
3215 2019-04-10 Richard Biener <rguenther@suse.de>
3217 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
3219 (DR_GROUP_SAME_DR_STMT): Remove.
3220 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
3221 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
3222 replace with assert.
3223 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
3224 (vect_record_grouped_load_vectors): Remove unreachable code.
3226 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
3229 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
3230 obsolete reference to N.
3232 2019-04-10 Jakub Jelinek <jakub@redhat.com>
3235 * expr.c (store_expr): Set properly size on the MEM passed to
3239 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
3240 with strlen in between hostsz-3 and hostsz-1 inclusive when no
3241 translation is needed, and when translation is needed, only append
3242 ... if the string length is hostsz or more bytes long. Avoid using
3245 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
3248 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
3249 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
3251 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
3252 differences directly.
3253 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
3255 2019-04-09 Jakub Jelinek <jakub@redhat.com>
3257 PR translation/90011
3258 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
3260 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
3262 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
3263 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
3264 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
3265 trailing space from -gsplit-dwarf diagnostics.
3267 PR tree-optimization/89998
3268 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
3269 instead of integer_type_node if possible, don't add ranges if return
3270 type is not compatible with int.
3271 * gimple-fold.c (gimple_fold_builtin_sprintf,
3272 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
3275 2019-04-09 Martin Liska <mliska@suse.cz>
3277 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
3278 * doc/install.texi: Document the new config.
3280 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
3282 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
3283 use gimple_expr_type for load and store calls. Skip over the
3284 condition argument in a conditional internal function.
3285 Protect use of TREE_INT_CST_LOW.
3287 2019-04-09 Jakub Jelinek <jakub@redhat.com>
3290 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
3291 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
3292 trailing period from it too.
3294 2019-04-08 wu yuan <wuyuan5@huawei.com>
3296 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
3297 * config/aarch64/aarch64.md : Add "tsv110.md"
3298 * config/aarch64/tsv110.md: New file.
3300 2019-04-08 Richard Biener <rguenther@suse.de>
3302 PR tree-optimization/90006
3303 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
3306 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
3309 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
3311 (fma_root_node): Likewise.
3312 (func_fma_steering): Likewise.
3314 2019-04-08 Jakub Jelinek <jakub@redhat.com>
3316 PR rtl-optimization/89865
3317 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
3319 PR rtl-optimization/89865
3320 * config/i386/i386.md
3321 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
3322 numbers not to clash with the additional operands[4].
3323 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
3324 with extra register copy in the middle.
3326 2019-04-08 Martin Liska <mliska@suse.cz>
3328 PR gcov-profile/89961
3329 * doc/gcov.texi: Document data_file.
3330 * gcov.c (generate_results): Add data_info into JSON output.
3332 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
3334 PR tree-optimization/89725
3335 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
3336 loop's chrec as invariant symbol.
3337 * tree-chrec.h (chrec_contains_symbols): New parameter.
3338 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
3339 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
3340 function of loops not in DDR's loop_nest.
3341 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
3343 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
3346 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
3349 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
3352 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
3353 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
3355 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
3357 * sched-deps.c (sched_macro_fuse_insns): Check return value of
3358 targetm.fixed_condition_code_regs.
3360 2019-04-05 Richard Biener <rguenther@suse.de>
3364 * tree-cfgcleanup.c (remove_forwarder_block): Always move
3365 debug bind stmts but reset them if they are not valid at the
3368 2019-04-05 Martin Liska <mliska@suse.cz>
3370 PR translation/89936
3371 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
3372 order to wrap keywords or arguments.
3373 * collect2.c (main): Likewise.
3374 (scan_prog_file): Likewise.
3375 (scan_libraries): Likewise.
3376 * common/config/riscv/riscv-common.c
3377 (riscv_subset_list::parsing_subset_version): Likewise.
3378 (riscv_subset_list::parse_std_ext): Likewise.
3379 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3381 * config/arm/arm.c (arm_option_override): Likewise.
3382 * config/cris/cris.c (cris_print_operand): Likewise.
3383 * config/darwin-c.c (darwin_pragma_options): Likewise.
3384 (darwin_pragma_unused): Likewise.
3385 (darwin_pragma_ms_struct): Likewise.
3386 * config/ft32/ft32.c (ft32_print_operand): Likewise.
3387 * config/i386/i386.c (print_reg): Likewise.
3388 (ix86_print_operand): Likewise.
3389 * config/i386/xm-djgpp.h: Likewise.
3390 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
3391 * config/m32c/m32c.c (m32c_option_override): Likewise.
3392 * config/msp430/msp430.c (msp430_option_override): Likewise.
3393 * config/nds32/nds32.c (nds32_option_override): Likewise.
3394 * config/nvptx/mkoffload.c (main): Likewise.
3395 * config/rx/rx.c (rx_print_operand): Likewise.
3396 (valid_psw_flag): Likewise.
3397 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
3398 (vms_pragma_nomember_alignment): Likewise.
3399 (vms_pragma_extern_model): Likewise.
3400 * lto-wrapper.c (compile_offload_image): Likewise.
3401 * omp-offload.c (oacc_parse_default_dims): Likewise.
3402 * symtab.c (symtab_node::verify_base): Likewise.
3403 * tlink.c (recompile_files): Likewise.
3404 (start_tweaking): Likewise.
3405 * tree-profile.c (parse_profile_filter): Likewise.
3407 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
3409 PR tree-optimization/89956
3410 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
3411 multiple negates of the same value.
3413 2019-04-04 Martin Sebor <msebor@redhat.com>
3417 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
3418 have the same precision since the function crashes otherwise.
3419 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
3420 has non-zero arguments.
3422 2019-04-04 Martin Sebor <msebor@redhat.com>
3425 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
3426 out if the number of arguments is less than expected.
3428 2019-04-04 Jeff Law <law@redhat.com>
3430 PR rtl-optimization/89399
3431 * ree.c (combine_set_extension): Use single_set rather than
3432 digging into PATTERN for items on the candidate list.
3433 (combine_reaching_defs): Likewise.
3435 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
3437 PR rtl-optimization/46590
3438 * loop-invariant.c (find_defs): Move df_remove_problem and
3439 df_process_deferred_rescans to move_invariants.
3440 Move df_live_add_problem and df_live_set_all_dirty calls
3442 (move_invariants): Likewise.
3443 (move_loop_invariants): Likewise, making the df_live calls
3444 conditional on -O. Remove the problem again if we added it
3447 2019-04-03 qing zhao <qing.zhao@oracle.com>
3449 PR tree-optimization/89730
3450 * ipa-inline.c (can_inline_edge_p): Delete the checking for
3451 -flive-patching=inline-only-static.
3452 (can_inline_edge_by_limits_p): Add the checking for
3453 -flive-patching=inline-only-static and grant always_inline
3454 even when -flive-patching=inline-only-static is specified.
3456 2019-04-03 Jeff Law <law@redhat.com>
3458 PR rtl-optimization/81025
3459 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
3461 2019-04-03 Richard Biener <rguenther@suse.de>
3463 PR tree-optimization/84101
3464 * tree-vect-stmts.c: Include explow.h for hard_function_value,
3465 regs.h for hard_regno_nregs.
3466 (cfun_returns): New helper.
3467 (vect_model_store_cost): When vectorizing a store to a decl
3468 we return and the function ABI returns in a multi-reg location
3469 account for the possible spilling that will happen.
3471 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
3473 * config/s390/s390.c (s390_legitimate_address_p): Reject long
3474 displacement addresses for vector mode operands.
3476 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
3478 * config/arc/arc.c (GMASK_LEN): Define.
3479 (arc_restore_callee_saves): Restore first blink when
3482 2019-04-03 Sudakshina Das <sudi.das@arm.com>
3484 * doc/extend.texi: Add deprecated comment on sign-return-address
3485 function attribute and add mbranch-protection.
3486 * doc/invoke.texi: Add bti to the options for mbranch-protection.
3488 2019-04-03 Richard Biener <rguenther@suse.de>
3491 * lto-wrapper.c (run_gcc): Avoid implicit rules making
3492 the all target phony.
3494 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
3498 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
3499 Return false for variable DImode shifts.
3500 (dimode_scalar_chain::compute_convert_gain): Do not handle
3501 register count operand in variable DImode shifts.
3502 (dimode_scalar_chain::make_vector_copies): Remove support to copy
3503 count argument of a variable shift instruction to a vector register.
3504 (dimode_scalar_chain::convert_reg): Remove support to convert
3505 count argument of a variable shift instruction.
3507 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
3509 PR rtl-optimization/84206
3510 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
3511 iterating over loop headers.
3513 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
3515 PR rtl-optimization/85876
3516 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
3517 beyond the original fence.
3519 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
3521 * config.gcc: Mark spu* targets as deprecated/obsolete.
3523 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3525 * config/s390/s390-builtin-types.def: New builtin function type
3526 definitions. Remove unused types.
3527 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
3528 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
3529 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
3530 overloaded builtins.
3531 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
3532 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
3533 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
3534 (vec_double, vec_signed, vec_unsigned): Define to use the new
3535 overloaded builtins.
3536 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
3539 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3541 * config/s390/s390-builtin-types.def: New builtin function type
3543 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
3544 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
3545 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
3546 (s390_vstrszh, s390_vstrszf): New low-level builtins.
3547 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
3548 constant definitions.
3549 * config/s390/vecintrin.h (vec_search_string_cc)
3550 (vec_search_string_until_zero_cc): New builtin name definitions.
3551 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
3553 ("vec_vstrs<mode>"): New insn definition.
3555 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3557 * config/s390/s390-builtin-types.def: Add new builtin function
3559 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
3560 New overloaded builtins.
3561 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
3563 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
3564 (UNSPEC_VEC_SLDBYTE): ... this.
3565 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
3566 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
3568 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
3569 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
3570 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
3572 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3574 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
3575 New insn definition.
3576 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
3577 * config/s390/vector.md (V_HW_HSD): ... here.
3579 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3581 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
3582 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
3583 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
3584 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
3585 New insn definitions.
3587 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3589 * config/s390/s390-builtin-types.def: Add new builtin function type.
3590 * config/s390/s390-builtins.def: Add overloaded builtin
3591 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
3592 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
3593 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
3594 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
3595 ("eltswap<mode>"): New expander.
3596 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
3599 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3601 * config/s390/s390-builtin-types.def: Add new builtin function types.
3602 * config/s390/s390-builtins.def: Add overloaded builtin
3603 s390_vec_revb. Add low-level builtins for vlbr and vstbr
3605 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
3606 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
3607 ("bswap<mode>"): New expander.
3608 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
3610 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3612 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
3613 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
3614 vector builtin version number in __VEC__.
3616 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3618 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
3620 (SFSI): New mode attribute.
3621 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
3622 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
3624 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
3625 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
3626 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
3627 ("floatsi<mode>2"): Add wcefb instruction.
3629 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3631 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
3632 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
3634 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
3635 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
3636 support 32 bit fp-int conversions. Rename to ...
3637 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
3638 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
3639 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
3640 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
3643 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3645 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
3646 if-then-else constructs if we can use the select instruction.
3647 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
3649 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3651 * config/s390/s390.md ("*popcountdi_arch13_cc")
3652 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
3654 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
3655 Append _z196 to make it ...
3656 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
3657 ("popcounthi2_z196"): ... this.
3658 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
3659 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
3661 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3663 * config/s390/s390.c (s390_canonicalize_comparison): Convert
3664 certain compares for arch13 in order to make use of the condition
3665 code result produced by the new instructions.
3666 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
3667 nxrk, and nxgrk instruction patterns.
3668 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
3669 (inv_no): Add new code iterator together with some attributes.
3670 ("*andc_split_<mode>"): Disable splitter for arch13.
3671 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
3672 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
3673 ("*<ANDOR:bitops_name>c<GPR:mode>")
3674 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
3675 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
3676 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
3677 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
3679 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3681 * common/config/s390/s390-common.c (processor_flags_table): New
3683 * config.gcc: Support arch13 with the --with-arch= configure flag.
3684 * config/s390/driver-native.c (s390_host_detect_local_cpu):
3685 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
3686 * config/s390/s390.c (s390_get_sched_attrmask)
3687 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
3688 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
3689 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
3690 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
3691 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
3693 * config/s390/s390.opt: Support arch13 as processor type in
3694 command line options.
3696 2019-04-02 Martin Liska <mliska@suse.cz>
3698 PR translation/89912
3699 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
3700 Fix param description of graphite-max-arrays-per-scop.
3702 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
3704 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
3705 (ASAN_CC1_SPEC): Use it in 64-bit mode.
3706 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
3708 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
3710 PR rtl-optimization/85412
3711 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
3712 sel_sched_region_1, not after.
3714 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
3716 PR rtl-optimization/86928
3717 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
3718 compute_live if necessary.
3719 (sel_redirect_edge_and_branch): Likewise.
3721 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
3723 PR rtl-optimization/89865
3724 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
3725 register if it is a part of small class.
3727 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
3729 PR rtl-optimization/87273
3730 * sel-sched-ir.c (merge_fences): Remove assert.
3732 2019-04-01 Richard Biener <rguenther@suse.de>
3734 PR tree-optimization/46590
3735 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
3736 (dom_walker::m_reachability): Add in place of...
3737 (dom_walker::m_skip_unreachable_blocks): ...this.
3738 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
3739 Move complex initialization ...
3740 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
3741 lazily and initialize edge flags on each invocation.
3742 (dom_walker::bb_reachable): Use m_reachability.
3744 2019-04-01 Martin Liska <mliska@suse.cz>
3747 * opt-suggestions.c (option_proposer::build_option_suggestions):
3748 Add variant without any argument in order to provide better
3751 2019-04-01 Richard Biener <rguenther@suse.de>
3754 * gimple.c: Include langhooks.h.
3755 (gimple_get_alias_set): Treat enumeral types as the underlying
3758 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
3759 Eric Botcazou <ebotcazou@adacore.com>
3761 PR rtl-optimization/89862
3762 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
3763 that operates on the full registers for WORD_REGISTER_OPERATIONS
3766 2019-03-29 Jim Wilson <jimw@sifive.com>
3768 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
3769 Clear MASK_RVC and then set if C subset supported.
3771 2019-03-29 Jakub Jelinek <jakub@redhat.com>
3774 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
3775 non-addressable complit into its initializer if it is volatile.
3777 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
3779 * opts-common.c (integral_argument): Set errno properly in one case.
3781 2019-03-29 Martin Liska <mliska@suse.cz>
3783 * doc/invoke.texi: Remove -Wchkp from documentation.
3785 2019-03-29 Martin Liska <mliska@suse.cz>
3787 * dbgcnt.c (print_limit_reach): New function.
3790 2019-03-29 Martin Liska <mliska@suse.cz>
3792 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
3793 (dbg_cnt_process_opt): Parse first tokens aas
3794 dbg_cnt_process_single_pair is also using strtok.
3796 2019-03-29 Jakub Jelinek <jakub@redhat.com>
3798 PR rtl-optimization/87485
3799 * function.c (expand_function_end): Move stack_protect_epilogue
3800 before loading of return value into hard register(s).
3802 2019-03-28 Jakub Jelinek <jakub@redhat.com>
3805 * tree-inline.h (struct copy_body_data): Add
3806 dont_remap_vla_if_no_change flag.
3807 * tree-inline.c (remap_type_3, remap_type_2): New functions.
3808 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
3809 and remap_type_2 returns false.
3810 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
3811 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
3812 only from where it is copied to nested contexts.
3814 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
3817 * config/i386/i386.md (RMW operation with LEA peephole):
3818 Use LEAMODE mode attribute instead of SWI mode iterator for
3821 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
3824 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
3825 Also process XEXP (src, 0) of a shift insn.
3827 2019-03-28 David Malcolm <dmalcolm@redhat.com>
3830 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
3831 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
3833 2019-03-28 Jakub Jelinek <jakub@redhat.com>
3835 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
3837 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
3838 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
3839 immediately after first one with df_analyze in between, but rather
3840 process all bbs, queueing ones that need second pass in a worklist,
3841 df_analyze, process queued debug insn changes and if second pass is
3842 needed, process bbs from worklist, df_analyze, process queued debug
3845 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
3846 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
3847 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
3849 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
3852 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
3855 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
3858 * config/i386/i386.c (ix86_function_value_1): Call the newly added
3859 function for 32-bit MS_ABI.
3860 (function_value_ms_32): New function.
3862 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
3864 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
3865 (movdi): Call gen_movdi_symbol_save_scc.
3866 (gen_movdi_symbol_save_scc): New insn and split.
3868 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
3870 PR rtl-optimization/89313
3871 * function.c (matching_constraint_num): New static function.
3872 (match_asm_constraints_1): Use it. Fixup white space and comment.
3873 Don't replace inputs with non-matching constraints which conflict
3874 with early clobber outputs.
3876 2019-03-27 Jeff Law <law@redhat.com>
3879 PR rtl-optimization/87761
3880 PR rtl-optimization/89826
3881 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
3883 (pass_cprop_hardreg::execute): Call df_analyze after adding the
3884 note problem to get REG_DEAD/REG_UNUSED notes updated.
3886 2019-03-27 Richard Biener <rguenther@suse.de>
3888 PR tree-optimization/89463
3889 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
3890 queue edges to remove.
3891 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
3892 dead stmts. Delay edge removal until PHIs are removed to
3893 make debug-stmt creation not confused by seemingly degenerate
3896 2019-03-27 Alan Modra <amodra@gmail.com>
3898 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
3900 * config/rs6000/darwin.h: Likewise.
3901 * config/rs6000/rs6000.c: Likewise.
3903 2019-03-27 Alan Modra <amodra@gmail.com>
3905 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
3906 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
3908 2019-03-26 Andrew Waterman <andrew@sifive.com>
3909 Jim Wilson <jimw@sifive.com>
3911 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
3912 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
3913 (generic_idivdi, generic_fmul_single, generic_fmul_double)
3914 (generic_fdiv, generic_fsqrt): Add check for generic tune.
3915 (generic_alu): Add auipc to type list.
3916 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
3917 (riscv_microarchitecture): Declare.
3918 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
3919 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
3921 (riscv_microarchitecture): New.
3922 (sifive_7_tune_info): New.
3923 (riscv_cpu_info_table): Add microarchitecture value for rocket and
3924 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
3926 (riscv_store_data_bypass_p): New.
3927 (riscv_option_override): Set riscv_microarchitecture from
3928 cpu->microarchitecture.
3929 * config/riscv/riscv.md: Include sifive-7.md.
3932 (auipc<mode>): Change type to auipc.
3933 (restore_stack_nonlocal): New.
3934 * config/riscv/sifive-7.md: New.
3935 * doc/invoke.texi (RISC-V Options): Update mtune docs.
3937 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
3940 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
3941 Also process XEXP (src, 0) of a shift insn.
3943 2019-03-26 Richard Biener <rguenther@suse.de>
3945 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
3946 (copy_debug_stmt): Likewise.
3947 (expand_call_inline): Likewise.
3948 (copy_bb): Avoid redundant lookup & set of gimple_block.
3949 * gimple-low.c (lower_gimple_return): Likewise.
3950 (lower_builtin_setjmp): Likewise.
3952 2019-03-26 Jakub Jelinek <jakub@redhat.com>
3954 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
3955 is constant 0, turn into static const data member initialized to false.
3956 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
3957 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
3959 2019-03-26 Jason Merrill <jason@redhat.com>
3960 Jakub Jelinek <jakub@redhat.com>
3962 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
3964 (mem_alloc_description::release_object_overhead): Fix comment typos.
3965 * hash-table.h (hash_table::~hash_table): Call
3966 release_instance_overhead only if m_entries is non-NULL, otherwise
3967 call unregister_descriptor.
3969 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
3971 PR tree-optimization/81740
3972 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3973 In case of outer loop vectorization, check for backward dependence
3974 at the inner loop if outer loop dependence is reversed.
3976 2019-03-26 Alan Modra <amodra@gmail.com>
3978 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
3979 rs6000_vector_mem init. Correct wI and wJ comment.
3981 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
3983 PR rtl-optimization/88347
3984 PR rtl-optimization/88423
3985 * sched-deps.c (sched_analyze_insn): Take into account that for
3986 tablejumps the barrier appears after a label and a jump_table_data.
3988 2019-03-25 Martin Sebor <msebor@redhat.com>
3991 * c-common.c (check_user_alignment): Rename local. Correct maximum
3992 alignment in diagnostic. Avoid assuming argument fits in SHWI,
3993 convert it to UHWI when it fits.
3995 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
3998 * dwarf2out.c (premark_used_variables): New function.
3999 (prune_unused_types_walk): Do not mark not premarked external
4001 (prune_unused_types): Call premark_used_variables.
4003 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
4005 PR rtl-optimization/89676
4006 * lra-constraints.c (curr_insn_transform): Do match reload for
4007 early clobbers when the match was successful only for different
4010 2019-03-25 Martin Sebor <msebor@redhat.com>
4012 * doc/extend.texi (Common Type Attributes): Document vector_size.
4013 (Common Variable Attributes): Mention size constraint. Correct
4015 (Vector Extensions): Use @dfn when defining bas type. Clarify
4016 base type and size constraints.
4018 2019-03-25 Richard Biener <rguenther@suse.de>
4020 PR tree-optimization/89789
4021 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
4022 changes from non-undefined back to undefined.
4024 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
4026 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
4027 heap string and a gc string, but since this variable is unknown to
4028 ggc the gc string might get reused and corrupted. Fixed by always
4029 using a heap string.
4031 2019-03-25 Richard Biener <rguenther@suse.de>
4033 PR tree-optimization/89779
4034 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
4035 to remove IV defs, delay actual removal.
4036 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
4037 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
4038 very end, properly also reset loop control IV information.
4040 2019-03-25 Richard Biener <rguenther@suse.de>
4042 PR tree-optimization/89802
4043 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
4044 move EH data to folded stmt.
4046 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
4048 * config/s390/s390-builtin-types.def: Remove few unused types and
4049 fix sort order for others.
4051 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
4053 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
4054 expected and found types with -mdebug during builtin matching.
4056 2019-03-25 Richard Biener <rguenther@suse.de>
4059 * fold-const.c (operand_equal_p): Revert last change with
4062 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
4064 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
4065 notes for the result of the __tls_get_addr calls.
4066 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
4068 2019-03-24 Jeff Law <law@redhat.com>
4070 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
4072 PR rtl-optimization/87761
4073 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
4074 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
4076 (pass_cprop_hardreg::execute): Add df note problem and defer insn
4077 rescans. Reprocess blocks as needed, calling df_analyze before
4078 reprocessing. Always call df_analyze before fixing up debug bind
4081 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
4083 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
4086 2019-03-22 Andrew Pinski <apinski@marvell.com>
4088 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
4089 attrribute for uxtw.
4091 2019-03-26 Jeff Law <law@redhat.com>
4093 PR rtl-optimization/87761
4094 * config/mips/mips-protos.h (mips_split_move): Add new argument.
4095 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
4096 (mips_split_move): Accept new INSN argument. Try to forward SRC
4097 into the next instruction.
4098 (mips_split_move_insn): Pass INSN through to mips_split_move.
4100 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
4102 PR rtl-optimization/89676
4103 * lra-constraints.c (curr_insn_transform): Do match reload for
4104 early clobbers even if the match was successful.
4106 2019-03-22 Jakub Jelinek <jakub@redhat.com>
4109 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
4111 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
4113 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
4115 2019-03-22 Jakub Jelinek <jakub@redhat.com>
4117 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
4118 <avx512>_fmsub_<mode>_mask3<round_name>,
4119 <avx512>_fnmadd_<mode>_mask3<round_name>,
4120 <avx512>_fnmsub_<mode>_mask3<round_name>,
4121 avx512f_vmfmadd_<mode>_mask3<round_name>,
4122 avx512f_vmfmsub_<mode>_mask3<round_name>,
4123 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
4124 instead of register_operand and %v instead of v for match_operand 1.
4125 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
4126 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
4127 <round_nimm_predicate> instead of register_operand and %v instead of v
4128 for match_operand 1.
4130 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
4131 <avx512>_fmadd_<mode>_mask3<round_name>,
4132 <avx512>_fmsub_<mode>_mask<round_name>,
4133 <avx512>_fmsub_<mode>_mask3<round_name>,
4134 <avx512>_fnmadd_<mode>_mask<round_name>,
4135 <avx512>_fnmadd_<mode>_mask3<round_name>,
4136 <avx512>_fnmsub_<mode>_mask<round_name>,
4137 <avx512>_fnmsub_<mode>_mask3<round_name>,
4138 <avx512>_fmaddsub_<mode>_mask<round_name>,
4139 <avx512>_fmaddsub_<mode>_mask3<round_name>,
4140 <avx512>_fmsubadd_<mode>_mask<round_name>,
4141 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
4142 <round_nimm_predicate> instead of nonimmediate_operand.
4143 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
4144 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
4145 Use register_operand instead of <round_nimm_predicate> for the
4146 operand that needs to match output.
4147 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
4148 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
4149 Likewise. Formatting fixes.
4152 * config/i386/i386.c (enum ix86_builtins): Remove
4153 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
4154 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
4155 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
4156 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
4157 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
4158 __builtin_ia32_vfmsubss3_mask3): New builtins.
4159 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
4160 avx512f_vmfmadd_<mode>_mask3<round_name>,
4161 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
4162 *avx512f_vmfmsub_<mode>_mask<round_name>,
4163 avx512f_vmfmsub_<mode>_mask3<round_name>,
4164 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
4165 *avx512f_vmfnmadd_<mode>_mask<round_name>,
4166 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
4167 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
4168 *avx512f_vmfnmsub_<mode>_mask<round_name>,
4169 avx512f_vmfnmsub_<mode>_mask3<round_name>,
4170 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
4171 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
4172 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
4173 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
4174 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
4175 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
4176 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
4177 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
4178 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
4179 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
4180 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
4181 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
4182 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
4183 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
4184 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
4185 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
4186 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
4187 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
4188 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
4189 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
4190 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
4191 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
4193 2019-03-21 Martin Sebor <msebor@redhat.com>
4195 PR tree-optimization/89350
4196 * builtins.c (compute_objsize): Also ignore offsets whose upper
4198 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
4199 (builtin_memref::builtin_memref): Initialize new member.
4200 Allow EXPR to be null.
4201 (builtin_memref::extend_offset_range): Replace local with a member.
4202 Avoid assuming pointer offsets are unsigned.
4203 (builtin_memref::set_base_and_offset): Determine base object
4204 before computing offset range.
4205 (builtin_access::builtin_access): Handle memset.
4206 (builtin_access::generic_overlap): Replace local with a member.
4207 (builtin_access::strcat_overlap): Same.
4208 (builtin_access::overlap): Same.
4209 (maybe_diag_overlap): Same.
4210 (maybe_diag_access_bounds): Same.
4211 (wrestrict_dom_walker::check_call): Handle memset.
4212 (check_bounds_or_overlap): Same.
4214 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
4215 Jakub Jelinek <jakub@redhat.com>
4218 * tree.c (fld_type_variant, fld_incomplete_type_of,
4219 fld_process_array_type): Call fld->pset.add and don't call
4220 add_tree_to_fld_list if it returns true.
4221 (free_lang_data_in_type): Similarly with self-recursive call. Purge
4222 non-marked types from TYPE_NEXT_VARIANT list.
4223 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
4225 2019-03-21 Jakub Jelinek <jakub@redhat.com>
4227 * hash-table.h (hash_table): Add Lazy template parameter defaulted
4228 to false, if true, don't alloc_entries during construction, but defer
4229 it to the first method that needs m_entries allocated.
4230 (hash_table::hash_table, hash_table::~hash_table,
4231 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
4232 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
4233 hash_table::clear_slot, hash_table::traverse_noresize,
4234 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
4235 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
4237 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
4238 NO_INSERT instead of find_with_hash.
4239 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
4240 hash_set::m_table): Add Lazy to template params of hash_table.
4241 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
4242 * attribs.c (test_attribute_exclusions): Likewise.
4243 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
4244 hash_set. Add tests for hash_set with Lazy = true.
4246 2019-03-21 Richard Biener <rguenther@suse.de>
4248 PR tree-optimization/89779
4249 * tree.c (tree_nop_conversion): Consolidate and fix defensive
4250 checks with respect to released SSA names now having error_mark_node
4252 * fold-const.c (operand_equal_p): Likewise.
4254 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
4257 * config/s390/s390.c (global_not_special_regno_p): Move to make it
4259 (s390_optimize_register_info): Use global_not_special_regno_p to
4260 check for global regs.
4262 2019-03-20 Jakub Jelinek <jakub@redhat.com>
4265 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
4266 update this_alternative nor this_alternative_set.
4268 2019-03-19 Jim Wilson <jimw@sifive.com>
4271 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
4272 align, size, offset. Use them to handle a BLKmode reference. Update
4274 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
4276 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4278 PR rtl-optimization/89768
4279 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
4281 (unroll_loop_runtime_iterations): Likewise.
4283 2019-03-19 Martin Sebor <msebor@redhat.com>
4285 PR tree-optimization/89644
4286 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
4287 rather than endptr as an indicator of nul-termination.
4289 PR tree-optimization/89644
4290 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
4291 arrays in determining sequence sizes in strncpy and stpncpy.
4293 2019-03-19 Martin Liska <mliska@suse.cz>
4296 * predict.c (combine_predictions_for_bb): Empty likely_edges and
4297 unlikely_edges if there's an edge that belongs to both these sets.
4299 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
4302 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
4303 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
4304 go via a stack temporary.
4306 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4309 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
4310 instead of gen_rtx_SUBREG.
4311 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
4313 2019-03-19 Richard Biener <rguenther@suse.de>
4316 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
4318 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
4322 * tree.c (free_lang_data_in_decl): Do not free context of C++
4325 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4328 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
4329 subs for the first alternative except when operands[3] is 1.
4332 * gimplify.c (gimplify_asm_expr): For output argument with
4333 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
4336 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
4338 PR rtl-optimization/89753
4339 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
4340 explicit unrolling factor even more robust.
4342 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4345 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
4346 compensation use x2 += 1 instead of x2 -= -1 and when honoring
4347 signed zeros, do another copysign after the compensation.
4349 2019-03-18 Martin Sebor <msebor@redhat.com>
4351 PR tree-optimization/89720
4352 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
4353 more conservatively, the same as anti-range.
4355 2019-03-18 Richard Biener <rguenther@suse.de>
4358 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
4359 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
4360 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
4361 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
4363 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
4365 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
4366 Extend queue to 1024 entries.
4367 Add "consumed" field.
4368 (gomp_print_output): Remove print_index parameter.
4369 Add final parameter.
4370 Change limit to unsigned.
4371 Use consumed field to implement circular buffer.
4372 Detect interrupted print in final pass.
4373 Flush output at the end.
4374 (run): Update gomp_print_output usage.
4375 (main): Initialize kernargs->output_data.consumed.
4377 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
4379 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
4380 calculation of the minimum number of scalar iterations for
4381 fully-predicated loops.
4383 2019-03-18 Martin Jambor <mjambor@suse.cz>
4385 PR tree-optimization/89546
4386 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
4387 any propagation to its children took place.
4389 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
4392 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
4393 parameter, and make use of it.
4394 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
4396 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4398 * config/arc/arc.opt (mcode-density-frame): Get the inital value
4399 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
4400 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
4401 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
4402 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
4403 match what the ops is doing.
4404 (push_multi_fp_blink): Likewise.
4405 * config/arc/arc.c (arc_override_options): Enable enter/leave when
4406 compiling for size and elf target.
4407 (arc_save_callee_enter): Adjust note to match what enter/leave
4410 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4412 * config/arc/arc.md (tst_movb): Fix constraint.
4414 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4416 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
4418 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4420 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
4421 * config/arc/arc.c (arc_conditional_register_usage): Remove all
4422 reg_alloc_order references.
4423 (size_alloc_order): Define.
4424 (arc_adjust_reg_alloc_order): New function.
4425 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
4427 (ADJUST_REG_ALLOC_ORDER): Define.
4428 (HONOR_REG_ALLOC_ORDER): Likewise.
4430 2019-03-18 Richard Biener <rguenther@suse.de>
4433 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
4434 loads and stores a bit more.
4436 2019-03-18 Richard Biener <rguenther@suse.de>
4439 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
4440 load pessimization to stores as well.
4442 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
4445 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
4446 successor, use NULL as its av set.
4448 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
4450 PR rtl-optimization/89721
4451 * lra-constraints (invariant_p): Return false if side_effects_p holds.
4453 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
4456 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4457 When handling vec_extract, use modular arithmetic to allow
4458 constant selectors greater than vector length.
4459 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
4460 V1TImode vectors to have constant selector values greater than 0.
4461 Use modular arithmetic to compute vector index.
4462 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
4463 index for in-memory vectors. Correct code generation for
4464 in-register vectors.
4465 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
4468 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
4472 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
4475 2019-03-15 Jakub Jelinek <jakub@redhat.com>
4478 * tree.c (inchash::add_expr): Strip any location wrappers.
4479 * fold-const.c (operand_equal_p): Move stripping of location wrapper
4480 after hash verification.
4483 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
4484 SIGN_EXTEND and ZERO_EXTEND.
4486 2019-03-14 Jason Merrill <jason@redhat.com>
4487 Jakub Jelinek <jakub@redhat.com>
4489 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
4490 than if is_empty (*slot).
4491 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
4492 existing elt and for elt removal.
4493 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
4494 of already removed elt.
4496 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
4499 * config/i386/i386.c (remove_partial_avx_dependency): Handle
4502 2019-03-14 Martin Liska <mliska@suse.cz>
4505 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
4507 2019-03-14 Richard Biener <rguenther@suse.de>
4510 * config/i386/i386.c (make_resolver_func): Properly set
4511 DECL_CONTEXT on the RESULT_DECL.
4512 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
4514 2019-03-14 Richard Biener <rguenther@suse.de>
4516 * gimple-pretty-print.c: Include cfgloop.h.
4517 (dump_gimple_phi): Adjust.
4518 (dump_gimple_bb_header): Dump loop header for GIMPLE.
4519 (pp_cfg_jump): Adjust.
4520 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
4521 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
4522 (lower_phi_internal_fn): Remove.
4523 (verify_gimple_call): Remove IFN_PHI special-casing.
4524 (dump_function_to_file): Dump IL state.
4525 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
4526 done to deal with PHI nodes being present in non-SSA state.
4528 2019-03-14 Jakub Jelinek <jakub@redhat.com>
4531 * multiple_target.c (create_dispatcher_calls): Change
4532 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
4533 In the node->iterate_referring loop, push *ref rather than ref, call
4534 ref->remove_reference () and always pass 0 to iterate_referring.
4536 PR rtl-optimization/89679
4537 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
4538 would contain a paradoxical SUBREG.
4540 2019-03-14 Richard Biener <rguenther@suse.de>
4542 PR tree-optimization/89710
4543 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
4546 2019-03-14 Martin Liska <mliska@suse.cz>
4548 * coverage.c (coverage_begin_function): Stream also
4550 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
4551 documentation about function declaration location.
4552 * gcov-dump.c (tag_function): Print whole range
4553 of function declaration.
4554 * gcov.c (struct function_info): Add end_column field.
4555 (function_info::function_info): Initialize it.
4556 (output_json_intermediate_file): Output {start,end}_column
4558 (read_graph_file): Read end_column.
4560 2019-03-14 Richard Biener <rguenther@suse.de>
4563 * fold-const.c (operand_equal_p): For INDIRECT_REF check
4564 that the access types are similar.
4566 2019-03-14 Jakub Jelinek <jakub@redhat.com>
4568 PR tree-optimization/89703
4569 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
4570 aren't compatible also with builtin_decl_explicit. Check pure
4571 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
4572 and BUILT_IN_STPNCPY{,_CHK}.
4574 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
4577 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
4578 addr32 prefix to VSIB address for X32.
4579 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
4581 (*avx512pf_gatherpf<mode>df_mask): Likewise.
4582 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
4583 (*avx512pf_scatterpf<mode>df_mask): Likewise.
4584 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
4585 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
4586 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
4587 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
4588 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
4589 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
4590 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
4591 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
4592 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
4593 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
4594 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
4595 (*avx512f_scatterdi<mode>): Likewise.
4597 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
4600 * lra-constraints.c (inherit_in_ebb): Update
4601 potential_reload_hard_regs along with live_hard_regs.
4603 2019-03-13 Jakub Jelinek <jakub@redhat.com>
4606 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
4608 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
4610 2019-03-13 Martin Sebor <msebor@redhat.com>
4612 PR tree-optimization/89662
4613 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
4616 2019-03-13 Richard Biener <rguenther@suse.de>
4619 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
4620 throw FP expressions at tree-affine.
4622 2019-03-14 Richard Biener <rguenther@suse.de>
4624 * tree-pretty-print.c (dump_generic_node): For -gimple properly
4625 dump negative integer constants using _Literal (type) -num.
4627 2019-03-13 Jakub Jelinek <jakub@redhat.com>
4629 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
4630 nonlocal_value member.
4633 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
4634 (ipa_simd_modify_function_body): Handle PHIs.
4636 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4638 * config/s390/s390.c (s390_option_override_internal): Use more
4639 aggressive inlining parameters.
4641 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4643 * config/s390/3906.md: New file.
4644 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
4645 (LONGRUNNING_THRESHOLD): Remove.
4646 (MAX_SCHED_MIX_SCORE): Decrease.
4647 (MAX_SCHED_MIX_DISTANCE): Decrease.
4648 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
4649 (struct s390_sched_state): New struct to hold scheduling state.
4650 (S390_SCHED_STATE_NORMAL): Remove.
4651 (S390_SCHED_STATE_CRACKED): Remove.
4652 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
4653 (s390_get_sched_attrmask): Use new attribute.
4654 (s390_get_unit_mask): Use new units.
4655 (s390_is_fpd): New function.
4656 (s390_is_fxd): New function.
4657 (s390_is_longrunning): New function.
4658 (s390_sched_score): Use new functions.
4659 (s390_sched_reorder): Likewise.
4660 (s390_sched_variable_issue): Rework and use new functions.
4661 (s390_sched_init): Use new functions.
4662 * config/s390/s390.h (s390_tune_attr): Add z14.
4663 * config/s390/s390.md: Add z14.
4665 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4667 * config/s390/2964.md: Update pipeline description.
4668 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
4669 (LONGRUNNING_THRESHOLD): Remove.
4670 (LATENCY_FACTOR): Remove.
4671 (s390_get_unit_mask): Add unit.
4672 (s390_sched_score): Use fxd/fpd.
4673 (s390_sched_variable_issue): Use fxd/fpd.
4675 2019-03-12 Martin Liska <mliska@suse.cz>
4677 * config/i386/i386.c: Reword an error message.
4679 2019-03-12 Martin Jambor <mjambor@suse.cz>
4681 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
4682 terminate with newline.
4684 2019-03-12 Jakub Jelinek <jakub@redhat.com>
4687 * config/s390/s390.md (tabort): Use %wd instead of
4688 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
4689 letters and periods.
4690 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
4691 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
4695 * builtins.c (expand_builtin_int_roundingfn,
4696 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
4697 gcc_unreachable if validate_arglist fails.
4699 2019-03-12 Richard Biener <rguenther@suse.de>
4701 PR tree-optimization/89664
4702 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
4703 free the occurance tree after the early out.
4705 2019-03-11 Jakub Jelinek <jakub@redhat.com>
4709 * vr-values.c (vr_values::update_value_range): If
4710 old_vr->varying_p (), don't update it, make new_vr also VARYING
4713 2019-03-11 Martin Liska <mliska@suse.cz>
4715 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4716 Fix double string quoting.
4718 2019-03-11 Martin Liska <mliska@suse.cz>
4720 * collect-utils.c (collect_wait): Wrap apostrophes
4721 in gcc internal format with %'.
4722 * collect2.c (main): Likewise.
4723 (scan_prog_file): Likewise.
4724 (scan_libraries): Likewise.
4725 * config/i386/i386.c (ix86_expand_call): Likewise.
4726 (ix86_handle_interrupt_attribute): Likewise.
4727 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
4728 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
4729 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
4730 * lto-wrapper.c (find_crtoffloadtable): Likewise.
4731 * symtab.c (symtab_node::verify_base): Likewise.
4732 * tree-cfg.c (verify_gimple_label): Likewise.
4733 * tree.c (verify_type_variant): Likewise.
4735 2019-03-11 Martin Liska <mliska@suse.cz>
4737 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
4738 in a string format message and fix GNU coding style.
4739 (expand_builtin_set_thread_pointer): Likewise.
4740 * common/config/aarch64/aarch64-common.c
4741 (aarch64_rewrite_selected_cpu): Likewise.
4742 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
4743 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
4744 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
4745 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
4746 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
4747 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
4748 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
4749 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
4750 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
4751 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
4753 * common/config/riscv/riscv-common.c
4754 (riscv_subset_list::parsing_subset_version): Likewise.
4755 (riscv_subset_list::parse_std_ext): Likewise.
4756 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
4757 (riscv_subset_list::parse): Likewise.
4758 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
4759 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
4760 (aarch64_override_options_internal): Likewise.
4761 (aarch64_validate_mcpu): Likewise.
4762 (aarch64_validate_march): Likewise.
4763 (aarch64_validate_mtune): Likewise.
4764 (aarch64_override_options): Likewise.
4765 * config/alpha/alpha.c (alpha_option_override): Likewise.
4766 * config/arc/arc.c (arc_init): Likewise.
4767 (parse_mrgf_banked_regs_option): Likewise.
4768 (arc_override_options): Likewise.
4769 (arc_expand_builtin_aligned): Likewise.
4770 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
4771 (arm_expand_builtin): Likewise.
4772 * config/arm/arm.c (arm_option_check_internal): Likewise.
4773 (arm_configure_build_target): Likewise.
4774 (arm_option_override): Likewise.
4775 (arm_options_perform_arch_sanity_checks): Likewise.
4776 (arm_handle_cmse_nonsecure_entry): Likewise.
4777 (arm_handle_cmse_nonsecure_call): Likewise.
4778 (arm_tls_referenced_p): Likewise.
4779 (thumb1_expand_prologue): Likewise.
4780 * config/avr/avr.c (avr_option_override): Likewise.
4781 * config/bfin/bfin.c (bfin_option_override): Likewise.
4782 * config/c6x/c6x.c (c6x_option_override): Likewise.
4783 * config/cr16/cr16.c (cr16_override_options): Likewise.
4784 * config/cris/cris.c (cris_option_override): Likewise.
4785 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
4786 * config/darwin-c.c (macosx_version_as_macro): Likewise.
4787 * config/darwin.c (darwin_override_options): Likewise.
4788 * config/frv/frv.c (frv_expand_builtin): Likewise.
4789 * config/h8300/h8300.c (h8300_option_override): Likewise.
4790 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
4791 (ix86_option_override_internal): Likewise.
4792 (warn_once_call_ms2sysv_xlogues): Likewise.
4793 (ix86_expand_prologue): Likewise.
4794 (split_stack_prologue_scratch_regno): Likewise.
4795 (ix86_warn_parameter_passing_abi): Likewise.
4796 * config/ia64/ia64.c (fix_range): Likewise.
4797 * config/m68k/m68k.c (m68k_option_override): Likewise.
4798 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
4799 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
4800 (mips_set_compression_mode): Likewise.
4801 * config/mmix/mmix.c (mmix_option_override): Likewise.
4802 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
4803 * config/msp430/msp430.c (msp430_option_override): Likewise.
4804 * config/nds32/nds32.c (nds32_option_override): Likewise.
4805 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
4806 (nios2_option_override): Likewise.
4807 (nios2_expand_custom_builtin): Likewise.
4808 * config/nvptx/mkoffload.c (main): Likewise.
4809 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
4810 * config/pa/pa.c (fix_range): Likewise.
4811 (pa_option_override): Likewise.
4812 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
4813 (riscv_option_override): Likewise.
4814 * config/rl78/rl78.c (rl78_option_override): Likewise.
4815 * config/rs6000/aix61.h: Likewise.
4816 * config/rs6000/aix71.h: Likewise.
4817 * config/rs6000/aix72.h: Likewise.
4818 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
4819 * config/rs6000/freebsd64.h: Likewise.
4820 * config/rs6000/linux64.h: Likewise.
4821 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4822 (rs6000_expand_zeroop_builtin): Likewise.
4823 (rs6000_expand_mtfsb_builtin): Likewise.
4824 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
4825 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
4826 (rs6000_invalid_builtin): Likewise.
4827 (rs6000_expand_split_stack_prologue): Likewise.
4828 * config/rs6000/rtems.h: Likewise.
4829 * config/rx/rx.c (valid_psw_flag): Likewise.
4830 (rx_expand_builtin): Likewise.
4831 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
4832 * config/s390/s390.c (s390_expand_builtin): Likewise.
4833 (s390_function_profiler): Likewise.
4834 (s390_option_override_internal): Likewise.
4835 (s390_option_override): Likewise.
4836 * config/sh/sh.c (sh_option_override): Likewise.
4837 (sh_builtin_saveregs): Likewise.
4838 (sh_fix_range): Likewise.
4839 * config/sh/vxworks.h: Likewise.
4840 * config/sparc/sparc.c (sparc_option_override): Likewise.
4841 * config/spu/spu.c (spu_option_override): Likewise.
4842 (fix_range): Likewise.
4843 * config/visium/visium.c (visium_option_override): Likewise.
4844 (visium_handle_interrupt_attr): Likewise.
4845 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
4846 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
4847 (dbg_cnt_process_opt): Likewise.
4848 * dwarf2out.c (output_dwarf_version): Likewise.
4849 * except.c (expand_eh_return): Likewise.
4850 * gcc.c (defined): Likewise.
4851 (driver_handle_option): Likewise.
4852 (process_command): Likewise.
4853 (compare_files): Likewise.
4854 (driver::prepare_infiles): Likewise.
4855 (driver::do_spec_on_infiles): Likewise.
4856 (driver::maybe_run_linker): Likewise.
4857 * omp-offload.c (oacc_parse_default_dims): Likewise.
4858 * opts-global.c (handle_common_deferred_options): Likewise.
4859 * opts.c (parse_sanitizer_options): Likewise.
4860 (common_handle_option): Likewise.
4861 (enable_warning_as_error): Likewise.
4862 * passes.c (enable_disable_pass): Likewise.
4863 * plugin.c (parse_plugin_arg_opt): Likewise.
4864 (default_plugin_dir_name): Likewise.
4865 * targhooks.c (default_expand_builtin_saveregs): Likewise.
4866 (default_pch_valid_p): Likewise.
4867 * toplev.c (init_asm_output): Likewise.
4868 (process_options): Likewise.
4869 (toplev::run_self_tests): Likewise.
4870 * tree-cfg.c (verify_gimple_call): Likewise.
4871 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
4872 (tree_inlinable_function_p): Likewise.
4873 * var-tracking.c (vt_find_locations): Likewise.
4875 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
4877 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
4878 only on the else branch.
4880 2019-03-11 Martin Liska <mliska@suse.cz>
4882 * gcov.c (output_intermediate_json_line): Print function
4884 (output_json_intermediate_file): Add new argument.
4885 * doc/gcov.texi: Document the change.
4887 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
4889 PR rtl-optimization/89588
4890 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
4891 explicit unrolling factor more robust.
4893 2019-03-11 Richard Biener <rguenther@suse.de>
4895 PR tree-optimization/89649
4896 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
4897 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
4898 on the prolog and epilog loops.
4899 (vect_loop_versioning): Return copy of loop.
4900 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
4901 on the non-vectorized version of the loop.
4903 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
4906 * config/i386/sse.md (*vec_extractv2di_0_sse):
4907 Add (=r,x) alternative and corresponding splitter.
4909 2019-03-10 Martin Jambor <mjambor@suse.cz>
4911 PR tree-optimization/85762
4912 PR tree-optimization/87008
4913 PR tree-optimization/85459
4914 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
4915 it points to if there is a type changing MEM_REF. Adjust all callers.
4916 (build_accesses_from_assign): Disable total scalarization if
4917 contains_vce_or_bfcref_p returns true through the new parameter, for
4920 2019-03-09 Jakub Jelinek <jakub@redhat.com>
4923 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
4924 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
4927 * common.opt (fdiagnostics-show-labels,
4928 fdiagnostics-show-line-numbers, fdiagnostics-format=,
4929 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
4930 gas-locview-support, ginline-points, ginternal-reset-location-views):
4931 Terminate description text with a dot.
4932 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
4933 * config/mcore/mcore.opt (m210, m340): Likewise.
4934 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
4935 mnops=): Start description text with a capital letter.
4936 * config/arc/arc.opt (msize-level=): Likewise.
4937 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
4938 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
4940 * config/ft32/ft32.opt (msim): Likewise.
4941 (mft32b, mcompress): Likewise. Terminate description text with a dot.
4942 (mnodiv, mnopm): Terminate description text with a dot.
4943 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
4945 * config/i386/i386.opt (prefer_vector_width, instrument_return):
4947 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
4950 PR rtl-optimization/89634
4951 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
4952 are modified in BB_END (e->src) instruction.
4954 2019-03-08 David Malcolm <dmalcolm@redhat.com>
4957 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
4958 messages more amenable to translation, and improve wording.
4960 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
4962 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
4963 ud- and du-chains between phases.
4965 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
4968 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
4969 instead of POLY_INT_CST.
4971 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4973 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
4976 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
4981 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
4982 (_mm_storeu_si64): Ditto.
4984 2019-03-08 Martin Liska <mliska@suse.cz>
4987 * config/i386/i386.c (ix86_option_override_internal): Disable
4988 jump tables when retpolines are used.
4990 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
4993 * ipa-split.c (execute_split_functions): Do not split
4994 'noinline' or 'section' function.
4996 2019-03-08 Jakub Jelinek <jakub@redhat.com>
4999 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
5000 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
5001 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
5004 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
5005 from diagnostics. Formatting fixes.
5008 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
5009 warn_odr diagnostics.
5012 * lra-constraints.c (process_alt_operands): Avoid one space before
5013 " at the end of line and another after " on another line in a string
5015 * attribs.c (handle_dll_attribute): Likewise.
5016 * config/avr/avr-devices.c (avr_texinfo): Likewise.
5018 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
5019 warning_at or inform messages in G_() if there is no ?:.
5021 PR tree-optimization/89550
5022 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
5023 returned true. Formatting fixes.
5024 (expand_builtin_strnlen): Formatting fixes.
5025 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
5026 if warning_at returned true.
5027 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
5029 2019-03-08 Richard Biener <rguenther@suse.de>
5032 * cfgloop.h (struct loop): Add owned_clique field.
5033 * cfgloopmanip.c (copy_loop_info): Copy it.
5034 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
5036 * tree-inline.c (copy_loops): Remap owned_clique.
5037 * lto-streamer-in.c (input_cfg): Stream owned_clique.
5038 * lto-streamer-out.c (output_cfg): Likewise.
5040 2019-03-08 Jakub Jelinek <jakub@redhat.com>
5043 * config/darwin.c: Include intl.h.
5044 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
5045 composing the message out of two separate parts.
5047 2019-03-07 Jakub Jelinek <jakub@redhat.com>
5050 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
5051 doesn't start with a capital letter and doesn't end with a dot.
5052 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
5053 with a capital letter.
5054 (ix86_mangle_function_version_assembler_name): Likewise.
5055 (ix86_generate_version_dispatcher_body): Likewise.
5056 (fold_builtin_cpu): Likewise.
5057 (get_builtin_code_for_version): Likewise. Remove extraneous space.
5058 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
5059 translators, wrap full type name in %qs.
5061 PR translation/79999
5062 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
5063 depend clause with source (or sink) modifier.
5064 * omp-expand.c (expand_omp_ordered_sink): Likewise.
5067 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
5068 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
5069 (avx512f_load<mode>_mask): New define_expand.
5070 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
5071 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
5072 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
5073 __builtin_ia32_movess_mask): New builtins.
5074 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
5075 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
5076 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
5077 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
5079 2019-03-07 Martin Jambor <mjambor@suse.cz>
5082 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
5083 for extern inline functions.
5085 2019-03-07 Martin Jambor <mjambor@suse.cz>
5088 * cgraph.h (cgraph_node): New inline method former_thunk_p.
5089 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
5090 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
5091 have multiple callees. At the end check if declarations match as
5092 opposed to cgraph_nodes.
5094 2019-03-07 Martin Liska <mliska@suse.cz>
5096 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
5097 which is equivalent to searching for this in clones chain.
5098 * symtab.c (symtab_node::verify_base): Similarly compare ASM
5099 names with a neighbour and special case first node in a chain.
5101 2019-01-25 Jason Merrill <jason@redhat.com>
5103 PR c++/80916 - spurious "static but not defined" warning.
5104 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
5105 for an internal symbol with DECL_EXTERNAL.
5107 2019-04-07 Richard Biener <rguenther@suse.de>
5110 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
5111 * tree-inline.c (copy_loops): Simplify.
5113 2019-03-07 Martin Liska <mliska@suse.cz>
5115 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
5117 2019-03-07 Richard Biener <rguenther@suse.de>
5119 PR tree-optimization/89595
5120 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
5121 stmt iterator as reference, take boolean output parameter to
5122 indicate whether the stmt was removed and thus the iterator
5124 (dom_opt_dom_walker::before_dom_children): Re-iterate over
5125 stmts created by folding.
5127 2019-03-07 Jakub Jelinek <jakub@redhat.com>
5130 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
5133 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
5135 PR rtl-optimization/88845
5136 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
5138 * lra.c (remove_scratches_1): New function.
5139 (remove_scratches): Use it.
5140 (lra_emit_move): Likewise.
5142 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
5144 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
5145 unaligned_access variable.
5146 * config/arc/arc.c (arc_override_options): Set unaligned access
5147 default on for HS CPUs.
5148 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
5150 2019-03-06 Martin Liska <mliska@suse.cz>
5152 PR gcov-profile/89577
5153 * doc/gcov.texi: Prefer to use --coverage.
5154 * doc/sourcebuild.texi: Likewise.
5156 2019-03-02 Jason Merrill <jason@redhat.com>
5158 PR c++/86485 - -Wmaybe-unused with empty class ?:
5159 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
5161 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5164 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
5168 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
5169 exactly one argument.
5171 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5172 Richard Sandiford <richard.sandiford@arm.com>
5174 PR tree-optimization/89570
5175 * match.pd (vec_cond into cond_op simplification): Don't use
5176 get_conditional_internal_fn, use as_internal_fn (cond_op).
5178 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
5181 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
5182 to decide when to split off a non-zero offset from a symbol.
5183 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
5184 in function symbols.
5186 2019-03-05 Richard Biener <rguenther@suse.de>
5188 PR tree-optimization/89594
5189 * tree-if-conv.c (pass_if_conversion::execute): Handle
5190 case where .LOOP_VECTORIZED_FUNCTION was removed.
5192 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5195 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
5196 instead alloca it only when needed with the needed size.
5198 PR tree-optimization/89570
5199 * match.pd (vec_cond into cond_op simplification): Guard with
5200 vectorized_internal_fn_supported_p test and #if GIMPLE.
5202 PR tree-optimization/89566
5203 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
5204 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
5205 Punt if get_user_idx_format succeeds, but idx_format argument is
5206 not provided or doesn't have pointer type, or if idx_args is above
5207 number of provided arguments.
5209 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
5211 PR tree-optimization/89437
5212 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
5214 2019-03-04 Richard Biener <rguenther@suse.de>
5217 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
5220 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
5222 PR tree-optimization/89487
5223 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
5224 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
5225 (distribute_loop): Don't do runtime alias check if there is non-
5226 addressable data reference.
5227 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
5228 is a register variable.
5230 2019-03-02 Jakub Jelinek <jakub@redhat.com>
5233 * config/arm/arm.md (cmpsi2_addneg): Use
5234 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
5235 If operands[2] is 0 or INT_MIN, force use of subs.
5236 (*compare_scc splitter): Use gen_int_mode.
5237 (*negscc): Likewise.
5238 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
5240 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
5241 Monk Chiang <sh.chiang04@gmail.com>
5243 * common/config/riscv/riscv-common.c: Include sstream.
5244 (riscv_subset_list::to_string): New.
5245 (riscv_arch_str): Likewise.
5246 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
5248 * config/riscv/riscv-protos.h (riscv_arch_str): New.
5249 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
5250 (riscv_emit_attribute): New.
5251 (riscv_file_start): Emit attribute if needed.
5252 (riscv_option_override): Init riscv_emit_attribute_p.
5253 * config/riscv/riscv.opt (mriscv-attribute): New option.
5254 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
5256 * doc/install.texi: Document --with-riscv-attribute.
5257 * doc/invoke.texi: Document -mriscv-attribute.
5259 * common/config/riscv/riscv-common.c:
5260 Include config/riscv/riscv-protos.h.
5261 (INCLUDE_STRING): Defined.
5262 (RISCV_DONT_CARE_VERSION): Defined.
5263 (riscv_subset_t): Declare.
5264 (riscv_subset_t::riscv_subset_t): New.
5265 (riscv_subset_list): Declare.
5266 (riscv_subset_list::riscv_subset_list): New.
5267 (riscv_subset_list::~riscv_subset_list): Likewise.
5268 (riscv_subset_list::parsing_subset_version): Likewise.
5269 (riscv_subset_list::parse_std_ext): Likewise.
5270 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
5271 (riscv_subset_list::add): Likewise.
5272 (riscv_subset_list::lookup): Likewise.
5273 (riscv_subset_list::xlen): Likewise.
5274 (riscv_subset_list::parse): Likewise.
5275 (riscv_supported_std_ext): Likewise.
5276 (current_subset_list): Likewise.
5277 (riscv_parse_arch_string): Using riscv_subset_list::parse to
5280 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
5282 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
5283 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
5284 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
5286 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
5288 PR rtl-optimization/85899
5289 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
5290 fallthru edges leading to the exit block.
5292 2019-03-01 Tamar Christina <tamar.christina@arm.com>
5295 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
5296 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
5298 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
5300 PR tree-optimization/89535
5301 * tree-vect-stmts.c (vectorizable_call): Record the vector types
5302 for each operand. Calculate the fallback choice for mask operands
5303 and pass it to vect_get_vec_def_for_operand.
5305 2019-03-01 Richard Biener <rguenther@suse.de>
5308 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
5309 get virtual operands.
5310 (get_expr_operands): Handle CONST_DECL like other decls.
5312 2019-03-01 Jakub Jelinek <jakub@redhat.com>
5315 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
5316 on DECL_P and EXPR_P.
5318 2019-03-01 Richard Biener <rguenther@suse.de>
5321 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
5322 argument, defaulted to zero.
5323 * passes.c (execute_function_todo): Pass down SSA update flags
5324 to cleanup_tree_cfg.
5325 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
5326 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
5328 (cleanup_tree_cfg): Get and pass down SSA update flags.
5330 2019-03-01 Jakub Jelinek <jakub@redhat.com>
5333 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
5334 early_lto_debug argument.
5336 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
5338 PR tree-optimization/89536
5339 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
5340 only whether bit #0 of the value is 0 instead of the entire value.
5342 2019-02-28 Marek Polacek <polacek@redhat.com>
5344 PR c++/87068 - missing diagnostic with fallthrough statement.
5345 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
5346 at the end of a seq, save its location to walk_stmt_info.
5347 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
5350 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
5353 * tree.c (find_atomic_core_type): Move ahead in file.
5354 (check_base_type): Correctly compare alignments of atomic types.
5356 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
5359 * config/i386/i386.c (get_builtin_code_for_version): Identify
5360 Westmere from PCLMUL, instead of AES.
5362 2019-02-28 Jakub Jelinek <jakub@redhat.com>
5365 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
5366 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
5369 2019-02-28 Tamar Christina <tamar.christina@arm.com>
5372 * config/aarch64/aarch64-option-extensions.def: Document it.
5373 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
5376 2019-02-28 Jakub Jelinek <jakub@redhat.com>
5379 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
5380 builtins if they don't have a single scalar floating point argument.
5383 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
5385 PR rtl-optimization/89490
5386 * varasm.c (get_block_for_section): Bail out for mergeable sections.
5387 (default_use_anchors_for_symbol_p, output_object_block): Assert the
5388 block section is not mergeable.
5390 2019-02-27 Jakub Jelinek <jakub@redhat.com>
5393 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
5394 old define_insn to ...
5395 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
5396 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
5397 Rename old define_insn to ...
5398 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
5399 (thumb2_casesi_internal_pic): New define_expand. Rename old
5401 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
5402 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
5403 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
5405 2019-02-27 Richard Biener <rguenther@suse.de>
5408 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
5410 2019-02-27 Richard Biener <rguenther@suse.de>
5412 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
5415 2019-02-27 Richard Biener <rguenther@suse.de>
5418 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
5419 parameter, prefix section name with .gnu.debuglto_ if true.
5420 (dwarf2out_finish): Pass false to output_comdat_type_unit.
5421 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
5423 2019-02-27 Richard Biener <rguenther@suse.de>
5426 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
5427 rather than on use_debug_types, doing what output_die does.
5428 (value_format): Likewise.
5430 2019-02-27 Martin Jambor <mjambor@suse.cz>
5431 Martin Sebor <msebor@redhat.com>
5433 * doc/invoke.texi (Warning Options): Reword description of
5434 -Wno-absolute-value.
5436 2019-02-27 Jakub Jelinek <jakub@redhat.com>
5438 PR tree-optimization/89280
5439 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
5440 builtin_setjmp_setup_bb): New functions.
5441 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
5442 When visiting __builtin_setjmp_setup block, queue in special
5443 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
5444 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
5445 from visited after the loop if they don't have any visited successor
5448 2018-02-26 Steve Ellcey <sellcey@marvell.com>
5450 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
5452 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
5454 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5457 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
5458 with types other than sizetype/ssizetype.
5460 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
5462 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
5463 (enum sparc_processor_type): ...this.
5464 (enum sparc_code_model_type): New enumeration type.
5465 (enum sparc_memory_model_type): Tweak comments.
5466 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
5468 (mcmodel): Use sparc_code_model enumeration and variable.
5469 (sparc_code_model): New enumeration.
5470 (mdebug): Add Undocumented marker.
5471 * config/sparc/sparc.h (enum cmodel): Delete.
5472 (sparc_cmodel): Likewise.
5473 (TARGET_CM_MEDLOW): Adjust to above renaming.
5474 (TARGET_CM_MEDMID): Likewise.
5475 (TARGET_CM_MEDANY): Likewise.
5476 (TARGET_CM_EMBMEDANY): Likewise.
5477 * config/sparc/sparc.c (sparc_cmodel): Delete.
5478 (sparc_option_override): Remove string/value mapping support for the
5479 code model. Move code and memory model support to after the handling
5480 of target flags. Do private machine setup last.
5481 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
5482 (sparc_legitimize_reload_address): Likewise.
5483 (sparc_output_mi_thunk): Likewise.
5484 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
5486 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5488 PR tree-optimization/89500
5489 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
5490 (handle_builtin_strlen): Remove noncst_bound variable. Always
5491 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
5492 cst if the first cst bytes starting at x are known to be non-zero,
5493 even if the string is not zero terminated. Don't try to modify
5494 *si for strnlen. Update strlen_to_stridx only for strlen or if
5495 we can prove strnlen returns the same value as strlen would.
5497 2019-02-26 Martin Liska <mliska@suse.cz>
5499 * alloc-pool.h (struct pool_usage): Remove extra
5501 * bitmap.h (struct bitmap_usage): Likewise.
5502 * ggc-common.c (struct ggc_usage): Likewise.
5503 * mem-stats.h (struct mem_usage): Likewise.
5504 (mem_alloc_description::dump): Print dash lines
5505 here and repeat header at the end of a table report.
5506 It's then more readable.
5507 * tree-phinodes.c (phinodes_print_statistics): Make
5508 horizontal alignment.
5509 * tree-ssanames.c (ssanames_print_statistics): Likewise.
5510 * vec.c (struct vec_usage): Remove extra print_dash_line.
5511 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
5513 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
5515 * doc/extend.texi (__builtin_object_size):
5516 Use @pxref instead of @xref inside parenthesis.
5517 (__builtin_has_attribute): Add missing comma after @xref.
5518 (__builtin_object_size): Ditto.
5519 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
5520 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
5523 2019-02-26 Jeff Law <law@redhat.com>
5525 PR rtl-optimization/87761
5526 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
5527 detect obviously dead insns and delete them.
5529 2019-02-26 Richard Biener <rguenther@suse.de>
5531 PR tree-optimization/89505
5532 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
5533 to handle restrict pointed-to vars with multiple subvars
5536 2019-02-26 Richard Biener <rguenther@suse.de>
5538 PR tree-optimization/89489
5539 * tree-parloops.c (create_loop_fn): Copy over last_clique.
5541 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
5543 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
5544 and move around comment.
5545 <BIT_AND_EXPR>: Likewise.
5546 <BIT_NOT_EXPR>: Add specific handling for boolean types.
5548 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5551 * config/i386/i386.c (remove_partial_avx_dependency): Call
5552 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
5553 after changing possibly many instructions to use that pseudo. Fix up
5554 insertion of v4sf_const0 setter at the start of bb.
5556 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
5559 * doc/extend.texi (Variadic Pointer Args): New section.
5561 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
5562 Martin Sebor <msebor@gmail.com>
5564 * common.opt (Wattribute-alias): Likewise.
5565 * doc/invoke.texi (Option Summary): List general form of
5566 -Wattribute-alias=. List positive form of -Wmissing-attributes.
5567 (-Wmissing-attributes): Invert entry, rewrite and correct default.
5568 Add cross-references.
5569 (-Wattribute-alias): Rewrite and correct default. Mention
5570 considered attributes (same as for -Wmissing-attributes).
5572 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
5574 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
5575 (_mm_cvtpd_ps): Likewise.
5576 (_mm_cvttpd_epi32): Likewise.
5579 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
5580 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
5583 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
5585 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5588 * common/config/aarch64/aarch64-common.c
5589 (struct aarch64_option_extension): Add is_synthetic.
5590 (all_extensions): Use it.
5591 (TARGET_OPTION_INIT_STRUCT): Define hook.
5592 (struct gcc_targetm_common): Moved to end.
5593 (all_extensions_by_on): New.
5594 (opt_ext_cmp, typedef opt_ext): New.
5595 (aarch64_option_init_struct): New.
5596 (aarch64_contains_opt): New.
5597 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
5598 * config/aarch64/aarch64-option-extensions.def
5599 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
5600 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
5601 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
5602 Set is_synthetic to false.
5603 (crypto): Set is_synthetic to true.
5604 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
5607 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5609 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
5610 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
5611 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
5612 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
5613 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
5614 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
5615 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
5616 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
5618 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
5619 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
5620 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
5621 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
5622 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
5623 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
5624 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
5625 vfmlsl_laneq_high_f16): ... To this.
5626 * config/arm/neon.md: Update comments.
5628 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5630 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
5631 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
5632 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
5633 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
5634 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
5635 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
5636 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
5637 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
5639 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
5640 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
5641 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
5642 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
5643 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
5644 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
5645 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
5646 vfmlslq_laneq_high_f16): ... To this.
5648 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
5650 PR rtl-optimization/86096
5651 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
5652 comparing mw_order values.
5654 2019-02-25 Jakub Jelinek <jakub@redhat.com>
5657 * config/arm/arm.md (*subsi3_carryin_const): Use
5658 arm_neg_immediate_operand predicate instead of
5659 arm_not_immediate_operand, "L" constraint instead of "K" and
5660 print it using %n2 instead of %B2.
5661 (*subsi3_carryin_const0): New define_insn.
5662 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
5663 instead of arm_not_operand and "I" constraint instead of "K" and
5664 print it using %n3 instead of %B2. Instead of using match_dup 2 add
5665 another match_operand and in the condition check that it is negation
5667 (*subsi3_carryin_compare_const0): New define_ins.
5668 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
5669 *subsi3_carryin_const.
5670 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
5671 split into *subsi3_carryin_compare_const0 if the highpart is zero.
5674 * config/arm.vfp.md (*negdf2_vfp): Use
5675 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
5676 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
5678 2019-02-24 Jakub Jelinek <jakub@redhat.com>
5680 PR rtl-optimization/89445
5681 * simplify-rtx.c (simplify_ternary_operation): Don't use
5682 simplify_merge_mask on operands that may trap.
5683 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
5684 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
5685 second operand is CONST_VECTOR, check if any element could be zero.
5686 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
5687 their operands can trap.
5689 2019-02-23 Martin Sebor <msebor@redhat.com>
5691 * gimple-ssa-sprintf.c (target_strtol): Rename...
5692 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
5693 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
5694 check for range error.
5696 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
5699 * opts-common.c (prune_options): Also prune joined switches
5700 with Negative and RejectNegative.
5701 * config/i386/i386.opt (march=): Add Negative(march=).
5702 (mtune=): Add Negative(mtune=).
5703 * doc/options.texi: Document Negative used together with Joined
5706 2019-02-22 Martin Sebor <msebor@redhat.com>
5708 * doc/extend.texi (Other Builtins): Add
5709 __builtin_is_constant_evaluated.
5711 2019-02-22 Richard Biener <rguenther@suse.de>
5713 PR tree-optimization/87609
5714 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
5716 2019-02-22 Jeff Law <law@redhat.com>
5718 PR rtl-optimization/87761
5719 * config/mips/mips.md: Add new combiner pattern to recognize
5720 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
5722 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
5725 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
5726 destination register in peepholes generating patterns for ADDS/SUBS.
5727 (add<mode>3_compare0,
5728 *addsi3_compare0_uxtw, add<mode>3_compareC,
5729 add<mode>3_compareV_imm, add<mode>3_compareV,
5730 *adds_<optab><ALLX:mode>_<GPI:mode>,
5731 *subs_<optab><ALLX:mode>_<GPI:mode>,
5732 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
5733 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
5734 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
5735 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
5736 sub<mode>3_compare1): Allow stack pointer for source register.
5737 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
5739 2019-02-22 Martin Sebor <msebor@redhat.com>
5741 PR tree-optimization/88993
5742 PR tree-optimization/88853
5743 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
5745 (sprintf_dom_walker::call_info::is_string_func): New helper.
5746 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
5747 for formatted string functions.
5748 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
5750 2019-02-22 Martin Sebor <msebor@redhat.com>
5753 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
5754 unreachable subexpressions.
5756 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
5757 Hongtao Liu <hongtao.liu@intel.com>
5758 Sunil K Pandey <sunil.k.pandey@intel.com>
5761 * config/i386/i386-passes.def: Add
5762 pass_remove_partial_avx_dependency.
5763 * config/i386/i386-protos.h
5764 (make_pass_remove_partial_avx_dependency): New.
5765 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
5767 (pass_data_remove_partial_avx_dependency): New.
5768 (pass_remove_partial_avx_dependency): Likewise.
5769 (make_pass_remove_partial_avx_dependency): Likewise.
5770 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
5771 (*extendsfdf2): Add avx_partial_xmm_update.
5772 (truncdfsf2): Likewise.
5773 (*float<SWI48:mode><MODEF:mode>2): Likewise.
5774 (SF/DF conversion splitters): Disabled for TARGET_AVX.
5776 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
5779 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
5782 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
5785 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
5786 (PTA_SKYLAKE): Add PTA_AES.
5787 (PTA_GOLDMONT): Likewise.
5789 2019-02-22 Sudakshina Das <sudi.das@arm.com>
5791 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
5792 instruction if enabled.
5793 (aarch64_override_options): Remove reference to return address key.
5795 2019-02-22 Richard Biener <rguenther@suse.de>
5797 PR tree-optimization/89440
5798 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
5799 not necessary assert.
5801 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
5804 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
5805 (oacc_replace_fn_attrib_attr): ... this new function.
5806 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
5807 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
5809 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5811 * config/arm/arm-cpus.in (ares): Rename to...
5812 (neoverse-n1): ... This. Add ares as alias.
5813 * config/arm/arm-tables.opt: Regenerate.
5814 * config/arm/arm-tune.md: Likewise.
5815 * doc/invoke.txt (ARM Options): Document neoverse-n1.
5817 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5819 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
5820 * config/aarch64/aarch64-tune.md: Regenerate.
5821 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
5823 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5825 * config/aarch64/aarch64.c (ares_tunings): Rename to...
5826 (neoversen1_tunings): ... This.
5827 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
5828 (neoverse-n1): New CPU.
5829 * config/aarch64/aarch64-tune.md: Regenerate.
5830 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
5832 2019-02-22 Richard Biener <rguenther@suse.de>
5835 * cfghooks.h (dependence_hash): New typedef.
5836 (struct copy_bb_data): New type.
5837 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
5838 (duplicate_block): Likewise.
5839 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
5840 (copy_bbs): Create and pass down copy_bb_data.
5841 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
5842 (rtl_duplicate_bb): Likewise.
5843 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
5844 remap dependence info.
5846 2019-02-22 Richard Biener <rguenther@suse.de>
5848 PR tree-optimization/87609
5849 * tree-core.h (tree_base): Document special clique values.
5850 * tree-inline.c (remap_dependence_clique): Do not use the
5851 special clique value of one.
5852 (maybe_set_dependence_info): Use clique one.
5853 (clear_dependence_clique): New callback.
5854 (compute_dependence_clique): Clear clique one from all refs
5855 before assigning it (again).
5857 2019-02-21 Martin Sebor <msebor@redhat.com>
5859 * doc/extend.texi (__clear_cache): Correct signature.
5861 2019-02-21 Ian Lance Taylor <iant@golang.org>
5864 * varasm.c (decode_addr_const): Call lookup_constant_def rather
5865 than output_constant_def.
5866 (add_constant_to_table): New static function.
5867 (output_constant_def): Call add_constant_to_table.
5868 (tree_output_constant_def): Likewise.
5870 2019-02-21 Jakub Jelinek <jakub@redhat.com>
5873 * builtins.c (fold_builtin_arith_overflow): If first two args are
5874 INTEGER_CSTs, set intres and ovfres to constants rather than calls
5877 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
5880 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
5881 error for -mindirect-branch/-mfunction-return with incompatible
5884 2019-02-21 Jakub Jelinek <jakub@redhat.com>
5887 * constraints.md (q): Remove.
5888 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
5891 2019-02-21 Martin Jambor <mjambor@suse.cz>
5894 * omp-general.c (omp_extract_for_data): Removed a duplicate call
5895 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
5896 (omp_adjust_for_condition): ...here. Added necessary parameters.
5897 * omp-general.h (omp_adjust_for_condition): Updated declaration.
5898 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
5899 proper values to new parameters of omp_adjust_for_condition.
5901 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5904 * expr.c (expand_assignment): If result is a MEM, use change_address
5905 instead of simplify_gen_subreg.
5907 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5908 David Malcolm <dmalcolm@redhat.com>
5911 * fold-const.c (decode_field_reference): Return NULL_TREE if
5912 lang_hooks.types.type_for_size returns NULL. Check it before
5913 overwriting *exp_. Use return NULL_TREE instead of return 0.
5915 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5919 * toplev.c (do_compile): Double the emin/emax exponents to workaround
5922 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
5925 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
5926 TARGET_SSE in addition to TARGET_SSE_MATH.
5928 (ix86_excess_precision): Ditto.
5929 (ix86_float_exceptions_rounding_supported_p): Ditto.
5930 (use_rsqrt_p): Ditto.
5931 * config/i386/sse.md (rsqrt<mode>2): Ditto.
5933 2019-02-20 David Malcolm <dmalcolm@redhat.com>
5936 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
5937 linenum_arith_t when determining if two adjacent line spans are
5938 close enough to merge.
5939 (diagnostic_show_locus): Use linenum_arith_t when iterating over
5940 lines within each line_span.
5942 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
5945 * lra-constraints.c(uses_hard_regs_p): Fix handling of
5946 paradoxical SUBREGS.
5948 2019-02-20 Li Jia He <helijia@linux.ibm.com>
5951 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
5952 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
5953 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
5956 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
5958 * config/gcn/gcn.c (print_operand): Fix typo.
5960 2019-02-19 Richard Biener <rguenther@suse.de>
5963 * toplev.c (do_compile): Initialize mpfr's exponent range
5964 based on available float modes.
5966 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
5968 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
5969 as long as the epilogue isn't completed.
5971 2019-02-18 Martin Sebor <msebor@redhat.com>
5973 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
5974 __has_cpp_attribute, and __has_include.
5976 2019-02-18 Martin Sebor <msebor@redhat.com>
5978 * doc/invoke.texi (-Wreturn-type): Correct and expand.
5980 2019-02-18 Martin Sebor <msebor@redhat.com>
5983 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
5985 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
5987 2019-02-18 Richard Biener <rguenther@suse.de>
5989 PR tree-optimization/89296
5990 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
5991 of no-warning flag to cases that might emit the bogus warning.
5993 2019-02-18 Jakub Jelinek <jakub@redhat.com>
5996 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
5998 * config/arm/vfp.md (*movdi_vfp): Likewise.
5999 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
6000 "q" constraint for operands[0].
6003 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
6004 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
6005 pattern in a temporary buffer.
6006 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
6007 than 64-operands[2].
6010 * config/s390/s390.c (s390_indirect_branch_attrvalue,
6011 s390_indirect_branch_settings): Define unconditionally.
6012 (s390_set_current_function): Likewise, but guard the whole body except
6013 the s390_indirect_branch_settings call with
6014 #if S390_USE_TARGET_ATTRIBUTE.
6015 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
6017 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
6018 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
6019 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
6020 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
6021 HOST_WIDE_INT_1U instead of 1ULL.
6022 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
6023 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
6024 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
6025 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
6027 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
6030 2019-02-18 Martin Jambor <mjambor@suse.cz>
6032 PR tree-optimization/89209
6033 * tree-sra.c (create_access_replacement): New optional parameter
6034 reg_tree. Use it as a type if non-NULL and access type is not of
6036 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
6037 to create_access_replacement.
6038 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
6039 Check lacc is non-NULL before attempting to re-create it on the RHS.
6041 2019-02-18 Martin Liska <mliska@suse.cz>
6044 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
6046 (symbol_table::free_edge): Recycle m_summary_id.
6047 * cgraph.h (get_summary_id): New.
6048 (symbol_table::release_symbol): Set m_summary_id to -1
6050 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
6051 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
6052 function_summary to fast_function_summary.
6053 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
6054 * ipa-pure-const.c (class funct_state_summary_t):
6055 Switch from function_summary to fast_function_summary.
6056 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
6057 (class ipa_ref_opt_summary_t): Switch from function_summary
6058 to fast_function_summary.
6059 * symbol-summary.h (class function_summary_base): New class
6060 that is created from base of former function_summary.
6061 (function_summary_base::unregister_hooks): New.
6062 (class function_summary): Inherit from function_summary_base.
6063 (class call_summary_base): New class
6064 that is created from base of former call_summary.
6065 (class call_summary): Inherit from call_summary_base.
6066 (struct is_same): New.
6067 (class fast_function_summary): New summary class.
6068 (class fast_call_summary): New summary class.
6069 * vec.h (vec_safe_grow_cleared): New function.
6071 2019-02-18 Martin Liska <mliska@suse.cz>
6073 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
6074 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
6075 * doc/tm.texi: Document new target hook.
6076 * doc/tm.texi.in: Likewise.
6077 * target.def: Add new target macro.
6078 * gcc.c (find_fortran_preinclude_file): Do not search multilib
6081 2019-02-17 Alan Modra <amodra@gmail.com>
6084 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
6085 output reg on add insn.
6086 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
6088 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
6091 * config/i386/sse.md (ssedoublemode): Remove V4HI.
6092 (PMULHRSW): Likewise.
6093 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
6095 (ssse3_pmulhrswv4hi3): New expander.
6097 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
6099 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
6100 MMX. Add isa attribute.
6102 2019-02-16 Jakub Jelinek <jakub@redhat.com>
6104 PR rtl-optimization/66152
6105 * builtins.h (c_readstr): Declare.
6106 * builtins.c (c_readstr): Remove forward declaration. Add
6107 null_terminated_p argument, if false, read all bytes from the
6108 string instead of stopping after '\0'.
6109 * expr.c (string_cst_read_str): New function.
6110 (store_expr): Use string_cst_read_str instead of
6111 builtin_strncpy_read_str. Try to store by pieces the whole
6112 exp_len first, and only if that fails, split it up into
6113 store by pieces followed by clear_storage. Formatting fix.
6115 * config/i386/i386.md (*movqi_internal): Remove static from
6116 buf variable. Use output_asm_insn (buf, operands); return "";
6117 instead of return buf;.
6118 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
6119 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
6120 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
6122 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6124 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
6125 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
6126 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
6127 (CC1_SPEC): Likewise.
6128 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
6130 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6132 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
6133 the base address on 64-bit strict-alignment platforms.
6135 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
6137 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
6139 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
6141 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
6143 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
6145 PR rtl-optimization/88308
6146 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
6147 on copied instruction.
6149 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6151 * final.c (insn_current_reference_address): Replace test on JUMP_P
6152 with test on jump_to_label_p.
6153 * config/visium/visium-passes.def: New file.
6154 * config/visium/t-visium (PASSES_EXTRA): Define.
6155 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
6156 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
6157 (TRAMPOLINE_ALIGNMENT): Define.
6158 * config/visium/visium.c (visium_option_override): Do not register
6159 the machine-specific reorg pass here.
6160 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
6162 (output_branch): Adjust threshold for long branch instruction.
6163 * config/visium/visium.md (cpu): Move around.
6164 (length): Adjust for the GR6.
6166 2019-02-15 Richard Biener <rguenther@suse.de>
6167 Jakub Jelinek <jakub@redhat.com>
6169 PR tree-optimization/89278
6170 * tree-loop-distribution.c: Include tree-eh.h.
6171 (generate_memset_builtin, generate_memcpy_builtin): Call
6172 rewrite_to_non_trapping_overflow on builtin->size before passing it
6173 to force_gimple_operand_gsi.
6175 2019-02-15 Jakub Jelinek <jakub@redhat.com>
6178 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
6180 * opth-gen.awk: Likewise.
6182 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
6184 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
6185 Enable MMX, SSE and SSE2 by default.
6186 * config/i386/i386.c (ix86_option_override_internal): Do not
6187 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
6189 2019-02-14 Jakub Jelinek <jakub@redhat.com>
6191 PR rtl-optimization/89354
6192 * combine.c (make_extraction): Punt if extraction_mode is narrower
6195 2019-02-14 Maya Rashish <coypu@sdf.org>
6197 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
6198 * config/netbsd-d.c: New file.
6199 * config/t-netbsd: Add netbsd-d.o
6201 2018-02-14 Steve Ellcey <sellcey@marvell.com>
6203 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
6204 affects_type_identity to true for aarch64_vector_pcs.
6205 (aarch64_comp_type_attributes): New function.
6206 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
6208 2019-02-14 Tamar Christina <tamar.christina@arm.com>
6211 * config/arm/iterators.md (ANY64): Add V4HF.
6213 2019-02-14 Martin Liska <mliska@suse.cz>
6215 PR rtl-optimization/89242
6216 * dce.c (delete_unmarked_insns): Call free_dominance_info we
6217 process a transformation.
6219 2019-02-14 Jakub Jelinek <jakub@redhat.com>
6221 PR tree-optimization/89314
6222 * fold-const.c (fold_binary_loc): Cast strlen argument to
6223 const char * before dereferencing it. Formatting fixes.
6226 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
6228 2019-02-13 Ian Lance Taylor <iant@golang.org>
6230 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
6231 and set current index for other optimizations.
6233 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
6235 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
6236 nonimmediate_operand as operand 2 predicate.
6237 (vec_set<VF2_512_256:mode>_0): Ditto.
6238 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
6239 (*vec_concatv2si): Remove alternative 2.
6240 (*vec_concatv4si_0): Use vm constraint for alternative 0.
6241 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
6242 (vec_concatv2di): Split alternatives 4,5,6 to ...
6243 (*vec_concatv2di_0) ... new pattern.
6245 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
6248 * config/arm/arm.c (ldm_stm_operation_p) Set
6249 addr_reg_in_reglist correctly for first register.
6250 (load_multiple_sequence): Remove dead base check.
6251 (gen_ldm_seq): Correctly set write_back for Thumb-1.
6253 2019-02-13 Tamar Christina <tamar.christina@arm.com>
6256 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
6257 Expose as @aarch64_pred_mov.
6258 * config/aarch64/aarch64.c (aarch64_classify_address):
6259 Use expand_insn which legitimizes operands.
6261 2019-02-13 Martin Liska <mliska@suse.cz>
6263 * builtins.h (expand_builtin_with_bounds): Remove declaration.
6264 * calls.c (struct arg_data): Remove special_slot, pointer_arg
6265 and pointer_offset fields.
6266 (initialize_argument_information): Remove usage of dead
6268 * cgraph.h (struct cgraph_thunk_info): Remove
6269 add_pointer_bounds_args.
6270 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
6272 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
6274 * config/i386/i386.c (ix86_function_arg_advance): Remove
6276 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
6277 (def_builtin): Remove usage of dead
6279 (ix86_add_new_builtins): Likewise.
6280 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6281 * ipa-icf.c (sem_function::equals_wpa): Likewise.
6282 (sem_function::init): Likewise.
6283 (sem_variable::merge): Likewise.
6284 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6285 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6286 * lto-cgraph.c (lto_output_node): Likewise.
6287 (lto_output_varpool_node): Likewise.
6288 (input_node): Likewise.
6289 (input_varpool_node): Likewise.
6290 * lto-streamer-out.c (lto_output): Likewise.
6291 * tree-inline.c (expand_call_inline): Remove usage of
6293 * tree-inline.h (struct copy_body_data): Likewise.
6294 * varpool.c (varpool_node::dump): Likewise.
6296 2019-02-13 Jakub Jelinek <jakub@redhat.com>
6299 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
6300 into pt->vars_contains_escaped_heap instead of setting
6301 pt->vars_contains_escaped_heap to it.
6304 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
6305 INTVAL (size), compare it to GET_MODE_MASK instead of
6306 1 << GET_MODE_BITSIZE.
6309 * config/i386/predicates.md (x86_64_immediate_operand): Allow
6310 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
6313 2019-02-13 Martin Liska <mliska@suse.cz>
6316 * cfgrtl.c (remove_barriers_from_footer): New function.
6317 (try_redirect_by_replacing_jump): Use it.
6318 (cfg_layout_redirect_edge_and_branch): Likewise.
6320 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
6322 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
6323 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
6324 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
6325 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
6326 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
6327 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
6329 * config/rs6000/rs6000.c (builtin_function_type)
6330 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
6331 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
6332 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
6333 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
6334 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
6336 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
6338 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
6339 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
6341 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
6344 * config/i386/i386.md (*movoi_internal_avx): Revert revision
6345 268678 and revision 268657.
6346 (*movti_internal): Likewise.
6348 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
6351 * config/s390/s390.c (s390_decompose_address): Update comment.
6352 (s390_check_qrst_address): Reject invalid address forms after
6355 2019-02-12 Martin Liska <mliska@suse.cz>
6358 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
6359 we need default values of funct_state for a function that
6362 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
6364 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
6365 the object to pick the size of stores on strict-alignment platforms.
6367 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
6368 (*movdi_insn_sp32): Likewise.
6369 (*movdi_insn_sp64): Likewise.
6371 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
6374 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
6375 types that needs constructiong.
6376 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
6378 2019-02-12 Richard Biener <rguenther@suse.de>
6380 PR tree-optimization/89253
6381 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
6384 2019-02-11 David Malcolm <dmalcolm@redhat.com>
6387 * input.c (selftest::test_line_offset_overflow): New selftest.
6388 (selftest::input_c_tests): Call it.
6390 2019-02-11 Martin Sebor <msebor@redhat.com>
6392 PR tree-optimization/88771
6393 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
6394 when -Wstringop-overflow is set.
6395 (builtin_memref::builtin_memref): Adjust excessive upper bound
6396 only when lower bound is not excessive.
6397 (maybe_diag_overlap): Detect and diagnose excessive bounds via
6398 -Wstringop-ovefflow.
6399 (maybe_diag_offset_bounds): Rename...
6400 (maybe_diag_access_bounds): ...to this.
6401 (check_bounds_or_overlap): Adjust for name change above.
6403 2019-02-11 Martin Sebor <msebor@redhat.com>
6406 * builtins.c (max_object_size): Move from here...
6407 * builtins.h (max_object_size): ...and here...
6408 * tree.c (max_object_size): ...to here...
6409 * tree.h (max_object_size): ...and here.
6411 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
6413 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
6414 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
6415 for correct semantics.
6417 2019-02-11 Alan Modra <amodra@gmail.com>
6419 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
6420 -mlongcall and -mpltseq.
6421 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
6422 (RS/6000 and PowerPC Options <-mpltseq>): Document.
6423 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
6424 * config/rs6000/sysv4.opt (mpltseq): New option.
6425 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
6426 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
6427 support is lacking. Don't allow -mpltseq with -mbss-plt.
6428 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
6429 -mpltseq given for ELFv1.
6430 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
6431 Only use UNSPEC_PLTSEQ for inline PLT calls.
6432 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
6433 use UNSPEC_PLTSEQ for inline PLT calls.
6434 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
6435 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
6436 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
6437 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
6438 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
6439 (pltseq_mtctr_<mode>): Likewise.
6441 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6443 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
6445 * configure: Regenerate.
6447 2019-02-11 Jakub Jelinek <jakub@redhat.com>
6450 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
6453 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
6455 * function.c (assign_parm_setup_block): Use the stored
6456 size, not the passed size, when allocating stack-space,
6457 also for a parameter with alignment larger than
6458 MAX_SUPPORTED_STACK_ALIGNMENT.
6460 2019-02-11 Martin Liska <mliska@suse.cz>
6463 * ipa-cp.c (build_toporder_info): Remove usage of a param.
6464 * ipa-inline.c (inline_small_functions): Likewise.
6465 * ipa-pure-const.c (propagate_pure_const): Likewise.
6466 (propagate_nothrow): Likewise.
6467 * ipa-reference.c (propagate): Likewise.
6468 * ipa-utils.c (struct searchc_env): Remove unused field.
6469 (searchc): Always search across AVAIL_INTERPOSABLE.
6470 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
6471 the only called IPA pure const can properly not propagate
6472 across interposable boundary.
6473 * ipa-utils.h (ipa_reduced_postorder): Remove param.
6475 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
6477 * config/nds32/nds32.md (call_internal, call_value_internal,
6478 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
6480 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
6482 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
6485 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
6487 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
6490 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
6492 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
6494 2019-02-10 Jakub Jelinek <jakub@redhat.com>
6496 PR tree-optimization/89268
6497 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
6498 if preds is non-NULL.
6500 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6503 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
6506 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
6508 * config/nds32/nds32.md (trap): New pattern.
6510 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
6512 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
6515 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
6517 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
6520 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6522 * ipa-visibility.c (localize_node): Also do not localize
6523 LDPR_PREVAILING_DEF_IRONLY_EXP.
6525 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6528 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
6529 instead of type_with_linkage.
6531 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6534 * params.def (uninlined-function-insns, uninlined-function-time,
6535 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
6536 bound so we don't get overflows.
6538 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
6540 * config/rs6000/rs6000-string.c (expand_compare_loop,
6541 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
6544 2019-02-09 Jakub Jelinek <jakub@redhat.com>
6547 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6548 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
6549 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
6551 2019-02-09 Alan Modra <amodra@gmail.com>
6554 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
6555 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
6558 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
6561 * lra-constraints.c (process_alt_operands): Don't increase reject
6562 for memory when offset memory is required.
6564 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
6566 * config/s390/vector.md: Implement vector copysign.
6568 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
6570 * expr.c (expand_constructor): Correct indentations.
6572 2019-02-08 Richard Biener <rguenther@suse.de>
6574 PR tree-optimization/89247
6575 * tree-if-conv.c: Include tree-cfgcleanup.h.
6576 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
6577 (tree_if_conversion): Pass through predicate vector.
6578 (pass_if_conversion::execute): Do CFG cleanup and SSA update
6579 inline, see if any if-converted loops we refrece in
6580 LOOP_VECTORIZED calls vanished and fixup.
6581 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
6583 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
6585 * config/s390/constraints.md (jdd): New constraint.
6587 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
6590 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
6591 upper 16 vector registers without TARGET_AVX512VL.
6592 (*movti_internal): Likewise.
6594 2019-02-08 Jakub Jelinek <jakub@redhat.com>
6596 PR rtl-optimization/89234
6597 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
6598 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
6599 (copy_reg_eh_region_note_backward): Likewise.
6601 2019-02-08 Richard Biener <rguenther@suse.de>
6604 * tree-data-ref.c (initialize_matrix_A): Fail if constant
6606 (analyze_subscript_affine_affine): Handle failure from
6607 initialize_matrix_A.
6609 2019-02-08 Jakub Jelinek <jakub@redhat.com>
6611 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
6614 2019-02-07 David Malcolm <dmalcolm@redhat.com>
6616 PR tree-optimization/86637
6617 PR tree-optimization/89235
6618 * tree-vect-loop.c (optimize_mask_stores): Add an
6619 auto_purge_vect_location sentinel to ensure that vect_location is
6622 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
6623 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
6624 to ensure that vect_location is purged on exit.
6625 (pass_slp_vectorize::execute): Likewise, replacing the manual
6627 * tree-vectorizer.h (class auto_purge_vect_location): New class.
6629 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6631 * config/aarch64/iterators.md (max_opp): New code_attr.
6632 (USMAX): New code iterator.
6633 * config/aarch64/predicates.md (aarch64_smin): New predicate.
6634 (aarch64_smax): Likewise.
6635 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
6636 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
6639 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
6642 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
6643 for TARGET_AVX512VL.
6644 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
6646 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
6648 * config/s390/s390-builtin-types.def: Add new types.
6649 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
6650 (s390_vec_xlw4): Make the memory operand into a const pointer.
6651 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
6653 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
6654 a new vector type with the alignment of the scalar memory operand.
6656 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
6657 Jakub Jelinek <jakub@redhat.com>
6660 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
6661 arm_count_ldrdstrd_insns): New declarations.
6662 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
6664 (valid_operands_ldrd_strd): New function.
6665 (arm_count_ldrdstrd_insns): New function.
6666 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
6667 sets instead of single DImode set and define new insns to match this.
6669 2019-02-07 Tamar Christina <tamar.christina@arm.com>
6671 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
6672 Make it a C initializer.
6674 2019-02-07 Tamar Christina <tamar.christina@arm.com>
6677 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
6679 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6681 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
6682 Use neon_dot<q> for type.
6683 (neon_<sup>dot_lane<vsi2qi>): Likewise.
6685 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6687 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
6688 Use neon_dot<q> for type.
6689 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
6690 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
6692 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
6694 PR rtl-optimization/89225
6695 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
6698 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
6700 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
6701 after restoring registers saved to allocate the frame on Windows.
6703 2019-02-06 Richard Biener <rguenther@suse.de>
6705 PR tree-optimization/89182
6706 * graphite.h (cached_scalar_evolution_in_region): Declare.
6707 * graphite.c (struct seir_cache_key): New.
6708 (struct sese_scev_hash): Likewise.
6709 (seir_cache): New global.
6710 (cached_scalar_evolution_in_region): New function.
6711 (graphite_transform_loops): Allocate and release seir_cache.
6712 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
6713 cached_scalar_evolution_in_region.
6714 * graphite-scop-detection.c (scop_detection::can_represent_loop):
6716 (scop_detection::graphite_can_represent_expr: Use
6717 cached_scalar_evolution_in_region.
6718 (scop_detection::stmt_simple_for_scop_p): Likewise.
6719 (find_params_in_bb): Likewise.
6720 (gather_bbs::before_dom_children): Likewise.
6721 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
6722 (add_loop_constraints): Likewise.
6724 2019-02-06 Jakub Jelinek <jakub@redhat.com>
6727 * fold-const-call.c (fold_const_vec_convert): Pass true as last
6728 operand to new_unary_operation only if both element types are integral
6729 and it isn't a widening conversion. Return NULL_TREE if
6730 new_unary_operation failed.
6732 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
6735 * config/s390/s390.md: Remove load and test FP splitter.
6737 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
6740 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
6741 expand_compare_loop, expand_block_compare_gpr,
6742 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
6743 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
6744 #include "profile-count.h" and "predict.h" for types and functions
6745 needed to work with REG_BR_PROB notes.
6747 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
6750 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
6751 for the long branch case.
6753 2019-02-05 Jakub Jelinek <jakub@redhat.com>
6756 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
6757 can throw, non-call exceptions are enabled and we can't delete
6758 dead exceptions or alter cfg. Set must_clean if
6759 delete_insn_and_edges returns true, don't set it blindly for calls.
6760 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
6762 PR rtl-optimization/89195
6763 * combine.c (make_extraction): For MEMs, don't extract bytes outside
6764 of the original MEM.
6766 2019-02-05 Martin Liska <mliska@suse.cz>
6768 PR gcov-profile/89000
6769 * gcov.c (function_summary): Remove argument.
6770 (file_summary): New function.
6771 (print_usage): Replace tabs with spaces.
6772 (generate_results): Use new function file_summary.
6774 2019-02-05 Jakub Jelinek <jakub@redhat.com>
6777 * optabs.c (prepare_cmp_insn): Pass x and y to
6778 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
6780 2019-02-05 Richard Biener <rguenther@suse.de>
6783 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
6784 (struct bitmap_element): Drop chain_prev so we properly recurse on
6785 the prev member, supporting tree views.
6786 (struct bitmap_head): GTY skip the obstack member.
6788 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
6791 * doc/extend.texi (Vector Extensions): Add an example of using vector
6792 types together with x86 intrinsics.
6794 2019-02-04 Alan Modra <amodra@gmail.com>
6796 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
6797 str[] size to 160, and comment.
6799 2019-02-04 Alan Modra <amodra@gmail.com>
6801 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
6802 (rs6000_pltseq_template): Guard output of TLS markers with
6804 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
6805 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
6806 to use inline PLT sequences.
6807 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
6808 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
6809 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
6811 2019-02-04 Martin Liska <mliska@suse.cz>
6814 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
6815 out when ipa_fn_summaries does not contain entry for callee.
6817 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
6819 * config/sparc/sparc.h: Remove superfluous blank lines.
6820 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
6821 (got_register_rtx): ...this.
6822 (sparc_got): Adjust to above renaming.
6823 (sparc_tls_got): Likewise.
6824 (sparc_delegitimize_address): Likewise.
6825 (sparc_output_mi_thunk): Likewise.
6826 (sparc_init_pic_reg): Likewise.
6827 (save_local_or_in_reg_p): Fix test on the GOT register.
6828 (USE_HIDDEN_LINKONCE): Move around.
6829 (get_pc_thunk_name): Likewise.
6830 (gen_load_pcrel_sym): Likewise.
6831 (load_got_register): Likewise.
6833 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
6835 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
6836 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
6838 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
6840 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
6843 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
6845 * config.gcc (with_nds32_lib, glibc):
6846 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
6847 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
6848 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
6850 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
6853 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
6854 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
6855 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
6856 (*rcpsf2_sse): Ditto.
6857 (*rsqrtsf2_sse): Ditto.
6858 (sse4_1_round<mode<2): Ditto.
6860 2019-02-03 Richard Biener <rguenther@suse.de>
6863 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
6866 2019-02-02 Jakub Jelinek <jakub@redhat.com>
6869 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6870 Punt with warning on aggregate return or argument types. Ignore
6871 type/mode checking for uniform arguments.
6873 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
6875 * combine.c (try_combine): Do not print "Can't combine" messages unless
6876 printing failed combination attempts.
6878 2019-02-01 Martin Jambor <mjambor@suse.cz>
6881 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
6882 segment and global segment variables before making them static.
6884 2019-02-01 Martin Jambor <mjambor@suse.cz>
6886 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
6887 missed optimization dump with dump_enabled_p.
6889 2019-02-01 Richard Biener <rguenther@suse.de>
6892 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
6893 the instantiate cache.
6894 (instantiate_scev_binary): Elide second operand procesing
6895 if equal to the first.
6896 * tree-chrec.c (chrec_contains_symbols): Add visited set.
6897 (chrec_contains_undetermined): Likewise.
6898 (tree_contains_chrecs): Likewise.
6900 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
6902 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
6904 2019-02-01 Jakub Jelinek <jakub@redhat.com>
6906 PR tree-optimization/89143
6907 * wide-int-range.h (wide_int_range_absu): Declare.
6908 * wide-int-range.cc (wide_int_range_absu): New function.
6909 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
6911 PR tree-optimization/88107
6912 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
6913 instead of assertion that eh_region_outermost is non-NULL, if it
6914 is NULL, set *ALL to true and return NULL.
6915 (move_sese_region_to_fn): Adjust caller, if all is set, call
6916 duplicate_eh_regions with NULL region.
6918 2019-02-01 Richard Biener <rguenth@suse.de>
6920 PR rtl-optimization/88593
6921 * mode-switching.c (optimize_mode_switching): Free dominators before
6922 calling cleanup_cfg.
6924 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
6926 PR tree-optimization/88932
6927 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
6929 2019-01-31 Jakub Jelinek <jakub@redhat.com>
6932 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
6933 bogus clang warning.
6935 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
6938 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
6939 alternative to avoid partial SSE register stall for TARGET_AVX.
6940 (truncdfsf2): Ditto.
6941 (sse4_1_round<mode>2): Ditto.
6943 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
6945 PR tree-optimization/89008
6946 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
6947 process anything of the form X * 0.
6949 2019-01-31 Richard Biener <rguenther@suse.de>
6951 PR tree-optimization/89135
6952 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
6953 with abnormal preds.
6955 2019-01-31 Jakub Jelinek <jakub@redhat.com>
6958 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
6959 always_inline callees into no_sanitize_address callers.
6961 2019-01-31 Richard Biener <rguenther@suse.de>
6963 PR rtl-optimization/89115
6964 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
6966 2019-01-30 Martin Sebor <msebor@redhat.com>
6969 * doc/extend.texi (cast to a union): Correct and expand.
6971 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
6973 PR rtl-optimization/87246
6974 * lra-constraints.c (simplify_operand_subreg): Reload memory
6975 in subreg if the address became invalid.
6977 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
6980 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
6981 Disable for little-endian.
6983 2019-01-30 Richard Biener <rguenther@suse.de>
6985 PR rtl-optimization/89115
6986 * opts.c (default_options_optimization): Reduce
6987 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
6988 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
6991 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
6993 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
6994 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
6995 type of vector element when vec_extract is implemented by direct
6998 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
7000 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
7002 2019-01-30 Richard Biener <rguenther@suse.de>
7004 PR tree-optimization/89111
7005 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
7006 canonicalization to appropriately sized access types.
7008 2019-01-30 Jakub Jelinek <jakub@redhat.com>
7011 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
7012 for arguments to functions that are TU-local and shouldn't be
7013 referenced by assembly.
7015 2019-01-30 Ulrich Drepper <drepper@redhat.com>
7017 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
7020 2019-01-29 Martin Sebor <msebor@redhat.com>
7023 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
7025 2019-01-29 Jakub Jelinek <jakub@redhat.com>
7029 * omp-simd-clone.c (simd_clone_clauses_extract)
7030 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
7031 OMP_CLAUSE_ALIGNED_ALIGNMENT.
7033 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
7035 * config.gcc: Force .init_array for ARC.
7037 2019-01-29 Richard Biener <rguenther@suse.de>
7040 * dwarf2out.c (collect_skeleton_dies): New helper.
7041 (copy_decls_for_unworthy_types): Call it.
7042 (build_abbrev_table): Assert we do not try to replace
7043 DW_AT_signature refs with local refs.
7045 2019-01-28 Jakub Jelinek <jakub@redhat.com>
7048 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
7049 for lastprivate/linear IV, push gimplify context around gimplify_assign
7050 and, if it needed any temporaries, pop it into a gimple bind around the
7053 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
7055 * common.opt (-Wattribute-alias): Remove "no-" from name.
7056 Make -Wattribute-alias command line option and
7057 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
7059 2019-01-28 Jakub Jelinek <jakub@redhat.com>
7062 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
7063 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
7065 (bmi2): Add missing @opindex.
7066 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
7067 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
7068 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
7069 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
7070 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
7071 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
7072 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
7073 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
7074 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
7075 xsavec, xsaveopt and xsaves options.
7077 2019-01-28 Richard Biener <rguenther@suse.de>
7080 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
7083 2019-01-28 Richard Biener <rguenther@suse.de>
7085 PR tree-optimization/88739
7086 * tree-cfg.c (verify_types_in_gimple_reference): Verify
7087 BIT_FIELD_REFs only are applied to mode-precision operands
7088 when they are integral.
7089 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
7090 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
7091 BIT_FIELD_REFs of non-mode-precision integral operands.
7093 2019-01-27 Jakub Jelinek <jakub@redhat.com>
7096 * config/i386/sse.md
7097 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
7098 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
7099 first constants in pairs are multiples of 2. Formatting fixes.
7100 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
7101 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
7102 first constants in each quadruple are multiples of 4. Formatting fixes.
7104 2019-01-26 Martin Jambor <mjambor@suse.cz>
7107 * tree-inline.c: Include tree-cfgcleanup.h.
7108 (delete_unreachable_blocks_update_callgraph): Move...
7109 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
7110 ...here, make externally visible, make second argument bool, adjust
7112 * tree-cfgcleanup.c: Include cgraph.h.
7113 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
7115 * ipa-prop.c: Include tree-cfgcleanup.h.
7116 (ipcp_transform_function): Call
7117 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
7119 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
7121 PR rtl-optimization/88846
7122 * ira.c (process_set_for_memref_referenced_p): New.
7123 (memref_referenced_p): Add new param. Use
7124 process_set_for_memref_referenced_p. Add new switch cases.
7125 (memref_used_between_p): Pass new arg to memref_referenced_p.
7127 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
7130 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
7131 argument ABI_BREAK. Set to true if the calculated alignment has
7132 changed in gcc-9. Check bit-fields for their base type alignment.
7133 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
7134 (aarch64_function_arg_boundary): Likewise.
7135 (aarch64_gimplify_va_arg_expr): Likewise.
7137 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
7140 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
7141 instead of accessing TREE_INT_CST_ELT directly.
7143 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
7145 * doc/sourcebuild.texi (Environment attributes): Add fenv and
7146 fenv_exceptions description.
7148 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
7150 PR rtl-optimization/87763
7151 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
7152 Allow SUBREG when matching CC_NZmode compare.
7154 2019-01-25 Richard Biener <rguenther@suse.de>
7156 PR tree-optimization/89049
7157 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
7158 Look at the pattern stmt to determine if the stmt is vectorized.
7160 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
7162 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
7163 (pred_mov<mode>): Handle all-register forms using both a new
7164 alternative and a split.
7166 2019-01-25 Richard Biener <rguenther@suse.de>
7168 PR tree-optimization/86865
7169 * graphite-scop-detection.c (scop_detection::can_represent_loop):
7170 Reject non-do-while loops.
7172 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
7174 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
7175 * config/rs6000/constraints.md (Q constraint): Use REG_P.
7176 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
7177 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
7178 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
7179 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7180 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
7181 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
7182 vlogical_operand, gpc_reg_operand, int_reg_operand,
7183 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
7184 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
7185 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
7186 (save_world_operation, restore_world_operation, lmw_operation,
7187 stmw_operation): Use MEM_P and REG_P.
7188 (tie_operand): Use MEM_P.
7189 (vrsave_operation, crsave_operation): Use REG_P.
7190 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
7191 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
7192 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
7193 (call_operand): Use HARD_REGISTER_P.
7194 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
7196 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
7197 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
7198 quad_aligned_load_p, replace_swapped_aligned_store,
7199 recombine_lvx_pattern, replace_swapped_aligned_load,
7200 recombine_stvx_pattern): Use MEM_P.
7201 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
7202 Use MEM_P and SYMBOL_REF_P.
7203 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
7204 (insn_is_swappable_p): Use REG_P and MEM_P.
7205 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
7206 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
7208 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
7210 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
7212 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
7213 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
7214 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
7215 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
7217 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
7218 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
7219 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
7220 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
7221 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
7222 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
7223 rs6000_split_logical_di): Use CONST_INT_P.
7224 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
7225 REG_P and SYMBOL_REF_P.
7226 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
7227 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
7228 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
7229 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
7230 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
7231 (small_data_operand, print_operand_address): Use CONST_INT_P and
7233 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
7234 (rs6000_init_hard_regno_mode_ok, direct_move_p):
7235 Use HARD_REGISTER_NUM_P.
7236 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
7237 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
7238 SUBREG_P and SYMBOL_REF_P.
7239 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
7240 and HARD_REGISTER_NUM_P.
7241 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
7243 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
7244 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
7246 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
7247 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
7248 find_addr_reg): Use REG_P.
7249 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
7250 (rs6000_emit_le_vsx_move): Use SUBREG_P.
7251 (offsettable_ok_by_alignment, constant_pool_expr_p,
7252 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
7253 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
7254 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
7255 rs6000_assemble_integer, create_TOC_reference,
7256 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
7257 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
7258 (rs6000_split_vec_extract_var): Use reg_or_subregno.
7259 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
7260 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
7261 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7262 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7263 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
7264 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
7265 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
7266 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
7267 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
7268 and cbranch<mode>4): Use CONST_INT_P.
7269 (multiple define_splits): Use REG_P and SUBREG_P.
7270 (define_expands call, call_value): Use MEM_P.
7271 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
7272 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
7273 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
7274 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
7275 and HARD_REGISTER_NUM_P.
7276 (multiple define_splits): Use HARD_REGISTER_NUM_P.
7278 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
7280 PR rtl-optimization/88948
7281 * rtl.h (prepare_copy_insn): New prototype.
7282 * gcse.c (prepare_copy_insn): New function, split out from
7283 process_insert_insn.
7284 (process_insert_insn): Use prepare_copy_insn.
7285 * store-motion.c (replace_store_insn): Use prepare_copy_insn
7286 instead of gen_move_insn.
7288 2019-01-24 Jakub Jelinek <jakub@redhat.com>
7291 * config/i386/i386.c (ix86_pic_register_p): Return true for
7294 PR tree-optimization/88964
7295 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
7296 punt if HONOR_SNANS (chrec).
7299 * tree-nested.c (convert_nonlocal_reference_stmt,
7300 convert_local_reference_stmt, convert_tramp_reference_stmt,
7301 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
7302 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
7305 PR tree-optimization/89027
7306 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
7307 for "omp simd array" variables.
7309 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
7312 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
7313 force the alignment of m_val.
7315 2019-01-24 Richard Biener <rguenther@suse.de>
7318 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
7319 When in "legacy" debug mode make sure to reset self-origins.
7321 2019-01-24 Martin Liska <mliska@suse.cz>
7323 PR gcov-profile/88994
7324 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
7325 result will be always smaller or equal to the original.
7326 * gcov.c (mangle_name): Fix else branch where we should
7327 also copy to PTR and shift the pointer.
7329 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
7331 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
7332 * vr-values.c (find_case_label_ranges): Fix a comment typo.
7334 2019-01-23 Bin Cheng <bin.cheng@arm.com>
7335 Steve Ellcey <sellcey@marvell.com>
7338 * recog.c (address_operand): Return false on wrong mode for address.
7339 (constrain_operands): Check for mode with 'p' constraint.
7341 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
7344 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
7345 Disparage MMX alternative.
7346 (sse2_cvtpd2pi): Ditto.
7347 (sse2_cvttpd2pi): Ditto.
7349 2019-01-23 David Malcolm <dmalcolm@redhat.com>
7352 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
7353 use-after-free of the result of
7354 aarch64_get_extension_string_for_isa_flags.
7356 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7359 * doc/extend.texi: Document break and continue behavior in
7360 statement expressions.
7362 2019-01-23 Richard Biener <rguenther@suse.de>
7364 PR tree-optimization/89008
7365 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
7366 not leave another stray operand.
7368 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7370 * BASE-VER: Bump to 9.0.1.
7372 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
7374 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
7375 thunk that returns by reference, use the type of the return object
7376 of the thunk instead of that of the alias to build the dereference.
7378 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
7380 * config/arc/atomic.md: Add operand to DMB instruction.
7382 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7384 PR tree-optimization/88964
7385 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
7386 build_zero_cst instead of build_int_cst. Return false for loop
7387 invariants which honor signed zeros.
7389 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
7391 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
7393 2019-01-22 Jakub Jelinek <jakub@redhat.com>
7396 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
7397 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
7398 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
7401 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
7402 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
7405 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
7406 Disable for little endian.
7408 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
7411 * config/arm/arm.c (arm_needs_double_word_align): Check
7412 DECL_BIT_FIELD_TYPE.
7414 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
7415 H.J. Lu <hongjiu.lu@intel.com>
7418 * config/i386/i386-builtin.def: Add mask2 to all builtin
7419 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
7421 * config/i386/i386.c (BDESC): Add mask2 to the definition.
7422 (BDESC_FIRST): Likewise.
7423 (define_builtin): Add an argument for mask2. Updated to handle
7424 both ix86_isa_flags and ix86_isa_flags2.
7425 (define_builtin_const): Likewise.
7426 (define_builtin_pure): Likewise.
7427 (define_builtin2): Deleted.
7428 (define_builtin_const2): Likewise.
7429 (builtin_description): Add a member, mask2.
7430 (bdesc_*): Add mask2 to builtin initializations.
7431 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
7432 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
7434 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
7436 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
7439 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
7442 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
7445 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
7446 alignment is dominated by a bitfield with 64-bit aligned base type.
7447 (arm_function_arg): Emit a warning if the alignment has changed since
7448 earlier GCC releases.
7449 (arm_function_arg_boundary): Likewise.
7450 (arm_setup_incoming_varargs): Likewise.
7452 2019-01-22 Richard Biener <rguenther@suse.de>
7454 PR tree-optimization/88862
7455 * graphite-scop-detection.c
7456 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
7458 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
7460 * doc/extend.tex (AMD GCN Function Attributes): New section.
7461 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
7462 * doc/invoke.texi (AMD GCN Options): New section.
7463 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
7465 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
7467 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
7468 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
7470 2019-01-22 Jakub Jelinek <jakub@redhat.com>
7472 PR tree-optimization/88044
7473 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
7474 is false in the first iteration, but !every_iteration, return false
7475 instead of true with niter->niter zero.
7477 PR rtl-optimization/88904
7478 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
7479 any nonequal registers before processing BB_END (b).
7482 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
7484 (expand_binop_directly, expand_doubleword_clz,
7485 expand_doubleword_popcount, expand_ctz, expand_ffs,
7486 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
7488 PR rtl-optimization/49429
7490 PR rtl-optimization/86334
7492 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
7493 addressable from here...
7494 (emit_block_op_via_libcall): ... to here.
7496 2019-01-22 Richard Biener <rguenther@suse.de>
7498 * tree-vect-loop.c (vect_analyze_loop_operations): Use
7499 auto_vec for cost vector to fix memleak.
7500 (vectorize_fold_left_reduction): Properly gather SLP defs.
7501 (vectorizable_comparison): Do not swap operands to properly
7504 2019-01-22 Alan Modra <amodra@gmail.com>
7507 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
7508 stays a reg. Allow a const_int.
7509 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
7510 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
7511 (IS_NOMARK_TLSGETADDR): Define.
7512 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
7513 (rs6000_output_tlsargs): New function.
7514 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
7515 __tls_get_addr call takes an arg.
7516 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
7517 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
7519 (call_value_nonlocal_sysv): ..or here, delete split.
7520 (tls_gdld_nomark): Delete.
7521 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
7522 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
7523 (call_value_nonlocal_sysv): Likewise.
7524 (call_value_nonlocal_sysv_secure): Likewise.
7525 (call_value_nonlocal_aix): Likewise.
7526 (call_value_indirect_aix): Likewise.
7527 (call_value_indirect_elfv2): Likewise.
7528 (call_value_local32, call_value_local64): Disable for no-mark tls.
7529 (call_value_local_aix): Likewise.
7531 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
7534 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
7535 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
7537 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
7539 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
7540 string contents as hash_map keys.
7542 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7545 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
7546 for rvalue context. Handle rvalues correctly. Use min_align_of_type
7547 instead of TYPE_ALIGN.
7548 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
7549 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
7550 pointer from TYPE_STUB_DECL.
7552 2019-01-21 Richard Biener <rguenther@suse.de>
7554 PR tree-optimization/88934
7555 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
7556 at the possibly non-constant operand.
7557 (vect_get_constant_vectors): Adjust.
7559 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7562 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
7563 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
7564 instead of _X86INTRIN_H_INCLUDED.
7565 * onfig/i386/clwbintrin.h: Likewise.
7566 * config/i386/pkuintrin.h: Likewise.
7567 * config/i386/prfchwintrin.h: Likewise.
7568 * config/i386/rdseedintrin.h: Likewise.
7569 * config/i386/wbnoinvdintrin.h: Likewise.
7570 * config/i386/xsavecintrin.h: Likewise.
7571 * config/i386/xsavesintrin.h: Likewise.
7572 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
7573 * config/i386/xsaveintrin.h: Likewise.
7574 * config/i386/xsaveoptintrin.h: Likewise.
7575 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
7576 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
7577 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
7578 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
7579 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
7580 * config/i386/immintrin.h: Here.
7582 2019-01-20 Martin Jambor <mjambor@suse.cz>
7585 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
7586 with aa_walk_budget.
7587 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
7588 aa_walk_budget_p parameter.
7589 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
7590 walk. Updated all callers.
7591 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
7592 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
7594 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
7595 parameter info. Extract info from fbi. Pass fbi to recursive calls
7596 and to unmodified_parm.
7597 (phi_result_unknown_predicate): New parameter fbi, removed parameter
7598 info, updated call to will_be_nonconstant_expr_predicate.
7599 (param_change_prob): New parameter fbi, limit AA walking.
7600 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
7601 calls to various above functions.
7602 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
7603 parameter. Use it to limit AA walking.
7604 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
7606 (detect_type_change): New parameter fbi, pass it on to
7607 detect_type_change_from_memory_writes.
7608 (detect_type_change_ssa): Likewise.
7609 (aa_overwalked): Removed.
7610 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
7611 accordingly, adjust to the neew AA limiting scheme.
7612 (parm_ref_data_preserved_p): Likewise.
7613 (ipa_compute_jump_functions_for_edge): Adjust call to
7615 (ipa_analyze_call_uses): Likewise.
7616 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
7617 (ipa_analyze_node): Initialize aa_walk_budget.
7618 (ipcp_transform_function): Likewise.
7619 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
7620 to get_dynamic_type.
7622 2019-01-19 Jakub Jelinek <jakub@redhat.com>
7624 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
7625 outside of #if CHECKING_P code.
7627 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
7629 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
7630 New function, split out from...
7631 (loop_versioning::analyze_stride): ...here.
7632 (loop_versioning::find_per_loop_multiplication): Use gassign.
7633 (loop_versioning::analyze_term_using_scevs): Return a success code.
7634 (loop_versioning::analyze_arbitrary_term): New function.
7635 (loop_versioning::analyze_address_fragment): Use
7636 analyze_arbitrary_term if all else fails.
7638 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
7641 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
7644 2019-01-18 Richard Biener <rguenther@suse.de>
7646 PR tree-optimization/88903
7647 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
7648 scalar stmts a SLP shift amount is composed of when detecting
7651 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
7654 * config/arm/arm-cpus.in (mp): New feature.
7656 (fgroup ARMv7ve): Add mp and sec features.
7657 (arch armv7-a): Add options to allow mp and sec extensions.
7658 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
7659 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
7660 extenstions to the base architecture.
7661 (cpu cortex-a8): Add sec extension to the base architecture.
7662 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
7663 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
7664 variants down to the base v7-a varaint.
7665 * config/arm/t-multilib (v7_a_arch_variants): New variable.
7666 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
7667 of permitted extensions for -march=armv7-a and for
7668 -mcpu=generic-armv7-a.
7670 2019-01-18 Martin Liska <mliska@suse.cz>
7672 * params.def: Fix comment.
7673 * tree-profile.c (gimple_init_gcov_profiler): Bump function
7675 (gimple_gen_ic_func_profiler): Likewise.
7677 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7679 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
7680 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
7681 and put in error checks for stack protector guard options.
7682 (aarch64_stack_protect_guard): New.
7683 (TARGET_STACK_PROTECT_GUARD): Define.
7684 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
7685 (reg_stack_protect_address<mode>): New.
7686 (stack_protect_set): Adjust for SSP_GLOBAL.
7687 (stack_protect_test): Likewise.
7688 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
7689 (-mstack-protector-guard): Likewise.
7690 (-mstack-protector-guard-offset): Likewise.
7692 2019-01-18 Jakub Jelinek <jakub@redhat.com>
7694 PR tree-optimization/86214
7695 * tree-inline.h (struct copy_body_data): Add
7696 add_clobbers_to_eh_landing_pads member.
7697 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
7698 (copy_edges_for_bb): Call it if EH edge destination is <
7699 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
7700 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
7701 if flag_stack_reuse != SR_NONE and clear it afterwards.
7703 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
7706 * doc/install.texi (with-multilib-list): Document for aarch64.
7708 2019-01-18 Jakub Jelinek <jakub@redhat.com>
7711 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
7712 (("..."))) with ("...").
7714 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
7716 * doc/extend.texi (Built-in Functions for Memory Model Aware
7717 Atomic Operations): Document atomic fetch and nand.
7719 2019-01-18 Martin Liska <mliska@suse.cz>
7720 Richard Biener <rguenther@suse.de>
7723 * cgraph.h (create_version_clone_with_body): Add new argument
7725 * cgraphclones.c (cgraph_node::create_version_clone): Add
7726 DECL_ATTRIBUTES to a newly created decl. And call
7727 valid_attribute_p so that proper cl_target_optimization_node
7728 is set for the newly created declaration.
7729 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
7731 (expand_target_clones): Do not call valid_attribute_p, it must
7733 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
7736 2019-01-17 Jakub Jelinek <jakub@redhat.com>
7739 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
7740 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
7741 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
7743 2019-01-17 Martin Sebor <msebor@redhat.com>
7746 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
7747 Handle anti-ranges the same as no range at all.
7749 2018-01-17 Steve Ellcey <sellcey@cavium.com>
7751 * config/aarch64/aarch64.c (cgraph.h): New include.
7752 (intl.h): New include.
7753 (supported_simd_type): New function.
7754 (currently_supported_simd_type): Ditto.
7755 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
7756 (aarch64_simd_clone_adjust): Ditto.
7757 (aarch64_simd_clone_usable): Ditto.
7758 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
7759 (TARGET_SIMD_CLONE_ADJUST): Ditto.
7760 (TARGET_SIMD_CLONE_USABLE): Ditto.
7761 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
7762 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
7765 2019-01-17 Martin Sebor <msebor@redhat.com>
7767 PR tree-optimization/88800
7768 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
7769 NO_WARNING bit here. Avoid folding out-of-bounds calls.
7770 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
7771 redundant argument. Add new argument and issue diagnostics under
7772 its control. Detect out-of-bounds access even with warnings
7774 (check_bounds_or_overlap): Change return type. Add argument.
7775 (wrestrict_dom_walker::check_call): Adjust.
7776 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
7777 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
7778 check_bounds_or_overlap's return value.
7779 (handle_builtin_stxncpy): Same.
7780 (handle_builtin_strcat): Same.
7782 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7783 Kwok Cheung Yeung <kcy@codesourcery.com>
7784 Julian Brown <julian@codesourcery.com>
7785 Tom de Vries <tom@codesourcery.com>
7787 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
7789 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7791 * doc/sourcebuild.texi: Document dg-require-effective-target
7792 llvm_binutils and offload_gcn.
7794 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7795 Kwok Cheung Yeung <kcy@codesourcery.com>
7796 Julian Brown <julian@codesourcery.com>
7797 Tom de Vries <tom@codesourcery.com>
7799 * doc/sourcebuild.texi: Document dg-required-effective-target
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 * config.gcc: Add amdgcn*-*-amdhsa configuration.
7810 * configure.ac: Check for dlopen.
7811 * configure: Regenerate.
7813 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7814 Kwok Cheung Yeung <kcy@codesourcery.com>
7815 Julian Brown <julian@codesourcery.com>
7816 Tom de Vries <tom@codesourcery.com>
7817 Jan Hubicka <hubicka@ucw.cz>
7818 Martin Jambor <mjambor@suse.cz>
7820 * common/config/gcn/gcn-common.c: New file.
7821 * config/gcn/driver-gcn.c: New file.
7822 * config/gcn/gcn-builtins.def: New file.
7823 * config/gcn/gcn-hsa.h: New file.
7824 * config/gcn/gcn-modes.def: New file.
7825 * config/gcn/gcn-opts.h: New file.
7826 * config/gcn/gcn-passes.def: New file.
7827 * config/gcn/gcn-protos.h: New file.
7828 * config/gcn/gcn-run.c: New file.
7829 * config/gcn/gcn-tree.c: New file.
7830 * config/gcn/gcn.c: New file.
7831 * config/gcn/gcn.h: New file.
7832 * config/gcn/gcn.opt: New file.
7833 * config/gcn/t-gcn-hsa: New file.
7835 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7836 Kwok Cheung Yeung <kcy@codesourcery.com>
7837 Julian Brown <julian@codesourcery.com>
7838 Tom de Vries <tom@codesourcery.com>
7839 Jan Hubicka <hubicka@ucw.cz>
7840 Martin Jambor <mjambor@suse.cz>
7842 * config/gcn/constraints.md: New file.
7843 * config/gcn/gcn-valu.md: New file.
7844 * config/gcn/gcn.md: New file.
7845 * config/gcn/predicates.md: New file.
7847 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
7849 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
7850 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
7851 (stmt_uses_0_or_null_in_undefined_way): Likewise.
7852 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
7854 2019-01-17 Tamar Christina <tamar.christina@arm.com>
7857 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
7858 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
7859 it and document registers.
7861 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7863 * config/aarch64/aarch64.c (ares_tunings): Define.
7864 * config/aarch64/aarch64-cores.def (ares): Use the above.
7866 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7870 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
7872 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
7873 (_mm512_fixupimm_round_pd): Update parameters and builtin.
7874 (_mm512_maskz_fixupimm_round_pd): Ditto.
7875 (_mm512_fixupimm_round_ps): Ditto.
7876 (_mm512_maskz_fixupimm_round_ps): Ditto.
7877 (_mm_fixupimm_round_sd): Ditto.
7878 (_mm_maskz_fixupimm_round_sd): Ditto.
7879 (_mm_fixupimm_round_ss): Ditto.
7880 (_mm_maskz_fixupimm_round_ss): Ditto.
7881 (_mm512_fixupimm_pd): Ditto.
7882 (_mm512_maskz_fixupimm_pd): Ditto.
7883 (_mm512_fixupimm_ps): Ditto.
7884 (_mm512_maskz_fixupimm_ps): Ditto.
7885 (_mm_fixupimm_sd): Ditto.
7886 (_mm_maskz_fixupimm_sd): Ditto.
7887 (_mm_fixupimm_ss): Ditto.
7888 (_mm_maskz_fixupimm_ss): Ditto.
7889 (_mm512_mask_fixupimm_round_pd): Update builtin.
7890 (_mm512_mask_fixupimm_round_ps): Ditto.
7891 (_mm_mask_fixupimm_round_sd): Ditto.
7892 (_mm_mask_fixupimm_round_ss): Ditto.
7893 (_mm512_mask_fixupimm_pd): Ditto.
7894 (_mm512_mask_fixupimm_ps): Ditto.
7895 (_mm_mask_fixupimm_sd): Ditto.
7896 (_mm_mask_fixupimm_ss): Ditto.
7897 * config/i386/avx512vlintrin.h:
7898 (_mm256_fixupimm_pd): Update parameters and builtin.
7899 (_mm256_maskz_fixupimm_pd): Ditto.
7900 (_mm256_fixupimm_ps): Ditto.
7901 (_mm256_maskz_fixupimm_ps): Ditto.
7902 (_mm_fixupimm_pd): Ditto.
7903 (_mm_maskz_fixupimm_pd): Ditto.
7904 (_mm_fixupimm_ps): Ditto.
7905 (_mm_maskz_fixupimm_ps): Ditto.
7906 (_mm256_mask_fixupimm_pd): Update builtin.
7907 (_mm256_mask_fixupimm_ps): Ditto.
7908 (_mm_mask_fixupimm_pd): Ditto.
7909 (_mm_mask_fixupimm_ps): Ditto.
7910 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
7911 * config/i386/i386-builtin.def: Update builtin definitions.
7912 * config/i386/i386.c: Handle new builtin types and remove useless ones.
7913 * config/i386/sse.md: Update VFIXUPIMM* patterns.
7914 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7915 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7916 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
7917 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7918 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7919 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
7920 * config/i386/subst.md:
7921 (round_saeonly_sd_mask_operand4): Add new subst_attr.
7922 (round_saeonly_sd_mask_op4): Ditto.
7923 (round_saeonly_expand_operand5): Ditto.
7924 (round_saeonly_expand): Update.
7926 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7930 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
7932 * config/i386/sse.md: Combine VFIXUPIMM* patterns
7933 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7934 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7935 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
7936 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7937 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7938 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
7940 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7944 2018-12-15 Jakub Jelinek <jakub@redhat.com>
7947 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
7948 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
7949 instead of UNSPEC_FIXUPIMM.
7951 2019-01-17 Richard Biener <rguenther@suse.de>
7954 * dwarf2out.c (want_pubnames): Never generate pubnames sections
7955 and friends for the LTO part of debug info.
7957 2019-01-17 Jakub Jelinek <jakub@redhat.com>
7959 PR tree-optimization/86214
7960 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
7963 PR rtl-optimization/88870
7964 * dce.c (deletable_insn_p): Never delete const/pure calls that can
7965 throw if we can't alter the cfg or delete dead exceptions.
7966 (mark_insn): Don't call find_call_stack_args for such calls.
7968 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
7970 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
7971 prototypes for vec_st.
7972 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
7973 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
7974 mainly on signed/unsigned long long and double.
7976 2019-01-16 David Malcolm <dmalcolm@redhat.com>
7979 * combine.c (delete_noop_moves): Convert to "bool" return,
7980 returning true if any edges are eliminated.
7981 (combine_instructions): Also return true if delete_noop_moves
7984 2019-01-16 Tamar Christina <tamar.christina@arm.com>
7986 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
7987 correct max nunits for endian swap.
7988 (aarch64_expand_fcmla_builtin): Correct subreg code.
7989 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
7990 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
7993 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
7995 * config/alpha/alpha.c (alpha_gimplify_va_arg):
7996 Handle split indirect COMPLEX_TYPE arguments.
7998 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
8001 * config/aarch64/aarch64-modes.def: Add comment about how the carry
8002 bit is set by add and compare.
8003 (CC_ADC): New CC_MODE.
8004 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
8005 to cache the code and mode of X. Adjust the shape of a CC_Cmode
8006 comparison. Add detection for CC_ADCmode.
8007 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
8009 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
8010 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
8011 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
8012 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
8013 to eliminate the need for zero-extending the operands.
8014 (add<mode>3_compareC_imm): Delete. Merge into ...
8015 (add<mode>3_compareC): ... this. Restructure the comparison to
8016 eliminate the need for zero-extending the operands.
8017 (add<mode>3_carryin): Use LTU for the overflow detection.
8018 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
8019 Reexpress comparison for overflow.
8020 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
8021 (add<mode>3_carryinC): Likewise.
8022 (add<mode>3_carryinV): Use LTU for carry between partials.
8023 * config/aarch64/predicates.md (aarch64_carry_operation): Update
8024 handling of CC_Cmode and add CC_ADCmode.
8025 (aarch64_borrow_operation): Likewise.
8027 2019-01-16 Tamar Christina <tamar.christina@arm.com>
8029 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
8030 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
8031 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
8032 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
8034 2019-01-16 Martin Liska <mliska@suse.cz>
8036 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
8038 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
8040 * gcc.c (add_sysrooted_hdrs_prefix): New function.
8041 (path_prefix_reset): Move up in the source file.
8042 (find_fortran_preinclude_file): Make complex search for the
8043 fortran header files.
8045 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
8047 * godump.c (go_output_typedef): When outputting a typedef, refer
8048 to the underlying type by its name and not its structure.
8050 2019-01-15 David Malcolm <dmalcolm@redhat.com>
8053 * tree.c (build_function_type): Assert that arg_types is not
8056 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
8059 * doc/extend.texi: Document that listing the stack pointer in the
8060 clobber list of an asm is a deprecated feature.
8061 * common.opt (Wdeprecated): Moved from c-family/c.opt.
8062 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
8063 warning instead of an error for clobbers of the stack pointer.
8064 Add a note explaining why.
8066 2019-01-15 Richard Biener <rguenther@suse.de>
8069 * dwarf2out.c (gen_member_die): Do not generate inheritance
8072 2019-01-15 Richard Biener <rguenther@suse.de>
8074 PR tree-optimization/88855
8075 * tree-if-conv.c (combine_blocks): Collect
8076 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
8078 2019-01-15 Tom de Vries <tdevries@suse.de>
8081 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
8082 lhs == NULL_TREE for gang-level reduction.
8084 2019-01-15 Richard Biener <rguenther@suse.de>
8085 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8088 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
8089 return true if SSA_NAME is already marked in visited bitmap.
8090 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
8092 2019-01-15 Jakub Jelinek <jakub@redhat.com>
8094 PR tree-optimization/88775
8095 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
8096 equal == 0 equality pointer comparisons some more if compared in
8097 integral types and either one points to an automatic var and the
8098 other to a global, or we can prove at least one points to the middle
8099 or both point to start or both point to end.
8101 2019-01-14 Andi Kleen <ak@linux.intel.com>
8103 * Makefile.in: Lower autofdo sampling rate by 10x.
8104 * Makefile.tpl: Dito.
8106 2019-01-14 Tom Honermann <tom@honermann.net>
8108 * defaults.h: Define CHAR8_TYPE.
8110 2019-01-14 Martin Sebor <msebor@redhat.com>
8113 * doc/extend.texi (Darwin Format Checks): Clarify.
8115 2019-01-14 Richard Biener <rguenther@suse.de>
8117 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
8118 whether we are in (simplify ...) or (match ...) context.
8120 2019-01-14 Jakub Jelinek <jakub@redhat.com>
8122 PR rtl-optimization/88796
8123 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
8124 * cfgexpand.c (stack_protect_prologue): Initialize
8125 crtl->stack_protect_guard_decl.
8126 * function.c (stack_protect_epilogue): Use it instead of calling
8127 targetm.stack_protect_guard again.
8128 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
8129 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
8130 crtl->stack_protect_guard_decl.
8131 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
8132 on the returned MEM_EXPR.
8134 2019-01-12 Tom de Vries <tdevries@suse.de>
8136 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
8137 vector length using -fopenacc-dim.
8139 2019-01-12 Tom de Vries <tdevries@suse.de>
8141 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
8142 lengths into account.
8144 2019-01-12 Svante Signell <svante.signell@gmail.com>
8146 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
8147 (TARGET_CAN_SPLIT_STACK): Define.
8148 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
8150 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8152 * params.def (inline-unit-growth): Set to 40.
8154 2019-01-12 Jakub Jelinek <jakub@redhat.com>
8156 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
8158 2019-01-12 Tom de Vries <tdevries@suse.de>
8160 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
8161 region calling vector-partitionable routine, set default_vector_length
8164 2019-01-12 Tom de Vries <tdevries@suse.de>
8166 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
8167 variable default_vector_length.
8169 2019-01-12 Tom de Vries <tdevries@suse.de>
8172 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
8173 from oacc_default_dims, as oacc_validate_dims would do it, and apply
8176 2019-01-12 Tom de Vries <tdevries@suse.de>
8178 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
8179 (nvptx_goacc_validate_dims): Add used parameter.
8180 * doc/tm.texi: Regenerate.
8181 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
8182 argument to call to targetm.goacc.validate_dims.
8183 (default_goacc_validate_dims): Add used
8185 * target.def (validate_dims): Add used parameter in DEFHOOK.
8186 * targhooks.h (default_goacc_validate_dims): Add used parameter.
8188 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8192 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
8194 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
8195 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
8196 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
8197 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
8199 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
8201 PR rtl-optimization/87305
8203 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
8204 for little endian pseudos used as paradoxical subreg.
8206 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8208 PR tree-optimization/88693
8209 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
8210 for STRING_CSTs that don't contain any NUL characters in the first
8211 TREE_STRING_LENGTH bytes.
8213 2019-01-11 Alan Modra <amodra@gmail.com>
8217 * genattrtab.c (min_fn): Don't translate values.
8218 (min_attr_value): Return INT_MAX when the value can't be calculated.
8219 Return minimum among any values that can be calculated.
8220 (max_attr_value): Adjust.
8222 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8224 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
8226 2019-01-11 Steve Ellcey <sellcey@marvell.com>
8228 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
8229 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
8230 (aarch64_return_call_with_max_clobbers): New function.
8231 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
8232 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
8234 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
8235 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
8236 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
8237 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
8238 * cselib.c (cselib_process_insn): Add argument to
8239 targetm.hard_regno_call_part_clobbered call.
8240 * ira-conflicts.c (ira_build_conflicts): Ditto.
8241 * ira-costs.c (ira_tune_allocno_costs): Ditto.
8242 * lra-constraints.c (inherit_reload_reg): Ditto.
8243 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
8244 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
8245 argument. Call targetm.return_call_with_max_clobbers.
8246 Add argument to targetm.hard_regno_call_part_clobbered call.
8247 (calls_have_same_clobbers_p): New function.
8248 (process_bb_lives): Add call_insn and last_call_insn variables.
8249 Pass call_insn to check_pseudos_live_through_calls.
8250 Modify if stmt to check targetm.return_call_with_max_clobbers.
8251 Update setting of flush variable.
8252 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
8254 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
8255 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
8256 targetm.hard_regno_call_part_clobbered call.
8257 * reginfo.c (choose_hard_reg_mode): Ditto.
8258 * regrename.c (check_new_reg_p): Ditto.
8259 * reload.c (find_equiv_reg): Ditto.
8260 * reload1.c (emit_reload_insns): Ditto.
8261 * sched-deps.c (deps_analyze_insn): Ditto.
8262 * sel-sched.c (init_regs_for_mode): Ditto.
8263 (mark_unavailable_hard_regs): Ditto.
8264 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
8265 * target.def (hard_regno_call_part_clobbered): Add insn argument.
8266 (return_call_with_max_clobbers): New target function.
8267 * doc/tm.texi: Regenerate.
8268 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
8269 * hooks.c (hook_bool_uint_mode_false): Change to
8270 hook_bool_insn_uint_mode_false.
8271 * hooks.h (hook_bool_uint_mode_false): Ditto.
8273 2019-01-11 Steve Ellcey <sellcey@marvell.com>
8275 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
8276 (aarch64_remove_extra_call_preserved_regs): New function.
8277 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
8278 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
8279 * doc/tm.texi: Regenerate.
8280 * final.c (get_call_reg_set_usage): Call new hook.
8281 * target.def (remove_extra_call_preserved_regs): New hook.
8282 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
8283 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
8285 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8288 * passes.c (finish_optimization_passes): Call print_combine_total_stats
8289 inside of pass_combine_1 dump rather than pass_profile_1.
8291 2019-01-11 Tom de Vries <tdevries@suse.de>
8293 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
8294 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
8295 (PTX_NUM_PER_WORKER_BARRIERS): Define.
8296 (nvptx_apply_dim_limits): Prevent vector_length 64 and
8299 2019-01-11 Tom de Vries <tdevries@suse.de>
8301 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
8303 2019-01-11 Jan Beulich <jbeulich@suse.com>
8305 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
8306 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
8307 sse2_cvtsi2sd): Add {l}.
8308 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
8311 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8314 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
8316 (*float<floatunssuffix>v2div2sf2): New define_insn.
8317 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
8318 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
8319 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
8320 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
8321 match_operands with "const0_operand" "C".
8323 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8325 * config/aarch64/aarch64-builtins.c
8326 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
8327 (aarch64_init_simd_builtins): ...Here
8329 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
8331 PR rtl-optimization/87305
8333 (setup_live_pseudos_and_spill_after_risky_transforms): Check
8334 allocation for big endian pseudos used as paradoxical subregs and
8335 spill them if it is wrong.
8336 * lra-constraints.c (lra_constraints): Add a comment.
8338 2019-01-10 Richard Biener <rguenther@suse.de>
8340 PR tree-optimization/88792
8341 * tree-ssa-pre.c (get_representative_for): Do not return a
8344 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8348 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
8349 (assign_parm_setup_block): Do the argument slot realignment here
8352 2019-01-10 Stefan Agner <stefan@agner.ch>
8355 * config/arm/arm.c (arm_option_override_internal): Force
8356 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
8358 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8361 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
8364 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8366 * config/arm/arm-builtins.c
8367 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
8368 (MAC_LANE_PAIR_QUALIFIERS): New.
8369 (arm_expand_builtin_args): Use it.
8370 (arm_expand_builtin_1): Likewise.
8371 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
8372 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
8373 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
8374 * config/arm/arm_neon.h:
8375 (vcadd_rot90_f16): New.
8376 (vcaddq_rot90_f16): New.
8377 (vcadd_rot270_f16): New.
8378 (vcaddq_rot270_f16): New.
8381 (vcmla_lane_f16): New.
8382 (vcmla_laneq_f16): New.
8383 (vcmlaq_lane_f16): New.
8384 (vcmlaq_laneq_f16): New.
8385 (vcmla_rot90_f16): New.
8386 (vcmlaq_rot90_f16): New.
8387 (vcmla_rot90_lane_f16): New.
8388 (vcmla_rot90_laneq_f16): New.
8389 (vcmlaq_rot90_lane_f16): New.
8390 (vcmlaq_rot90_laneq_f16): New.
8391 (vcmla_rot180_f16): New.
8392 (vcmlaq_rot180_f16): New.
8393 (vcmla_rot180_lane_f16): New.
8394 (vcmla_rot180_laneq_f16): New.
8395 (vcmlaq_rot180_lane_f16): New.
8396 (vcmlaq_rot180_laneq_f16): New.
8397 (vcmla_rot270_f16): New.
8398 (vcmlaq_rot270_f16): New.
8399 (vcmla_rot270_lane_f16): New.
8400 (vcmla_rot270_laneq_f16): New.
8401 (vcmlaq_rot270_lane_f16): New.
8402 (vcmlaq_rot270_laneq_f16): New.
8403 (vcadd_rot90_f32): New.
8404 (vcaddq_rot90_f32): New.
8405 (vcadd_rot270_f32): New.
8406 (vcaddq_rot270_f32): New.
8409 (vcmla_lane_f32): New.
8410 (vcmla_laneq_f32): New.
8411 (vcmlaq_lane_f32): New.
8412 (vcmlaq_laneq_f32): New.
8413 (vcmla_rot90_f32): New.
8414 (vcmlaq_rot90_f32): New.
8415 (vcmla_rot90_lane_f32): New.
8416 (vcmla_rot90_laneq_f32): New.
8417 (vcmlaq_rot90_lane_f32): New.
8418 (vcmlaq_rot90_laneq_f32): New.
8419 (vcmla_rot180_f32): New.
8420 (vcmlaq_rot180_f32): New.
8421 (vcmla_rot180_lane_f32): New.
8422 (vcmla_rot180_laneq_f32): New.
8423 (vcmlaq_rot180_lane_f32): New.
8424 (vcmlaq_rot180_laneq_f32): New.
8425 (vcmla_rot270_f32): New.
8426 (vcmlaq_rot270_f32): New.
8427 (vcmla_rot270_lane_f32): New.
8428 (vcmla_rot270_laneq_f32): New.
8429 (vcmlaq_rot270_lane_f32): New.
8430 (vcmlaq_rot270_laneq_f32): New.
8431 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
8432 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
8433 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
8434 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
8435 vcmlaq_lane270): New.
8436 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
8437 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
8438 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
8439 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
8440 (arm_option_reconfigure_globals): Use them.
8441 * config/arm/iterators.md (VDF, VQ_HSF): New.
8442 (VCADD, VCMLA): New.
8443 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
8444 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
8446 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
8447 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
8449 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8451 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
8452 Add qualifier_lane_pair_index.
8453 (emit-rtl.h): Include.
8454 (TYPES_QUADOP_LANE_PAIR): New.
8455 (aarch64_simd_expand_args): Use it.
8456 (aarch64_simd_expand_builtin): Likewise.
8457 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
8459 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
8460 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
8461 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
8462 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
8463 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
8464 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
8465 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
8466 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
8467 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
8468 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
8469 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
8470 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
8471 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
8472 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
8473 Add __ARM_FEATURE_COMPLEX.
8474 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
8475 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
8476 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
8477 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
8478 fcmlaq_lane270): New.
8479 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
8480 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
8481 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
8482 * config/aarch64/arm_neon.h:
8483 (vcadd_rot90_f16): New.
8484 (vcaddq_rot90_f16): New.
8485 (vcadd_rot270_f16): New.
8486 (vcaddq_rot270_f16): New.
8489 (vcmla_lane_f16): New.
8490 (vcmla_laneq_f16): New.
8491 (vcmlaq_lane_f16): New.
8492 (vcmlaq_rot90_lane_f16): New.
8493 (vcmla_rot90_laneq_f16): New.
8494 (vcmla_rot90_lane_f16): New.
8495 (vcmlaq_rot90_f16): New.
8496 (vcmla_rot90_f16): New.
8497 (vcmlaq_laneq_f16): New.
8498 (vcmla_rot180_laneq_f16): New.
8499 (vcmla_rot180_lane_f16): New.
8500 (vcmlaq_rot180_f16): New.
8501 (vcmla_rot180_f16): New.
8502 (vcmlaq_rot90_laneq_f16): New.
8503 (vcmlaq_rot270_laneq_f16): New.
8504 (vcmlaq_rot270_lane_f16): New.
8505 (vcmla_rot270_laneq_f16): New.
8506 (vcmlaq_rot270_f16): New.
8507 (vcmla_rot270_f16): New.
8508 (vcmlaq_rot180_laneq_f16): New.
8509 (vcmlaq_rot180_lane_f16): New.
8510 (vcmla_rot270_lane_f16): New.
8511 (vcadd_rot90_f32): New.
8512 (vcaddq_rot90_f32): New.
8513 (vcaddq_rot90_f64): New.
8514 (vcadd_rot270_f32): New.
8515 (vcaddq_rot270_f32): New.
8516 (vcaddq_rot270_f64): New.
8520 (vcmla_lane_f32): New.
8521 (vcmla_laneq_f32): New.
8522 (vcmlaq_lane_f32): New.
8523 (vcmlaq_laneq_f32): New.
8524 (vcmla_rot90_f32): New.
8525 (vcmlaq_rot90_f32): New.
8526 (vcmlaq_rot90_f64): New.
8527 (vcmla_rot90_lane_f32): New.
8528 (vcmla_rot90_laneq_f32): New.
8529 (vcmlaq_rot90_lane_f32): New.
8530 (vcmlaq_rot90_laneq_f32): New.
8531 (vcmla_rot180_f32): New.
8532 (vcmlaq_rot180_f32): New.
8533 (vcmlaq_rot180_f64): New.
8534 (vcmla_rot180_lane_f32): New.
8535 (vcmla_rot180_laneq_f32): New.
8536 (vcmlaq_rot180_lane_f32): New.
8537 (vcmlaq_rot180_laneq_f32): New.
8538 (vcmla_rot270_f32): New.
8539 (vcmlaq_rot270_f32): New.
8540 (vcmlaq_rot270_f64): New.
8541 (vcmla_rot270_lane_f32): New.
8542 (vcmla_rot270_laneq_f32): New.
8543 (vcmlaq_rot270_lane_f32): New.
8544 (vcmlaq_rot270_laneq_f32): New.
8545 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
8546 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
8547 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
8548 (FCADD, FCMLA): New.
8550 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
8552 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
8556 * config/pa/pa.c: Change "can not" to "cannot".
8557 * gimple-ssa-evrp-analyze.c: Likewise.
8558 * ipa-icf.c: Likewise.
8559 * ipa-polymorphic-call.c: Likewise.
8560 * ipa-pure-const.c: Likewise.
8561 * lra-constraints.c: Likewise.
8562 * lra-remat.c: Likewise.
8563 * reload1.c: Likewise.
8564 * reorg.c: Likewise.
8565 * tree-ssa-uninit.c: Likewise.
8567 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
8571 * Makefile.in: Mechanically replace "can not" with "cannot".
8572 * alias.c: Likewise.
8573 * builtins.c: Likewise.
8574 * calls.c: Likewise.
8575 * cgraph.c: Likewise.
8576 * cgraph.h: Likewise.
8577 * cgraphclones.c: Likewise.
8578 * cgraphunit.c: Likewise.
8579 * combine-stack-adj.c: Likewise.
8580 * combine.c: Likewise.
8581 * common/config/i386/i386-common.c: Likewise.
8582 * config/aarch64/aarch64.c: Likewise.
8583 * config/alpha/sync.md: Likewise.
8584 * config/arc/arc.c: Likewise.
8585 * config/arc/predicates.md: Likewise.
8586 * config/arm/arm-c.c: Likewise.
8587 * config/arm/arm.c: Likewise.
8588 * config/arm/arm.h: Likewise.
8589 * config/arm/arm.md: Likewise.
8590 * config/arm/cortex-r4f.md: Likewise.
8591 * config/csky/csky.c: Likewise.
8592 * config/csky/csky.h: Likewise.
8593 * config/darwin-f.c: Likewise.
8594 * config/epiphany/epiphany.md: Likewise.
8595 * config/i386/i386.c: Likewise.
8596 * config/i386/sol2.h: Likewise.
8597 * config/m68k/m68k.c: Likewise.
8598 * config/mcore/mcore.h: Likewise.
8599 * config/microblaze/microblaze.md: Likewise.
8600 * config/mips/20kc.md: Likewise.
8601 * config/mips/sb1.md: Likewise.
8602 * config/nds32/nds32.c: Likewise.
8603 * config/nds32/predicates.md: Likewise.
8604 * config/pa/pa.c: Likewise.
8605 * config/rs6000/e300c2c3.md: Likewise.
8606 * config/rs6000/rs6000.c: Likewise.
8607 * config/s390/s390.h: Likewise.
8608 * config/sh/sh.c: Likewise.
8609 * config/sh/sh.md: Likewise.
8610 * config/spu/vmx2spu.h: Likewise.
8611 * cprop.c: Likewise.
8612 * dbxout.c: Likewise.
8613 * df-scan.c: Likewise.
8614 * doc/cfg.texi: Likewise.
8615 * doc/extend.texi: Likewise.
8616 * doc/fragments.texi: Likewise.
8617 * doc/gty.texi: Likewise.
8618 * doc/invoke.texi: Likewise.
8619 * doc/lto.texi: Likewise.
8620 * doc/md.texi: Likewise.
8621 * doc/objc.texi: Likewise.
8622 * doc/rtl.texi: Likewise.
8623 * doc/tm.texi: Likewise.
8625 * emit-rtl.c: Likewise.
8626 * emit-rtl.h: Likewise.
8627 * except.c: Likewise.
8628 * expmed.c: Likewise.
8630 * fold-const.c: Likewise.
8631 * genautomata.c: Likewise.
8632 * gimple-fold.c: Likewise.
8633 * hard-reg-set.h: Likewise.
8634 * ifcvt.c: Likewise.
8635 * ipa-comdats.c: Likewise.
8636 * ipa-cp.c: Likewise.
8637 * ipa-devirt.c: Likewise.
8638 * ipa-fnsummary.c: Likewise.
8639 * ipa-icf.c: Likewise.
8640 * ipa-inline-transform.c: Likewise.
8641 * ipa-inline.c: Likewise.
8642 * ipa-polymorphic-call.c: Likewise.
8643 * ipa-profile.c: Likewise.
8644 * ipa-prop.c: Likewise.
8645 * ipa-pure-const.c: Likewise.
8646 * ipa-reference.c: Likewise.
8647 * ipa-split.c: Likewise.
8648 * ipa-visibility.c: Likewise.
8650 * ira-build.c: Likewise.
8651 * ira-color.c: Likewise.
8652 * ira-conflicts.c: Likewise.
8653 * ira-costs.c: Likewise.
8654 * ira-int.h: Likewise.
8655 * ira-lives.c: Likewise.
8658 * loop-invariant.c: Likewise.
8659 * loop-unroll.c: Likewise.
8660 * lower-subreg.c: Likewise.
8661 * lra-assigns.c: Likewise.
8662 * lra-constraints.c: Likewise.
8663 * lra-eliminations.c: Likewise.
8664 * lra-lives.c: Likewise.
8665 * lra-remat.c: Likewise.
8666 * lra-spills.c: Likewise.
8668 * lto-cgraph.c: Likewise.
8669 * lto-streamer-out.c: Likewise.
8670 * postreload-gcse.c: Likewise.
8671 * predict.c: Likewise.
8672 * profile-count.h: Likewise.
8673 * profile.c: Likewise.
8674 * recog.c: Likewise.
8676 * reload.c: Likewise.
8677 * reload1.c: Likewise.
8678 * reorg.c: Likewise.
8679 * resource.c: Likewise.
8680 * rtl.def: Likewise.
8682 * rtlanal.c: Likewise.
8683 * sched-deps.c: Likewise.
8684 * sched-ebb.c: Likewise.
8685 * sched-rgn.c: Likewise.
8686 * sel-sched-ir.c: Likewise.
8687 * sel-sched.c: Likewise.
8688 * shrink-wrap.c: Likewise.
8689 * simplify-rtx.c: Likewise.
8690 * symtab.c: Likewise.
8691 * target.def: Likewise.
8692 * toplev.c: Likewise.
8693 * tree-call-cdce.c: Likewise.
8694 * tree-cfg.c: Likewise.
8695 * tree-complex.c: Likewise.
8696 * tree-core.h: Likewise.
8697 * tree-eh.c: Likewise.
8698 * tree-inline.c: Likewise.
8699 * tree-loop-distribution.c: Likewise.
8700 * tree-nrv.c: Likewise.
8701 * tree-profile.c: Likewise.
8702 * tree-sra.c: Likewise.
8703 * tree-ssa-alias.c: Likewise.
8704 * tree-ssa-dce.c: Likewise.
8705 * tree-ssa-dom.c: Likewise.
8706 * tree-ssa-forwprop.c: Likewise.
8707 * tree-ssa-loop-im.c: Likewise.
8708 * tree-ssa-loop-ivcanon.c: Likewise.
8709 * tree-ssa-loop-ivopts.c: Likewise.
8710 * tree-ssa-loop-niter.c: Likewise.
8711 * tree-ssa-phionlycprop.c: Likewise.
8712 * tree-ssa-phiopt.c: Likewise.
8713 * tree-ssa-propagate.c: Likewise.
8714 * tree-ssa-threadedge.c: Likewise.
8715 * tree-ssa-threadupdate.c: Likewise.
8716 * tree-ssa-uninit.c: Likewise.
8717 * tree-ssanames.c: Likewise.
8718 * tree-streamer-out.c: Likewise.
8721 * vr-values.c: Likewise.
8723 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
8725 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
8726 (ix86_split_xorsign): Ditto.
8727 * config/i386/i386.c (ix86_expand_xorsign): New function.
8728 (ix86_split_xorsign): Ditto.
8729 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
8730 (xorsign<mode>3): New expander.
8731 (xorsign<mode>3_1): New insn_and_split pattern.
8732 * config/i386/sse.md (xorsign<mode>3): New expander.
8734 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8736 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
8737 (*tablejump_sp64): Likewise.
8738 (*tablejump<P:mode>): ...this.
8739 (*call_address_sp32): Merge into...
8740 (*call_address_sp64): Likewise.
8741 (*call_address<P:mode>): ...this.
8742 (*call_symbolic_sp32): Merge into...
8743 (*call_symbolic_sp64): Likewise.
8744 (*call_symbolic<P:mode>): ...this.
8745 (call_value): Remove constraint and add predicate.
8746 (*call_value_address_sp32): Merge into...
8747 (*call_value_address_sp64): Likewise.
8748 (*call_value_address<P:mode>): ...this.
8749 (*call_value_symbolic_sp32): Merge into...
8750 (*call_value_symbolic_sp64): Likewise.
8751 (*call_value_symbolic<P:mode>): ...this.
8752 (*sibcall_symbolic_sp32): Merge into...
8753 (*sibcall_symbolic_sp64): Likewise.
8754 (*sibcall_symbolic<P:mode>): ...this.
8755 (sibcall_value): Remove constraint and add predicate.
8756 (*sibcall_value_symbolic_sp32): Merge into...
8757 (*sibcall_value_symbolic_sp64): Likewise.
8758 (*sibcall_value_symbolic<P:mode>): ...this.
8759 (window_save): Minor tweak.
8760 (*branch_sp32): Merge into...
8761 (*branch_sp64): Likewise.
8762 (*branch<P:mode>): ...this.
8764 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8765 James Clarke <jrtc27@jrtc27.com>
8768 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
8769 consistently in TLS address generation and adjust code to the renaming
8770 of patterns. Mark calls to __tls_get_addr as const.
8771 * config/sparc/sparc.md (tgd_hi22): Turn into...
8772 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
8773 (tgd_lo10): Turn into...
8774 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
8775 (tgd_add32): Merge into...
8776 (tgd_add64): Likewise.
8777 (tgd_add<P:mode>): ...this and use Pmode throughout.
8778 (tldm_hi22): Turn into...
8779 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
8780 (tldm_lo10): Turn into...
8781 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
8782 (tldm_add32): Merge into...
8783 (tldm_add64): Likewise.
8784 (tldm_add<P:mode>): ...this and use Pmode throughout.
8785 (tldm_call32): Merge into...
8786 (tldm_call64): Likewise.
8787 (tldm_call<P:mode>): ...this and use Pmode throughout.
8788 (tldo_hix22): Turn into...
8789 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
8790 (tldo_lox10): Turn into...
8791 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
8792 (tldo_add32): Merge into...
8793 (tldo_add64): Likewise.
8794 (tldo_add<P:mode>): ...this and use Pmode throughout.
8795 (tie_hi22): Turn into...
8796 (tie_hi22<P:mode>): ...this and use Pmode throughout.
8797 (tie_lo10): Turn into...
8798 (tie_lo10<P:mode>): ...this and use Pmode throughout.
8799 (tie_ld64): Use DImode throughout.
8800 (tie_add32): Merge into...
8801 (tie_add64): Likewise.
8802 (tie_add<P:mode>): ...this and use Pmode throughout.
8803 (tle_hix22_sp32): Merge into...
8804 (tle_hix22_sp64): Likewise.
8805 (tle_hix22<P:mode>): ...this and use Pmode throughout.
8806 (tle_lox22_sp32): Merge into...
8807 (tle_lox22_sp64): Likewise.
8808 (tle_lox22<P:mode>): ...this and use Pmode throughout.
8809 (*tldo_ldub_sp32): Merge into...
8810 (*tldo_ldub_sp64): Likewise.
8811 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
8812 (*tldo_ldub1_sp32): Merge into...
8813 (*tldo_ldub1_sp64): Likewise.
8814 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
8815 (*tldo_ldub2_sp32): Merge into...
8816 (*tldo_ldub2_sp64): Likewise.
8817 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
8818 (*tldo_ldsb1_sp32): Merge into...
8819 (*tldo_ldsb1_sp64): Likewise.
8820 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
8821 (*tldo_ldsb2_sp32): Merge into...
8822 (*tldo_ldsb2_sp64): Likewise.
8823 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
8824 (*tldo_ldub3_sp64): Use DImode throughout.
8825 (*tldo_ldsb3_sp64): Likewise.
8826 (*tldo_lduh_sp32): Merge into...
8827 (*tldo_lduh_sp64): Likewise.
8828 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
8829 (*tldo_lduh1_sp32): Merge into...
8830 (*tldo_lduh1_sp64): Likewise.
8831 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
8832 (*tldo_ldsh1_sp32): Merge into...
8833 (*tldo_ldsh1_sp64): Likewise.
8834 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
8835 (*tldo_lduh2_sp64): Use DImode throughout.
8836 (*tldo_ldsh2_sp64): Likewise.
8837 (*tldo_lduw_sp32): Merge into...
8838 (*tldo_lduw_sp64): Likewise.
8839 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
8840 (*tldo_lduw1_sp64): Use DImode throughout.
8841 (*tldo_ldsw1_sp64): Likewise.
8842 (*tldo_ldx_sp64): Likewise.
8843 (*tldo_stb_sp32): Merge into...
8844 (*tldo_stb_sp64): Likewise.
8845 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
8846 (*tldo_sth_sp32): Merge into...
8847 (*tldo_sth_sp64): Likewise.
8848 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
8849 (*tldo_stw_sp32): Merge into...
8850 (*tldo_stw_sp64): Likewise.
8851 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
8852 (*tldo_stx_sp64): Use DImode throughout.
8854 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8856 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
8857 check configure option to set BTI and Return Address Signing.
8858 * configure.ac: Add --enable-standard-branch-protection and
8859 --disable-standard-branch-protection.
8860 * configure: Regenerated.
8861 * doc/install.texi: Document the same.
8863 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8864 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8866 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
8867 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
8868 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
8870 * config/aarch64/aarch64-bti-insert.c: New file.
8871 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
8873 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
8875 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
8876 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
8877 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
8878 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
8880 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8882 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
8883 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
8884 Disable bti for -mbranch-protection=none.
8885 (aarch64_handle_standard_branch_protection): Enable bti for
8886 -mbranch-protection=standard.
8887 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
8888 -mbranch-protection.
8889 (aarch64_bti_enabled): Check if bti is enabled.
8890 * config/aarch64/aarch64.opt: Declare target variable.
8891 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
8893 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8895 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
8896 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
8897 (aarch64_expand_epilogue): Likewise.
8898 (aarch64_output_mi_thunk): Likewise
8899 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
8900 TAILCALL_ADDR_REGS to x16 and x17.
8901 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
8903 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8905 * config/aarch64/aarch64-option-extensions.def: Define
8906 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
8907 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
8908 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
8909 (AARCH64_FL_PREDRES): New.
8910 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
8911 AARCH64_FL_PREDRES by default.
8912 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
8914 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8916 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
8918 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
8919 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
8920 * doc/invoke.texi: Document ARMv8.5-A.
8922 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8924 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
8925 (xorsign<mode>3): Likewise.
8927 2019-01-09 Jelinek <jakub@redhat.com>
8930 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
8931 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
8933 PR rtl-optimization/88331
8934 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
8935 not currently_expanding_to_rtl.
8937 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8939 * doc/invoke.texi (-Os): Remove trailing spaces.
8940 (-finline-functions): Remove reference to -O2.
8942 2019-01-08 Jakub Jelinek <jakub@redhat.com>
8944 PR rtl-optimization/79593
8945 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
8947 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
8948 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
8950 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
8953 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
8957 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
8958 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
8960 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
8963 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
8964 ix86_avx_u128_mode_entry.
8966 2019-01-08 Martin Liska <mliska@suse.cz>
8968 PR tree-optimization/88753
8969 * tree-switch-conversion.c (switch_conversion::build_one_array):
8970 Come up with local variable constructor. Convert first to
8971 type of constructor values.
8973 2019-01-08 Richard Biener <rguenther@suse.de>
8975 PR tree-optimization/86554
8976 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
8977 rpo_avail): Move earlier.
8978 (visit_nary_op): When value-numbering to expressions
8979 with different overflow behavior make sure there's an
8980 available expression on the path.
8982 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
8984 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
8985 aarch64_parse_branch_protection,
8986 struct aarch64_branch_protect_type,
8987 aarch64_handle_no_branch_protection,
8988 aarch64_handle_standard_branch_protection,
8989 aarch64_validate_mbranch_protection,
8990 aarch64_handle_pac_ret_protection,
8991 aarch64_handle_attr_branch_protection,
8992 accepted_branch_protection_string,
8993 aarch64_pac_ret_subtypes,
8994 aarch64_branch_protect_types,
8995 aarch64_handle_pac_ret_leaf): Define.
8996 (aarch64_override_options_after_change_1, aarch64_override_options):
8997 Add check for accepted_branch_protection_string.
8998 (aarch64_option_save): Save accepted_branch_protection_string.
8999 (aarch64_option_restore): Save accepted_branch_protection_string.
9000 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
9001 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
9002 msign-return-address.
9003 * doc/invoke.texi: Add mbranch-protection.
9005 2019-01-08 Alan Modra <amodra@gmail.com>
9008 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
9009 Delete "unknownp" parameter. Adjust callers. Handle
9010 CONST_INT, PLUS, MINUS, and MULT.
9011 (attr_value_aligned): Renamed from or_attr_value.
9012 (min_attr_value): Return INT_MIN for unhandled rtl case..
9013 (min_fn): ..and translate to INT_MAX here.
9014 (write_length_unit_log): Modify to cope without "unknown".
9015 (write_attr_value): Handle IF_THEN_ELSE.
9017 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9019 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
9020 optimization for masked stores.
9022 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9025 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
9026 output vector directly to duplicate_and_interleave instead of
9027 going through a temporary. Postpone insertion of ctor_seq to
9028 the end of the loop.
9030 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
9033 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
9034 unsigned_p. Handle signed and unsigned overflow correction as
9036 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
9038 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
9040 (add<mode>3_compareV_imm): Make this callable for expanding.
9041 (subv<GPI:mode>4): Use register_operand for operand 1. Use
9042 aarch64_plus_operand for operand 2.
9043 (subv<GPI:mode>_insn): New insn pattern.
9044 (subv<GPI:mode>_imm): Likewise.
9045 (negv<GPI:mode>3): New expand pattern.
9046 (negv<GPI:mode>_insn): New insn pattern.
9047 (negv<GPI:mode>_cmp_only): Likewise.
9048 (cmpv<GPI:mode>_insn): Likewise.
9049 (subvti4): Use register_operand for operand 1. Update call to
9050 aarch64_expand_subvti.
9051 (usubvti4): Likewise.
9052 (negvti3): New expand pattern.
9053 (negdi_carryout): New insn pattern.
9054 (negvdi_carryinV): New insn pattern.
9055 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
9056 version the named version.
9057 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
9059 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
9061 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
9063 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
9064 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
9065 (sub<mode>3_carryinCV): Delete.
9066 (sub<GPI:mode>3_carryinV): New expand pattern.
9067 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
9069 2019-01-07 Richard Biener <rguenther@suse.de>
9071 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
9072 of tree_operand_hash.
9074 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9076 PR tree-optimization/88598
9077 * tree.h (single_nonzero_element): Declare.
9078 * tree.c (single_nonzero_element): New function.
9079 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
9080 if I is the only nonzero element of CST.
9082 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9084 PR tree-optimization/88598
9085 * tree.h (initializer_each_zero_or_onep): Declare.
9086 * tree.c (initializer_each_zero_or_onep): New function.
9087 (signed_or_unsigned_type_for): Handle float types too.
9088 (unsigned_type_for, signed_type_for): Update comments accordingly.
9089 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
9090 x & { 0 or -1, 0 or -1, ... }.
9092 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
9094 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
9095 with x86_64-pc-linux-gnu.
9097 2019-01-07 Tom de Vries <tdevries@suse.de>
9100 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
9102 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
9105 2019-01-07 Jakub Jelinek <jakub@redhat.com>
9107 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
9108 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
9109 TARGET_AVX512F as condition.
9112 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
9113 const_not_ok_for_debug_p target hook.
9114 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
9115 on UNSPEC and subexpressions thereof if all subexpressions of the
9116 UNSPEC are CONSTANT_P.
9118 PR tree-optimization/88676
9119 * tree-ssa-phiopt.c (two_value_replacement): New function.
9120 (tree_ssa_phiopt_worker): Call it.
9123 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
9124 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
9127 * tree-vect-generic.c: Include insn-config.h and recog.h.
9128 (expand_vector_piecewise): Add defaulted ret_type argument,
9129 if non-NULL, use that in preference to type for the result type.
9130 (expand_vector_parallel): Formatting fix.
9131 (do_vec_conversion, do_vec_narrowing_conversion,
9132 expand_vector_conversion): New functions.
9133 (expand_vector_operations_1): Call expand_vector_conversion
9134 for VEC_CONVERT ifn calls.
9135 * internal-fn.def (VEC_CONVERT): New internal function.
9136 * internal-fn.c (expand_VEC_CONVERT): New function.
9137 * fold-const-call.c (fold_const_vec_convert): New function.
9138 (fold_const_call): Use it for CFN_VEC_CONVERT.
9139 * doc/extend.texi (__builtin_convertvector): Document.
9141 2019-01-07 Tom de Vries <tdevries@suse.de>
9143 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
9144 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
9145 vector_red_partition, vector_red_sym): New global variables.
9146 (nvptx_option_override): Initialize vector_red_sym.
9147 (nvptx_declare_function_name): Restore red_partition register.
9148 (nvptx_file_end): Emit code to declare the vector reduction variables.
9149 (nvptx_output_red_partition): New function.
9150 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
9151 large vector reductions.
9152 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
9153 (nvptx_init_builtins): Add VECTOR_ADDR.
9154 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
9155 Handle nvptx_expand_shared_addr.
9156 (nvptx_get_shared_red_addr): Add vector argument and handle large
9158 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
9160 (nvptx_goacc_reduction_init): Likewise.
9161 (nvptx_goacc_reduction_fini): Likewise.
9162 (nvptx_goacc_reduction_teardown): Likewise.
9163 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
9164 init,fini,teardown}.
9165 (nvptx_init_axis_predicate): Initialize vector_red_partition.
9166 (nvptx_set_current_function): Init vector_red_partition.
9167 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
9168 (nvptx_red_partition): New insn.
9169 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
9171 2019-01-07 Tom de Vries <tdevries@suse.de>
9174 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
9177 2019-01-07 Tom de Vries <tdevries@suse.de>
9179 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
9180 (nvptx_option_override): Init oacc_bcast_partition.
9181 (nvptx_init_oacc_workers): New function.
9182 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
9183 (nvptx_needs_shared_bcast): New function.
9184 (nvptx_find_par): Generalize to enable vectors to use shared-memory
9186 (nvptx_shared_propagate): Initialize vector bcast partition and
9187 synchronization state.
9188 (nvptx_single): Generalize to enable vectors to use shared-memory
9190 (nvptx_process_pars): Likewise.
9191 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
9192 * config/nvptx/nvptx.h (struct machine_function): Add
9193 bcast_partition and sync_bar members.
9195 2019-01-07 Tom de Vries <tdevries@suse.de>
9197 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
9198 (nvptx_apply_dim_limits): New function.
9199 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
9202 2019-01-07 Tom de Vries <tdevries@suse.de>
9204 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
9205 as late as possible.
9207 2019-01-07 Tom de Vries <tdevries@suse.de>
9209 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
9210 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
9211 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
9212 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
9213 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
9215 2019-01-07 Tom de Vries <tdevries@suse.de>
9217 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
9219 2019-01-07 Tom de Vries <tdevries@suse.de>
9221 * omp-offload.c (oacc_get_min_dim): New function.
9222 * omp-offload.h (oacc_get_min_dim): Declare.
9224 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
9227 * config/i386/i386.c (function_value_ms_64): Return small sturct in
9228 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
9230 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9234 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
9236 * ipa-inline.c (edge_badness): Use inlined_time instead of
9237 inline_summaries->get.
9239 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9241 * opts.c (enable_fdo_optimizations): Enable
9242 version-loops-for-strides, loop-interchange, unrol-and-jam
9243 and tree-loop-distribution.
9244 * invoke.texi: Document newly enabled options.
9246 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9248 * doc/invoke.texi (max-inline-insns-small): New parameters.
9249 * ipa-inline.c (want_early_inline_function_p): simplify.
9250 (want_inline_small_function_p): Fix pasto from previous patch;
9251 use max-inline-insns-small bound.
9252 * params.def (max-inline-insns-small): New param.
9253 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
9254 variables correctly.
9256 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9258 * doc/invoke.texi: Document max-inline-insns-size,
9259 uninlined-function-insns, uninlined-function-time,
9260 uninlined-thunk-insns and uninlined-thunk-time.
9261 * params.def: Add max-inline-insns-size,
9262 uninlined-function-insns, uninlined-function-time,
9263 uninlined-thunk-insns and uninlined-thunk-time.
9264 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
9266 * ipa-inline.c (can_inline_edge_by_limits_p,
9267 want_inline_small_function_p): Use new parameters.
9269 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9271 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
9273 2019-01-05 Jakub Jelinek <jakub@redhat.com>
9277 * expr.c (expand_assignment): For calls returning VLA structures
9278 if to_rtx is not a MEM, force it into a stack temporary.
9281 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
9282 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
9283 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
9284 subexpressions of both operands.
9285 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
9286 subrtxes are CONSTANT_P.
9287 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
9290 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
9292 * params.def (hot-bb-count-ws-permille): Set to 990.
9294 2019-01-04 Martin Sebor <msebor@redhat.com>
9297 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
9300 2019-01-04 Martin Sebor <msebor@redhat.com>
9303 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
9305 2019-01-04 Jakub Jelinek <jakub@redhat.com>
9307 * gdbinit.in: Turn off pagination for the skip commands, restore
9308 it to previous state afterwards.
9310 2019-01-04 Jakub Jelinek <jakub@redhat.com>
9313 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
9314 of GET_MODE (opN) as modes of the libcall arguments.
9316 2019-01-04 Jan Beulich <jbeulich@suse.com>
9318 * config/i386/sse.md
9319 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
9320 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
9321 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
9322 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
9323 avx512f_vmcmp<mode>3<round_saeonly_name>,
9324 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
9325 avx512f_maskcmp<mode>3,
9326 <avx512>_cvt<ssemodesuffix>2mask<mode>,
9327 <avx512>_cvt<ssemodesuffix>2mask<mode>,
9328 *<avx512>_cvtmask2<ssemodesuffix><mode>,
9329 *<avx512>_cvtmask2<ssemodesuffix><mode>,
9330 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
9331 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
9332 <avx512>_gt<mode>3<mask_scalar_merge_name>,
9333 <avx512>_gt<mode>3<mask_scalar_merge_name>,
9334 <avx512>_testm<mode>3<mask_scalar_merge_name>,
9335 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
9336 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
9337 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
9338 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
9339 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
9340 avx512cd_maskb_vec_dup<mode>,
9341 avx512cd_maskw_vec_dup<mode>,
9342 avx512dq_fpclass<mode><mask_scalar_merge_name>,
9343 avx512dq_vmfpclass<mode>,
9344 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
9347 2019-01-03 Martin Sebor <msebor@redhat.com>
9349 PR tree-optimization/88659
9350 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
9352 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9354 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
9355 unaligned vsx and avoid lxvd2x/stxvd2x.
9356 (gen_lvx_v4si_move): New function.
9358 2019-01-03 Tom de Vries <tdevries@suse.de>
9360 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
9361 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
9363 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
9365 2019-01-03 Tom de Vries <tdevries@suse.de>
9367 * config/nvptx/nvptx.c (struct offload_attrs): New.
9368 (populate_offload_attrs): New function. Factor mask extraction out of
9369 nvptx_reorg. Add extraction of dimensions.
9370 (nvptx_reorg): Use populate_offload_attrs.
9372 2019-01-03 Tom de Vries <tdevries@suse.de>
9374 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
9375 cases for oacc_min_dims_p and routine_p. Add asserts for
9376 oacc_default_dims_p and offload_region_p.
9378 2019-01-03 Tom de Vries <tdevries@suse.de>
9380 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
9382 (nvptx_goacc_validate_dims): ... here.
9384 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
9386 PR tree-optimization/85574
9387 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
9389 (struct ssa_equip_hash_traits): Declare.
9390 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
9392 2019-01-03 Jakub Jelinek <jakub@redhat.com>
9395 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
9396 change it to qualified_type.
9398 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
9400 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
9401 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
9403 2019-01-02 Martin Sebor <msebor@redhat.com>
9404 Jeff Law <law@redhat.com>
9406 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
9407 (get_range_strlen_tree): Update appropriately.
9409 * gimple-fold.h (get_range_strlen): Drop unused last argument.
9411 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
9412 rather than set_range_info.
9413 * tree-ssa-strlen.c (set_strlen_range): Extracted from
9414 maybe_set_strlen_range. Handle potentially boundary crossing
9415 cases more conservatively.
9416 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
9417 Call set_strlen_range.
9418 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
9421 * gimple-fold.c (get_range_strlen): Update prototype to no longer
9422 need the flexp argument.
9423 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
9424 from calls to get_range_strlen. Update comments. Just update
9425 VAL for an unterminated const char array and let the reset of the
9426 code handle it normally. No longer try to set *flexp. Adjust
9428 (get_range_strlen): Update for the new get_range_strlen API.
9429 (get_maxval_strlen): Similarly.
9430 (gimple_fold_builtin_strlen): Handle update meaning of return value
9431 from get_range_strlen.
9432 * gimple-ssa-sprintf.c (get_string_length): Update for the new
9433 get_range_strlen API.
9435 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
9438 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
9439 false at WPA time when body was removed.
9441 2019-01-02 Martin Liska <mliska@suse.cz>
9443 PR tree-optimization/88650
9444 * predict.c (set_even_probabilities): Calculate probability
9445 remainer only when really used.
9447 2019-01-02 Richard Biener <rguenther@suse.de>
9450 * tree-data-ref.c (analyze_subscript_affine_affine): Use
9451 widest_ints when mangling max_stmt_execution results.
9453 2019-01-02 Richard Biener <rguenther@suse.de>
9455 PR tree-optimization/88621
9456 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
9457 bitfields when canoncalizing.
9459 2019-01-02 Richard Biener <rguenther@suse.de>
9462 * config/i386/x86-tune-costs.h (intel_cost): Adjust
9463 cost of cheap SSE instruction.
9465 2019-01-02 Richard Biener <rguenther@suse.de>
9468 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
9469 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
9471 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
9472 set after UIDs before splitting them.
9474 2019-01-01 Martin Sebor <msebor@redhat.com>
9475 Jeff Law <law@redhat.com>
9477 * gimple-fold.c (get_range_strlen_tree): Record if the computed
9478 length is optimistic. If it is, then arrange to compute the
9479 conservative length as well.
9481 * gimple-fold.h (get_range_strlen): Update prototype.
9482 * builtins.c (check_access): Update call to get_range_strlen to use
9483 c_strlen_data pointer. Change various variable accesses to instead
9484 pull data from the c_strlen_data structure.
9485 (check_strncat_sizes, expand_builtin_strncat): Likewise.
9486 * calls.c (maybe_warn_nonstring_arg): Likewise.
9487 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
9488 minimum length if maximum lengh is unknown.
9489 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
9490 that used c_strlen, it's no longer needed. Restructure slightly.
9491 (format_string): Set unlikely range appropriately.
9492 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
9494 (get_range_strlen): Accept c_strlen_data pointer for external
9495 call sites as well. Pass through to call to internal get_range_strlen.
9496 Adjust minlen, maxlen and maxbound as needed.
9497 (get_maxval_strlen): Update comments.
9498 (gimple_fold_builtin_strlen): Update call to get_range_strlen
9499 to use c_strlen_data pointer. Change variable accesses to instead
9500 use c_strlen_data data members.
9502 * gimple-fold.c (get_range_strlen): Update prototype.
9503 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
9504 local variables. Use pdata to return information to caller.
9505 Update calls to get_range_strlen. Update pdata->maxbound.
9506 (get_range_strlen -- static version): Similarly.
9507 (get_range_strlen -- extern version): Update for internal
9508 get_range_strlen API change. Convert to external data format.
9509 (get_maxval_strlen): Similarly.
9511 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
9513 * coverage.c (get_coverage_counts): Use current_function_decl.
9514 * profile.c (read_thunk_profile): New function.
9515 (branch_prob): Add THUNK parameter.
9516 * tree-profile.c (tree_profiling): Handle thunks.
9517 * value-prof.c (init_node_map): Handle thunks.
9518 * value-prof.h (branch_prob): Upate prototype.
9519 (read_thunk_profile): Declare.
9521 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9523 Update copyright years.
9525 * gcc.c (process_command): Update copyright notice dates.
9526 * gcov-dump.c (print_version): Ditto.
9527 * gcov.c (print_version): Ditto.
9528 * gcov-tool.c (print_version): Ditto.
9529 * gengtype.c (create_file): Ditto.
9530 * doc/cpp.texi: Bump @copying's copyright year.
9531 * doc/cppinternals.texi: Ditto.
9532 * doc/gcc.texi: Ditto.
9533 * doc/gccint.texi: Ditto.
9534 * doc/gcov.texi: Ditto.
9535 * doc/install.texi: Ditto.
9536 * doc/invoke.texi: Ditto.
9538 Copyright (C) 2019 Free Software Foundation, Inc.
9540 Copying and distribution of this file, with or without modification,
9541 are permitted in any medium without royalty provided the copyright
9542 notice and this notice are preserved.