1 2019-05-23 Jan Hubicka <jh@suse.cz>
2 Martin Liska <mliska@suse.cz>
4 PR tree-optimization/90576
5 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
7 (aliasing_component_refs_p): Fix three way size compare conditional;
8 give up earlier in case we can not decide on equivalence.
10 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11 Michael Meissner <meissner@linux.ibm.com>
12 Segher Boessenkool <segher@kernel.crashing.org>
14 * config.gcc: Add future cpu.
15 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
16 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
18 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
19 (RS6000_CPU): New instantiation for future cpu.
20 * config/rs6000/rs6000-opts.h (enum processor_type): Add
22 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
23 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
24 * config/rs6000/rs6000-tables.opt: Regenerate.
25 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
27 (rs6000_machine_from_flags): Handle future cpu.
28 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
29 PROCESSOR_POWER9 for now.
30 (rs6000_adjust_cost): Likewise.
31 (rs6000_issue_rate): Likewise.
32 (rs6000_register_move_cost): Likewise.
33 (rs6000_opt_masks): Add entry for future.
34 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
35 (MASK_FUTURE): New #define.
36 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
37 * config/rs6000/rs6000.opt (mfuture): New target option.
38 * doc/invoke.texi (mcpu): Add future cpu.
40 2019-05-23 Martin Liska <mliska@suse.cz>
43 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
44 operation points to a temporary (pointed via tree_to_wide_ref)
45 that is out of scope after the &.
47 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
50 * doc/extend.texi (Function Names): Add missing word.
52 2019-05-23 Richard Biener <rguenther@suse.de>
54 PR tree-optimization/88440
55 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
57 * tree-loop-distribution.c (generate_memset_builtin): Fold the
59 (generate_memcpy_builtin): Likewise.
60 (distribute_loop): Pass in whether to only distribute patterns.
61 (prepare_perfect_loop_nest): Also allow size optimization.
62 (pass_loop_distribution::execute): When optimizing a loop
63 nest for size allow pattern replacement.
65 2019-05-23 Jakub Jelinek <jakub@redhat.com>
68 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
71 2019-05-23 Martin Liska <mliska@suse.cz>
74 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
75 expression similarly to gimplify_decl_expr.
77 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
79 * cse.c (cse_dump_path): s/dump_file/f.
81 2019-05-22 David Malcolm <dmalcolm@redhat.com>
84 * diagnostic-format-json.cc: Include "selftest.h".
85 (json_from_expanded_location): Only add "file" key for non-NULL
87 (json_from_location_range): Don't add "start" and "finish"
88 children if they are UNKNOWN_LOCATION.
89 (selftest::test_unknown_location): New selftest.
90 (selftest::test_bad_endpoints): New selftest.
91 (selftest::diagnostic_format_json_cc_tests): New function.
92 * json.cc (json::object::get): New function.
93 (selftest::test_object_get): New selftest.
94 (selftest::json_cc_tests): Call it.
95 * json.h (json::object::get): New decl.
96 * selftest-run-tests.c (selftest::run_tests): Call
97 selftest::diagnostic_format_json_cc_tests.
98 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
101 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
102 Andrew Stubbs <amd@codesourcery.com>
104 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
105 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
106 (kernel): Rename to...
107 (main_kernel): ... this.
108 (load_image): Load _init_array and _fini_array kernels.
109 (run): Add argument for kernel to run.
110 (main): Run init_array_kernel before main_kernel, and
111 fini_array_kernel after.
112 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
113 amdgpu_hsa_kernel attribute on functions.
114 (gcn_disable_constructors): Delete.
115 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
116 * config/gcn/crt0.c (size_t): Define.
117 (_init_array, _fini_array): New.
118 (__preinit_array_start, __preinit_array_end,
119 __init_array_start, __init_array_end,
120 __fini_array_start, __fini_array_end): Declare weak references.
122 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
124 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
126 2019-05-22 Jason Merrill <jason@redhat.com>
128 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
130 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
133 * config/i386/i386-options.c (ix86_init_machine_status): Set
134 stack_frame_required to true.
135 * config/i386/i386.c (ix86_get_frame_size): New function.
136 (ix86_frame_pointer_required): Replace get_frame_size with
138 (ix86_compute_frame_layout): Likewise.
139 (ix86_find_max_used_stack_alignment): Changed to void. Set
140 stack_frame_required.
141 (ix86_finalize_stack_frame_flags): Always call
142 ix86_find_max_used_stack_alignment. Replace get_frame_size with
144 * config/i386/i386.h (machine_function): Add stack_frame_required.
146 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
148 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
150 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
152 * common/config/aarch64/aarch64-common.c
153 (struct aarch64_option_extension, struct processor_name_to_arch,
154 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
155 aarch64_contains_opt,
156 aarch64_get_extension_string_for_isa_flags): Change type of
157 variables storing flags to uint64_t.
158 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
159 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
160 * config/aarch64/aarch64.c (struct processor,
161 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
162 aarch64_validate_march, aarch64_override_options,
163 aarch64_option_print, aarch64_handle_attr_isa_flags,
164 aarch64_declare_function_name, aarch64_start_file): Make flag
166 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
167 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
168 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
169 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
170 * config/aarch64/driver-aarch64.c
171 (struct aarch64_arch_extension, struct aarch64_core_data,
172 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
173 flag variables uint64_t.
174 * doc/invoke.texi: Add documentation for new arguments.
176 2019-05-22 Richard Biener <rguenther@suse.de>
178 * alias.c (ao_ref_from_mem): Move stack-slot sharing
180 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
182 2019-05-22 Martin Liska <mliska@suse.cz>
185 * doc/extend.texi: Document the change.
187 2019-05-22 Richard Biener <rguenther@suse.de>
189 PR tree-optimization/90450
190 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
191 (mem_ref_hasher::equal): Check it.
192 (mem_ref_alloc): Initialize it.
193 (gather_mem_refs_stmt): Set it.
195 2019-05-22 Richard Biener <rguenther@suse.de>
197 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
199 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
202 2019-05-22 Alan Modra <amodra@gmail.com>
204 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
205 (ASM_CPU_SPEC): Conditionally add -many.
206 * config/rs6000/rs6000.c (rs6000_machine): New static var.
207 (rs6000_machine_from_flags, emit_asm_machine): New functions..
208 (rs6000_file_start): ..extracted from here, and modified to
210 (rs6000_output_function_prologue): Emit .machine as necessary.
211 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
213 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
214 added by check_vect_support_and_set_flags.
215 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
216 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
218 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
221 * ira-lives.c (process_bb_node_lives): Consider defs
222 for a call insn to be die before the call, not after.
224 * function.c (assign_parm_setup_block): Raise alignment of
225 stacked parameter only for STRICT_ALIGNMENT targets.
227 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
229 * config/rs6000/constraints.md (define_register_constraint "wz"):
231 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
232 RS6000_CONSTRAINT_wz.
233 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
234 (rs6000_init_hard_regno_mode_ok): Adjust.
235 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
236 * doc/md.texi (Machine Constraints): Adjust.
238 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
240 * config/rs6000/constraints.md (define_register_constraint "wl"):
242 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
243 RS6000_CONSTRAINT_wl.
244 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
245 (rs6000_init_hard_regno_mode_ok): Adjust.
246 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
247 * doc/md.texi (Machine Constraints): Adjust.
249 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
251 * config/rs6000/constraints.md (define_register_constraint "wm"):
253 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
254 RS6000_CONSTRAINT_wm.
255 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
256 (rs6000_init_hard_regno_mode_ok): Adjust.
257 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
258 * doc/md.texi (Machine Constraints): Adjust.
260 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
262 * config/rs6000/constraints.md (define_register_constraint "wk"):
264 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
265 RS6000_CONSTRAINT_wk.
266 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
267 (rs6000_init_hard_regno_mode_ok): Adjust.
268 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
269 * doc/md.texi (Machine Constraints): Adjust.
271 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
273 * config/rs6000/constraints.md (define_register_constraint "wj"):
275 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
276 RS6000_CONSTRAINT_wj.
277 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
278 (rs6000_init_hard_regno_mode_ok): Adjust.
279 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
281 * config/rs6000/vsx.md: Ditto.
282 * doc/md.texi (Machine Constraints): Adjust.
284 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
286 * config/rs6000/constraints.md (define_register_constraint "wh"):
288 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
289 RS6000_CONSTRAINT_wh.
290 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
291 (rs6000_init_hard_regno_mode_ok): Adjust.
292 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
293 * doc/md.texi (Machine Constraints): Adjust.
295 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
298 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
299 Avoid calling gen_lowpart with CONST operand.
301 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
303 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
304 field template_last_to_copy.
305 (ssa_create_duplicates): Set it, and use it. Attempt to
306 preserve more debug stmts.
308 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
310 * config/i386/sse.md (VF1_AVX2): New mode iterator.
311 (signbit<mode>2): New expander
313 2019-05-21 James Clarke <jrtc27@jrtc27.com>
316 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
317 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
319 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
321 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
322 %ebx and %ecx bafore calling cpuid with leaf 1 or
323 non-constant leaf argument.
325 2019-05-21 Alan Modra <amodra@gmail.com>
328 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
329 power9 direct move cost.
330 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
331 Correct comments and rename functions to suit parameters.
333 2019-05-21 Richard Biener <rguenther@suse.de>
336 * fold-const.c (fold_read_from_vector): New function.
337 * fold-const.h (fold_read_from_vector): Declare.
338 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
339 single-element insert permutations. Canonicalize selector
340 further and fix issue with last commit.
342 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
344 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
345 parameter with default value false to declaration.
346 (split_edges_for_insertion): New inline function. Wrapper for
347 split_critical_edges with for_edge_insertion_p = true.
348 * tree-cfg.c (split_critical_edges): Don't split non-critical
349 edges if for_edge_insertion_p is false. Fix whitespace.
350 * tree-ssa-pre.c (pass_pre::execute): Call
351 split_edges_for_insertion instead of split_critical_edges.
352 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
353 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
354 (pass_data_sink_code): Update function name in the comment.
356 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
358 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
359 around is_value_included_in that knows how to handle BIT_AND_EXPR.
360 (is_pred_expr_subset_of): Use the new function. Handle more cases where
361 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
364 2019-05-21 Martin Liska <mliska@suse.cz>
366 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
368 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
369 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
371 * config/rs6000/rs6000.c (rs6000_option_override_internal):
373 (rs6000_function_arg): Likewise.
374 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
375 (rs6000_expand_ternop_builtin): Use interval syntax.
376 (get_element_number): Likewise.
377 (altivec_expand_builtin): Likewise.
378 (rs6000_get_function_versions_dispatcher): Quote target_clones.
382 2019-05-20 Jakub Jelinek <jakub@redhat.com>
386 * function.h (struct function): Add calls_eh_return member.
387 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
388 gimplifying __builtin_eh_return call.
389 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
391 (expand_call_inline): Or in src_cfun->calls_eh_return into
392 dst_cfun->calls_eh_return.
393 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
394 cfun->calls_eh_return.
395 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
396 * lto-streamer-out.c (output_struct_function_base): Write
399 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
401 PR rtl-optimization/43147
402 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
405 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
407 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
408 (refs_may_alias_p_1): ... here; update stats.
409 (refs_may_alias_p): Do not update stats here.
411 2019-05-20 Richard Biener <rguenther@suse.de>
413 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
414 doesn't produce pointers.
415 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
416 the first operand points to.
418 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
420 * tree-ssa-alias.c (compare_sizes): New function.
421 (sompare_type_sizes): New function
422 (aliasing_component_refs_p): Use it.
423 (indirect_ref_may_alias_decl_p): Likewise.
425 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
427 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
429 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
431 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
432 (LIBLSAN_EARLY_SPEC): Likewise.
433 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
435 2019-05-20 Martin Liska <mliska@suse.cz>
437 * config/i386/i386.c (ix86_libc_has_fast_function):
438 Add ATTRIBUTE_UNUSED for the argument.
440 2019-05-20 Richard Biener <rguenther@suse.de>
442 * gimple-match-head.c: Include vec-perm-indices.h.
443 * generic-match-head.c: Likewise.
444 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
446 * fold-const.c (fold_vec_perm): Export.
447 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
450 2019-05-20 Jakub Jelinek <jakub@redhat.com>
452 * cfgloop.h (struct loop): Add simdlen member.
453 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
454 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
455 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
456 as new argument to autovectorize_vector_sizes target hook. If
457 loop->simdlen, pick up vector size where the vectorization factor
458 is equal to loop->simd, and if there is none, fall back to the first
460 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
462 * omp-low.c (omp_clause_aligned_alignment): Likewise.
463 * omp-general.c (omp_max_vf): Likewise.
464 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
465 * tree-vect-slp.c (vect_slp_bb): Likewise.
466 * target.def (autovectorize_vector_sizes): Add ALL argument and
468 * doc/tm.texi: Adjust documentation.
469 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
470 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
471 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
473 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
474 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
475 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
476 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
477 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
478 preferred vector size is not 512-bit or 256-bit, just put those
479 unpreferred ones last.
481 2019-05-20 Martin Liska <mliska@suse.cz>
483 * targhooks.c (default_libc_has_fast_function): New function.
484 * targhooks.h (default_libc_has_fast_function): Likewise.
486 2019-05-20 Martin Liska <mliska@suse.cz>
489 * builtins.c (expand_builtin_memory_copy_args): When having a
490 target with fast mempcpy implementation do now use memcpy.
491 * config/i386/i386.c (ix86_libc_has_fast_function): New.
492 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
493 * doc/tm.texi: Likewise.
494 * doc/tm.texi.in: Likewise.
496 * expr.c (emit_block_move_hints): Add 2 new arguments.
497 * expr.h (emit_block_move_hints): Bail out when libcall
498 to memcpy would be used.
500 2019-05-20 Martin Liska <mliska@suse.cz>
502 * profile-count.c: Add vertical spacing in order
503 to separate functions.
504 * profile-count.h: Likewise.
506 2019-05-20 Martin Liska <mliska@suse.cz>
508 * profile-count.h: Do not use full qualified
510 * profile-count.c (profile_count::to_frequency): Likewise.
512 2019-05-20 Martin Liska <mliska@suse.cz>
514 * profile-count.h (enum profile_quality): Use capital letters
515 for enum value names. Use the adjusted names.
516 * profile-count.c: Use the adjusted names.
518 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
520 * config/rs6000/constraints.md (define_register_constraint "wH"):
522 (define_register_constraint "wI"): Delete.
523 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
524 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
525 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
526 (rs6000_init_hard_regno_mode_ok): Adjust.
527 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
528 resp. "d", or with "wa" as appropriate, all with "p8v".
529 * config/rs6000/vsx.md: Ditto.
530 * doc/md.texi (Machine Constraints): Adjust.
532 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
534 * config/rs6000/constraints.md (define_register_constraint "wy"):
536 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
537 RS6000_CONSTRAINT_wy.
538 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
539 (rs6000_init_hard_regno_mode_ok): Adjust.
540 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
541 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
542 (define_mode_attr Fisa): New.
543 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
544 * doc/md.texi (Machine Constraints): Adjust.
546 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
548 * config/rs6000/constraints.md (define_register_constraint "wu"):
550 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
551 RS6000_CONSTRAINT_wu.
552 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
553 (rs6000_init_hard_regno_mode_ok): Adjust.
554 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
556 (define_mode_attr Fa): Delete.
557 * config/rs6000/vsx.md: Ditto.
558 * doc/md.texi (Machine Constraints): Adjust.
560 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
562 * config/rs6000/constraints.md (define_register_constraint "wJ"):
564 (define_register_constraint "wK"): Delete.
565 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
566 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
567 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
568 (rs6000_init_hard_regno_mode_ok): Adjust.
569 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
570 Replace "wK" constraint by "wH" with "p9v".
571 * config/rs6000/vsx.md: Ditto.
572 * doc/md.texi (Machine Constraints): Adjust.
574 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
576 * config/rs6000/constraints.md (define_register_constraint "wb"):
578 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
579 RS6000_CONSTRAINT_wb.
580 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
581 (rs6000_init_hard_regno_mode_ok): Adjust.
582 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
583 * config/rs6000/vsx.md: Ditto.
584 * doc/md.texi (Machine Constraints): Adjust.
586 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
588 * config/rs6000/constraints.md (define_register_constraint "wo"):
590 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
591 RS6000_CONSTRAINT_wo.
592 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
593 (rs6000_init_hard_regno_mode_ok): Adjust.
594 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
595 * config/rs6000/altivec.md: Ditto.
596 * doc/md.texi (Machine Constraints): Adjust.
598 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
600 * config/darwin-c.c (darwin_register_objc_includes): Do not
601 prepend the sysroot when building gnu-runtime header search
604 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
606 * config/darwin.c (darwin_file_end): Use switch_to_section ()
607 instead of direct output of the asm.
609 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
611 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
612 argument to be type bool (was int before).
613 (rs6000_emit_epilogue): Simplify some code. Declare some variables
614 at first use. Use type bool for some variables. Fix a theoretical
615 eh_return bug for svr4.
617 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
619 * config/rs6000/rs6000.md (isa): New attribute.
620 (enabled): New attribute.
622 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
624 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
625 assemble_start_function and assemble_end_function.
627 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
630 * omp-general.c (oacc_verify_routine_clauses): Change formal
631 parameters. Add checking if already marked with an OpenACC
632 'routine' directive. Adjust all users.
635 * omp-general.c (oacc_build_routine_dims): Move some of its
637 (oacc_verify_routine_clauses): ... this new function.
638 * omp-general.h (oacc_verify_routine_clauses): New prototype.
640 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
642 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
643 formating of picbase labels to match other ports.
645 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
647 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
648 in the generated code.
650 2019-05-16 Martin Sebor <msebor@redhat.com>
652 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
653 identifiers, keywords, operators, and types in diagnostics. Correct
654 quoting, spelling, and sentence capitalization issues.
655 (expand_builtin_atomic_is_lock_free): Same.
656 (fold_builtin_next_arg): Same.
657 * cfgexpand.c (expand_one_var): Same.
658 (tree_conflicts_with_clobbers_p): Same.
659 (expand_asm_stmt): Same.
660 (verify_loop_structure): Same.
661 * cgraphunit.c (process_function_and_variable_attributes): Same.
662 * collect-utils.c (collect_execute): Same.
663 * collect2.c (maybe_run_lto_and_relink): Same.
664 (is_lto_object_file): Same.
665 (scan_prog_file): Same.
666 * convert.c (convert_to_real_1): Same.
667 * dwarf2out.c (dwarf2out_begin_prologue): Same.
668 * except.c (verify_eh_tree): Same.
669 * gcc.c (execute): Same.
670 (eval_spec_function): Same.
672 (driver::set_up_specs): Same.
673 (compare_debug_auxbase_opt_spec_function): Same.
674 * gcov-tool.c (unlink_gcda_file): Same.
677 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
678 * gimplify.c (gimplify_asm_expr): Same.
679 (gimplify_adjust_omp_clauses): Same.
680 * hsa-gen.c (gen_hsa_addr_insns): Same.
681 (gen_hsa_insns_for_load): Same.
682 (gen_hsa_cmp_insn_from_gimple): Same.
683 (gen_hsa_insns_for_operation_assignment): Same.
684 (gen_get_level): Same.
685 (gen_hsa_alloca): Same.
686 (omp_simple_builtin::generate): Same.
687 (gen_hsa_atomic_for_builtin): Same.
688 (gen_hsa_insns_for_call): Same.
689 * input.c (dump_location_info): Same.
690 * ipa-devirt.c (compare_virtual_tables): Same.
691 * ira.c (ira_setup_eliminable_regset): Same.
692 * lra-assigns.c (lra_assign): Same.
693 * lra-constraints.c (lra_constraints): Same.
694 * lto-streamer-in.c (lto_input_mode_table): Same.
695 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
696 (merge_and_complain): Same.
697 (compile_offload_image): Same.
698 (compile_images_for_offload_targets): Same.
699 (debug_objcopy): Same.
702 * opts.c (print_specific_help): Same.
703 (parse_no_sanitize_attribute): Same.
705 (handle_param): Same.
706 * plugin.c (add_new_plugin): Same.
707 (parse_plugin_arg_opt): Same.
708 (try_init_one_plugin): Same.
709 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
710 operators, and types in diagnostics. Correct quoting and spelling
712 * read-rtl-function.c (parse_edge_flag_token): Same.
713 (function_reader::parse_enum_value): Same.
714 * reg-stack.c (check_asm_stack_operands): Same.
715 * regcprop.c (validate_value_data): Same.
716 * sched-rgn.c (make_pass_sched_fusion): Same.
717 * stmt.c (check_unique_operand_names): Same.
718 * targhooks.c (default_target_option_pragma_parse): Same.
719 * tlink.c (recompile_files): Same.
720 * toplev.c (process_options): Same.
722 * trans-mem.c (diagnose_tm_1): Same.
723 (ipa_tm_scan_irr_block): Same.
724 (ipa_tm_diagnose_transaction): Same.
725 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
726 format a tree code name in a diagnostic.
727 (verify_types_in_gimple_min_lval): Same.
728 (verify_types_in_gimple_reference): Same.
729 (verify_gimple_call): Same.
730 (verify_gimple_assign_unary): Same.
731 (verify_gimple_assign_binary): Same.
732 (verify_gimple_assign_ternary): Same.
733 (verify_gimple_assign_single): Same.
734 (verify_gimple_switch): Same.
735 (verify_gimple_label): Same.
736 (verify_gimple_phi): Same.
737 (verify_gimple_in_seq): Same.
738 (verify_eh_throw_stmt_node): Same.
739 (collect_subblocks): Same.
740 (gimple_verify_flow_info): Same.
741 (do_warn_unused_result): Same.
742 * tree-inline.c (expand_call_inline): Same.
743 * tree-into-ssa.c (update_ssa): Same.
744 * tree.c (tree_int_cst_elt_check_failed): Same.
745 (tree_vec_elt_check_failed): Same.
746 (omp_clause_operand_check_failed): Same.
747 (verify_type_variant): Same.
749 * value-prof.c (verify_histograms): Same.
750 * varasm.c (assemble_start_function): Same.
752 2019-05-16 Martin Sebor <msebor@redhat.com>
754 * config/i386/i386-expand.c (get_element_number): Quote keywords
755 and other internal names in diagnostics. Adjust other diagnostic
756 formatting issues noted by -Wformat-diag.
757 * config/i386/i386-features.c
758 (ix86_mangle_function_version_assembler_name): Same.
759 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
760 * config/i386/i386.c (ix86_function_type_abi): Same.
761 (ix86_function_ms_hook_prologue): Same.
762 (classify_argument): Same.
763 (ix86_expand_prologue): Same.
764 (ix86_md_asm_adjust): Same.
765 (ix86_memmodel_check): Same.
767 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
769 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
770 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
773 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
776 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
777 intrinsics without SSE/SSE2/SSSE3.
778 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
780 (*mmx_uavgv8qi3): Likewise.
782 2019-05-17 Richard Biener <rguenther@suse.de>
784 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
785 VEC_PERM_EXPR as __VEC_PERM with -gimple.
787 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
789 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
790 vec_sldw insn pattern.
792 2019-05-17 Richard Biener <rguenther@suse.de>
794 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
796 2019-05-17 Martin Liska <mliska@suse.cz>
799 * toplev.c (output_stack_usage): With LTO and sanitizer it
800 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
801 has no file location.
803 2019-05-16 Jakub Jelinek <jakub@redhat.com>
806 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
807 sz0 is equal to sz1, instead return false in that case.
809 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
810 has non-constant expression, force sctx.lane and use two
811 argument IFN_GOMP_SIMD_LANE instead of single argument.
812 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
813 two argument IFN_GOMP_SIMD_LANE without lhs.
814 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
816 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
818 (LOOP_REQUIRES_VERSIONING): Or in
819 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
820 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
822 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
823 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
824 from simd if clause if needed.
826 2019-05-16 Richard Biener <rguenther@suse.de>
828 * tree-affine.c (expr_to_aff_combination): New function split
830 (tree_to_aff_combination): ... here.
831 (aff_combination_expand): Avoid building a GENERIC tree.
833 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
835 * cgraphunit.c (cgraph_node::expand_thunk): Remove
836 assemble_start_function and assemble_end_function calls.
837 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
838 assemble_start_function and assemble_end_function.
839 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
840 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
841 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
842 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
843 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
844 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
845 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
846 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
847 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
848 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
849 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
850 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
852 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
853 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
854 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
855 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
856 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
857 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
858 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
859 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
860 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
861 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
862 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
863 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
864 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
865 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
867 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
868 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
869 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
871 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
873 * tree-ssa-alias.c (alias_stats): Add
874 aliasing_component_refs_p_may_alias and
875 aliasing_component_refs_p_no_alias.
876 (dump_alias_stats): Print aliasing_component_refs_p stats.
877 (aliasing_component_refs_p): Update stats.
879 2019-05-16 Martin Liska <mliska@suse.cz>
882 * multiple_target.c (expand_target_clones): Do not allow
883 target_clones being used with a symbol that is an alias.
885 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
887 PR tree-optimization/90394
888 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
889 positives rather than ICE for cases where (code2 == NE_EXPR
890 && code1 == BIT_AND_EXPR).
892 2019-05-16 Jakub Jelinek <jakub@redhat.com>
895 * tree-core.h (struct tree_decl_common): Document
896 decl_nonshareable_flag for PARM_DECLs.
897 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
898 * calls.c (expand_call): Don't try tail call if caller
899 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
900 passed on the stack and callee needs to pass any arguments on the
902 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
903 else if instead of series of mutually exclusive ifs. Handle
904 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
905 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
907 * lto-streamer.h (LTO_major_version): Bump to 9.
909 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
911 PR tree-optimization/90106
912 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
913 new parameter as new internal function call, also move it to new
915 (use_internal_fn): Pass internal function call to
916 shrink_wrap_one_built_in_call_with_conds.
918 2019-05-15 Jakub Jelinek <jakub@redhat.com>
920 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
922 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
923 safelen_int and set loop->dont_vectorize.
925 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
928 * config/i386/i386-builtin.def: Enable MMX intrinsics with
930 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
932 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
933 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
934 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
937 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
940 * config/i386/mmx.md (*vec_dupv2sf): Changed to
941 define_insn_and_split to support SSE emulation.
942 (*vec_extractv2sf_0): Likewise.
943 (*vec_extractv2sf_1): Likewise.
944 (*vec_extractv2si_0): Likewise.
945 (*vec_extractv2si_1): Likewise.
946 (*vec_extractv2si_zext_mem): Likewise.
947 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
948 (vec_extractv2sf_1 splitter): Likewise.
949 (vec_extractv2sfsf): Likewise.
950 (vec_setv2si): Likewise.
951 (vec_extractv2si_1 splitter): Likewise.
952 (vec_extractv2sisi): Likewise.
953 (vec_setv4hi): Likewise.
954 (vec_extractv4hihi): Likewise.
955 (vec_setv8qi): Likewise.
956 (vec_extractv8qiqi): Likewise.
957 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
958 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
959 (vec_extractv2sisi): Likewise.
960 (vec_extractv4hihi): Likewise.
961 (vec_extractv8qiqi): Likewise.
962 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
963 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
964 (vec_initv2sisi): Likewise.
965 (vec_initv4hihi): Likewise.
966 (vec_initv8qiqi): Likewise.
967 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
968 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
969 (vec_setv4hi): Likewise.
970 (vec_setv8qi): Likewise.
972 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
975 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
977 (MMXMODE:*mov<mode>_internal): Likewise.
978 (MMXMODE:movmisalign<mode>): Likewise.
980 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
983 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
984 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
985 (sse2_cvtpd2pi): Ditto.
986 (sse2_cvttpd2pi): Ditto.
987 (*vec_concatv2sf_sse4_1): Ditto.
988 (*vec_concatv2sf_sse): Ditto.
989 (*vec_concatv2si_sse4_1): Ditto.
990 (*vec_concatv2si): Ditto.
991 (*vec_concatv4si_0): Ditto.
992 (*vec_concatv2di_0): Ditto.
994 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
997 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
999 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1002 * config/i386/sse.md (ssse3_palignrdi): Changed to
1003 define_insn_and_split to support SSE emulation.
1005 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1008 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
1010 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1013 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
1014 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
1017 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1020 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
1021 or TARGET_MMX_WITH_SSE.
1022 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
1024 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1027 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
1029 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1032 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
1033 Changed to define_insn_and_split to support SSE emulation.
1035 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1038 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
1039 Changed to define_insn_and_split to support SSE emulation.
1041 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1044 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
1045 (*mmx_<emms>): This.
1046 (mmx_<emms>): New expander.
1048 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1051 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
1053 (*sse2_umulv1siv1di3): Add SSE2 emulation.
1055 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1058 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
1060 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1063 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
1065 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1068 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
1069 TARGET_MMX_WITH_SSE.
1070 (*mmx_uavgv4hi3): Add SSE emulation.
1072 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1075 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
1076 and TARGET_MMX_WITH_SSE.
1077 (*mmx_uavgv8qi3): Add SSE emulation.
1079 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1082 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
1083 maskmovdqu for __MMX_WITH_SSE__.
1085 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1088 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
1089 TARGET_MMX and TARGET_MMX_WITH_SSE.
1090 (*mmx_umulv4hi3_highpart): Add SSE emulation.
1092 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1095 * config/i386/mmx.md (mmx_pmovmskb): Changed to
1096 define_insn_and_split to support SSE emulation.
1098 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1101 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
1102 and TARGET_MMX_WITH_SSE.
1103 (mmx_<code>v8qi3): Likewise.
1104 (smaxmin:<code>v4hi3): New.
1105 (umaxmin:<code>v8qi3): Likewise.
1106 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
1107 (umaxmin:*mmx_<code>v8qi3): Likewise.
1109 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1112 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
1113 TARGET_MMX_WITH_SSE.
1114 (*mmx_pinsrw): Add SSE emulation.
1116 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1119 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
1121 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1124 * config/i386/sse.md (sse_cvtpi2ps): Changed to
1125 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
1128 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1131 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
1132 (sse_cvttps2pi): Likewise.
1134 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1137 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
1138 TARGET_MMX_WITH_SSE.
1139 (mmx_pshufw_1): Add SSE emulation.
1140 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
1141 TARGET_MMX_WITH_SSE to support SSE emulation.
1143 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1146 * config/i386/constraints.md (Yw): New constraint.
1147 * config/i386/mmx.md (*vec_dupv2si): Changed to
1148 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
1149 support SSE emulation.
1151 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1154 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
1155 TARGET_MMX_WITH_SSE.
1156 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
1158 (mmx_gt<mode>3): Likewise.
1160 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1163 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
1164 TARGET_MMX_WITH_SSE. Add SSE support.
1166 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1169 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
1170 TARGET_MMX_WITH_SSE.
1171 (any_logic:<code><mode>3): New.
1172 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
1175 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1178 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
1179 TARGET_MMX_WITH_SSE. Add SSE emulation.
1180 (mmx_<shift_insn><mode>3): Likewise.
1182 (<shift_insn><mode>3): Likewise.
1184 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1187 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
1188 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
1190 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1193 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
1194 TARGET_MMX_WITH_SSE.
1195 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
1198 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1201 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
1202 TARGET_MMX_WITH_SSE.
1204 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
1207 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1210 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
1211 (plusminus:mmx_<plusminus_insn><mode>3): Check
1212 TARGET_MMX_WITH_SSE.
1213 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
1214 (<plusminus_insn><mode>3): New.
1215 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
1216 (*mmx_<plusminus_insn><mode>3): Likewise.
1218 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1221 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
1222 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
1224 * config/i386/mmx.m (mmx_punpckhbw): Changed to
1225 define_insn_and_split to support SSE emulation.
1226 (mmx_punpcklbw): Likewise.
1227 (mmx_punpckhwd): Likewise.
1228 (mmx_punpcklwd): Likewise.
1229 (mmx_punpckhdq): Likewise.
1230 (mmx_punpckldq): Likewise.
1232 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1233 Uros Bizjak <ubizjak@gmail.com>
1236 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
1238 (ix86_split_mmx_pack): Likewise.
1239 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
1241 (ix86_split_mmx_pack): Likewise.
1242 * config/i386/i386.md (mmx_isa): New.
1243 (enabled): Also check mmx_isa.
1244 * config/i386/mmx.md (any_s_truncate): New code iterator.
1245 (s_trunsuffix): New code attr.
1246 (mmx_packsswb): Removed.
1247 (mmx_packssdw): Likewise.
1248 (mmx_packuswb): Likewise.
1249 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
1250 MMX packsswb/packuswb with SSE2.
1251 (mmx_packssdw): Likewise.
1252 * config/i386/predicates.md (register_mmxmem_operand): New.
1254 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1257 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1258 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
1259 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
1260 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
1261 (ix86_vector_mode_supported_p): Likewise.
1262 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
1264 2019-05-15 Martin Liska <mliska@suse.cz>
1267 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
1270 2019-05-15 Richard Biener <rguenther@suse.de>
1272 * tree-into-ssa.c (pass_build_ssa::execute): Run
1273 update_address_taken before going into SSA.
1275 2019-05-15 Richard Biener <rguenther@suse.de>
1277 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
1278 as __BIT_FIELD_REF with type with -gimple.
1280 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
1282 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
1283 semantically equivalent branches (left over after prior refactorings).
1285 2019-05-15 Richard Biener <rguenther@suse.de>
1287 PR tree-optimization/88828
1288 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
1291 2019-05-14 Richard Biener <rguenther@suse.de>
1293 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
1294 as __VIEW_CONVERT with -gimple.
1296 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1299 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
1302 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
1304 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
1305 define_split to become a define_insn_and_split.
1307 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
1309 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
1311 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
1312 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
1313 (sibcall_epilogue): Adjust.
1316 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1318 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
1319 to unsupported ones.
1320 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
1321 * config.host: Likewise.
1322 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
1323 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
1324 __svr4__]: Remove "brand" fallback.
1325 [!KSTAT_DATA_STRING]: Remove.
1326 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
1328 (comdat_group): Likewise.
1329 (set_have_as_tls): Likewise.
1330 (gcc_cv_target_dl_iterate_phdr): Likewise.
1331 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
1332 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
1333 * configure: Regenerate.
1334 * doc/install.texi: Simplify Solaris target triplets.
1335 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
1336 (Specific, *-*-solaris2*): Document Solaris 10 removal.
1337 Remove Solaris 10 references.
1338 Remove obsolete Solaris bug reference.
1339 (Specific, sparc-sun-solaris2.10): Remove.
1341 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
1343 * config/i386/i386.md (any_div): New code iterator.
1344 (paired_mod): New code attribute.
1345 (sgnprefix): Handle DIV and UDIV RTXes.
1347 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
1348 and udivmod<mode>4 patterns using any_div code iterator.
1349 (divmod splitters): Macroize splitters using any_div code iterator.
1350 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
1351 (*udivmodsi4_pow2_zext_2): Ditto.
1352 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
1353 and *udivmod<mode>4_noext patterns using any_div code iterator.
1354 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
1355 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
1356 patterns using any_div code iterator.
1357 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
1358 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
1359 patterns using any_div code iterator.
1360 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
1361 udivmodhiqi3 patterns using any_extend code iterator.
1363 2019-05-14 Richard Biener <rguenther@suse.de>
1364 H.J. Lu <hongjiu.lu@intel.com>
1366 PR tree-optimization/88828
1367 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1368 permuting in a single non-constant element not extracted
1371 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1373 * internal-fn.def (SIGNBIT): New.
1374 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
1376 (signbitv4sf2): Likewise.
1378 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
1381 * config/mips/mips.c (mips_split_move): Skip forward SRC into
1382 next insn when the SRC reg is dead.
1384 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
1386 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
1387 (alloc_cand_and_find_basis): Ditto.
1388 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
1389 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
1390 (create_add_imm_cand, slsr_process_cast): Ditto.
1391 (slsr_process_copy, replace_mult_candidate): Ditto.
1392 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
1393 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
1394 (pass_strength_reduction::execute): Init the first NULL element.
1396 2019-05-13 Nathan Sidwell <nathan@acm.org>
1398 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
1399 (run_attempt): Reformat line break.
1401 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
1404 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
1405 data registers in sibcall epilogues.
1406 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
1408 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
1411 * configure.ac (--enable-frame-pointer):
1412 Disable by default for cygwin and mingw.
1413 * configure: Regenerate.
1415 2019-05-13 Nathan Sidwell <nathan@acm.org>
1417 * dwarf2out.c (breakout_comdat_types): Move comment to correct
1419 (const_ok_for_output_1): Balance parens around #if/#else/#endif
1420 (gen_member_die): Move abstract origin check earlier. Only VARs
1421 can be static_inline_p. Simplify splicing control flow.
1423 2019-05-13 Richard Biener <rguenther@suse.de>
1425 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
1427 (vect_build_slp_tree_1): Likewise.
1429 2019-05-13 Richard Biener <rguenther@suse.de>
1431 PR tree-optimization/90402
1432 * tree-if-conv.c (tree_if_conversion): Value number only
1433 the loop body by making the latch an exit of the region
1435 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
1437 (do_rpo_vn): Deal with multiple edges into the entry block
1438 that are not backedges inside the region by skipping PHIs
1441 2019-05-13 Richard Biener <rguenther@suse.de>
1443 PR tree-optimization/90316
1444 * tree-ssa-pre.c (insert_aux): Fold into ...
1445 (insert): ... this function. Use a RPO walk to reduce the
1446 number of required iterations.
1448 2019-05-13 Martin Liska <mliska@suse.cz>
1450 PR tree-optimization/90416
1451 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
1452 string instead of passing the second part as va_arg argument.
1454 2019-05-13 Martin Liska <mliska@suse.cz>
1456 PR gcov-profile/90380
1457 * gcov.c (handle_cycle): Do not support zero cycle count,
1458 it should not be possible.
1459 (path_contains_zero_cycle_arc): New function.
1460 (circuit): Ignore zero cycle arc counts.
1462 2019-05-13 Martin Liska <mliska@suse.cz>
1464 PR gcov-profile/90380
1465 * gcov.c (enum loop_type): Remove the enum and
1467 (handle_cycle): Assert that we should not reach
1469 (circuit): Use loop_found instead of a tri-state loop_type.
1470 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
1473 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1476 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
1477 (ix86_output_indirect_branch_via_reg): Use output mechanism
1478 accounting for __USER_LABEL_PREFIX__.
1479 (ix86_output_indirect_branch_via_push): Likewise.
1480 (ix86_output_function_return): Likewise.
1481 (ix86_output_indirect_function_return): Likewise.
1483 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
1485 * doc/md.texi: Document use of code attributes in rtx patterns.
1486 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
1487 * read-rtl.c (find_code): Split out search loops into...
1488 (maybe_find_code): ...this new function.
1489 (check_code_iterator): Make the error message more informative.
1490 (check_code_attribute): New function.
1491 (rtx_reader::rtx_alloc_for_name): Likewise.
1492 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
1493 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
1494 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
1495 <max_opp> directly as an rtx code instead of via a match_operator.
1496 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
1497 (<su>abd<mode>_3): Update accordingly.
1499 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1501 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
1502 is given, print the state of the EH "save world" computation for
1505 2019-05-11 Jakub Jelinek <jakub@redhat.com>
1508 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
1509 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
1511 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
1513 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
1514 Use pinsrd for TARGET_SSE4_1.
1515 * config/i386/sse.md (movdi_to_sse): Ditto.
1517 2019-05-10 Richard Biener <rguenther@suse.de>
1519 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
1520 (do_rpo_vn): Initialize next_value_id.
1522 2019-05-10 Martin Liska <mliska@suse.cz>
1524 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
1527 2019-05-10 Jakub Jelinek <jakub@redhat.com>
1529 PR tree-optimization/90385
1530 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
1531 arguments of the exit phis.
1534 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
1535 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
1537 (copy_tree_body_r): Likewise.
1538 (copy_fn): Set id.do_not_fold to true.
1540 2019-05-10 Martin Liska <mliska@suse.cz>
1542 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
1543 Reapply changes from r269790.
1545 2019-05-10 Martin Liska <mliska@suse.cz>
1548 * doc/invoke.texi: New params.
1549 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
1550 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
1551 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
1553 * tree-switch-conversion.h (struct jump_table_cluster):
1556 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
1558 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
1560 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
1562 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
1564 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
1566 PR rtl-optimization/88879
1567 * sel-sched.c (sel_target_adjust_priority): Remove assert.
1569 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
1572 * config/arm/arm.c (callee_saved_reg_p): Move before
1573 thumb_find_work_register.
1574 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
1575 thumb_find_work_register. Only call df_get_live_out once.
1576 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
1577 (thumb_find_work_register): Use
1578 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
1579 algorithms to locate a spare call clobbered reg.
1581 2019-05-09 Martin Liska <mliska@suse.cz>
1583 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
1584 and MAX_EXPR in GIMPLE FE format.
1586 2019-05-09 Martin Liska <mliska@suse.cz>
1588 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
1589 * gimple-pretty-print.c (dump_gimple_bb_header):
1591 (pp_cfg_jump): Dump edge probability.
1592 * profile-count.c (profile_quality_as_string): Simplify
1593 with a static array.
1594 (parse_profile_quality): New function.
1595 (profile_count::dump): Simplify with a static array.
1596 (profile_count::from_gcov_type): Add new argument.
1597 * profile-count.h (parse_profile_quality): Likewise.
1598 * predict.h (set_hot_bb_threshold): New.
1599 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
1601 * predict.c (get_hot_bb_threshold): Set from the new param.
1602 (set_hot_bb_threshold): New.
1604 2019-05-09 Richard Biener <rguenther@suse.de>
1606 PR tree-optimization/90395
1607 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
1608 rewrite vector stores that throw internally.
1610 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
1612 * cif-code.def (CHKP): Remove.
1615 * configure.ac (--enable-frame-pointer): Disable by default for
1617 * configure: Regenerate.
1619 2019-05-09 Alan Modra <amodra@gmail.com>
1622 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
1623 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
1624 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
1625 cost for general <-> vsx when direct moves are available.
1626 Cost union classes at minimal cost for any reg in the class.
1627 Correct calculation for moves between vsx, float, and altivec.
1628 Don't return a low cost for moves between special regs. Don't
1629 use hard coded register numbers.
1630 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
1631 (rs6000_ira_change_pseudo_allocno_class): New function.
1632 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
1633 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
1635 (movsi_internal1): Don't disparage vector alternatives.
1636 (mov<mode>_internal): Likewise, excepting alternative that
1638 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
1639 we <- b alternative.
1641 2019-05-08 Jakub Jelinek <jakub@redhat.com>
1644 PR tree-optimization/89060
1645 * tree-ssa-live.h (live_vars_map): New typedef.
1646 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
1647 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
1648 (struct compute_live_vars_data): New type.
1649 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
1650 live_vars_at_stmt, destroy_live_vars): New functions.
1651 * tree-tailcall.c: Include tree-ssa-live.h.
1652 (live_vars, live_vars_vec): New global variables.
1653 (find_tail_calls): Perform variable life analysis before punting.
1654 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
1655 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
1657 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
1658 Perform variable life analysis to select variables that really need
1660 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
1661 instead set id->eh_landing_pad_dest and assert it is the same.
1662 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
1664 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
1665 Richard Earnshaw <rearnsha@arm.com>
1668 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
1670 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
1671 (thumb1_compute_save_core_reg_mask): Don't force a spare work
1672 register if both the epilogue and prologue can use call-clobbered
1674 (thumb1_unexpanded_epilogue): Use
1675 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
1676 picking temporaries for restoring high regs to match that of the
1677 prologue where possible.
1678 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
1679 the list of work registers. Detect if the return address is still live
1680 at the end of the prologue and avoid using it for a work register if so.
1681 If the return address is not live, add LR to the list of pushable regs
1682 after the first pass.
1684 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
1686 PR tree-optimization/90078
1687 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
1688 (INFTY): Increase the value for infinite cost.
1689 (struct comp_cost): Promote type of members to int64_t.
1690 (infinite_cost): Don't set complexity in initialization.
1691 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
1692 overflows to infinite_cost.
1693 (adjust_setup_cost): Promote type of parameter and cost computation
1695 (struct ainc_cost_data, struct iv_ca): Promote type of member to
1697 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
1698 cost computation to int64_t.
1699 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
1700 int64_t's format specifier in dump.
1702 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
1704 PR tree-optimization/90240
1705 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
1706 with respect to scaling factor pre-computed for each basic block.
1707 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
1708 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
1709 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
1710 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
1711 live range for array of loop's basic blocks. Cleanup aux field of
1712 loop's basic blocks.
1714 2019-05-08 Jakub Jelinek <jakub@redhat.com>
1716 PR tree-optimization/90356
1717 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
1719 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
1721 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
1722 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
1723 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
1724 (ix86_handle_option): Handle -mavx512bf16.
1725 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
1727 * config/i386/avx512bf16vlintrin.h: New.
1728 * config/i386/avx512bf16intrin.h: New.
1729 * config/i386/cpuid.h (bit_AVX512BF16): New.
1730 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
1731 * config/i386/i386-builtin-types.def: Add new types.
1732 * config/i386/i386-builtin.def: Add new builtins.
1733 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1735 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
1736 (ix86_option_override_internal): Handle BF16.
1737 (ix86_valid_target_attribute_inner_p): Ditto.
1738 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
1739 * config/i386/i386-builtin.c (enum processor_features): Add
1741 (static const _isa_names_table isa_names_table): Ditto.
1742 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
1743 (PTA_AVX512BF16): Ditto.
1744 * config/i386/i386.opt: Add -mavx512bf16.
1745 * config/i386/immintrin.h: Include avx512bf16intrin.h
1746 and avx512bf16vlintrin.h.
1747 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
1748 avx512f_cvtneps2bf16_<mode><mask_name>,
1749 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
1750 * config/i386/subst.md (mask_half): Add new subst.
1751 * doc/invoke.texi: Document -mavx512bf16.
1753 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
1755 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
1757 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
1758 (rs6000_debug_legitimize_reload_address): Delete.
1759 (rs6000_legitimize_reload_address_ptr): Delete.
1760 (rs6000_option_override_internal): Adjust.
1761 (mem_operand_gpr): Adjust comment.
1762 (legitimate_lo_sum_address_p): Ditto.
1763 (rs6000_legitimize_reload_address): Delete.
1764 (rs6000_debug_legitimize_reload_address): Delete.
1765 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
1767 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
1770 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1771 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
1772 to compute vector element selector for both constant and variable
1775 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
1777 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
1778 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
1779 ashrdi3_cvt using SWI48 mode iterator.
1781 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1783 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
1784 (aarch64_<su>abd<mode>_3): Likewise.
1785 (*aarch64_<su>abd<mode>_3): New define_insn.
1786 (<sur>sad<vsi2qi>): New define_expand.
1787 * config/aarch64/iterators.md: Added MAX_OPP attribute.
1788 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
1789 (build_vect_cond_expr): Likewise.
1791 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
1793 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
1794 clobbers outside of accessible_reg_set.
1795 * config/i386/i386.c (ix86_conditional_register_usage):
1796 Disable register sets by clearing corresponding bits in
1797 accessible_reg_set. Do not set corresponding bits in fixed_regs,
1798 call_used_regs and don't clear corresponding reg_names array members.
1800 2019-05-07 Richard Biener <rguenther@suse.de>
1802 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
1803 not specified still compute a comp_vectype for invariant
1806 2019-05-07 Richard Biener <rguenther@suse.de>
1808 PR tree-optimization/90316
1809 * tree-ssa-pre.c (translate_vuse_through_block): When
1810 same_valid is NULL do not bother to search for a virtual
1812 (phi_translate_1): When operands changed we cannot keep
1813 the same value-number so do not bother to ask whether
1814 that's possible from translate_vuse_through_block.
1816 2019-05-07 Martin Liska <mliska@suse.cz>
1818 * bitmap.c (bitmap_register): Come up with
1819 alloc_descriptor_max_uid and assign it for
1821 (register_overhead): Use get_descriptor as
1823 (release_overhead): New.
1824 (bitmap_elem_to_freelist): Call it.
1825 (bitmap_elt_clear_from): Likewise.
1826 (bitmap_obstack_free): Likewise.
1827 (bitmap_move): Sensitively release memory.
1828 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
1829 (bitmap_initialize): Initialize alloc_descriptor to zero.
1830 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
1832 2019-05-07 Richard Biener <rguenther@suse.de>
1834 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
1835 we build a SLP node. Remove max_size and limiting.
1836 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
1838 2019-05-07 Richard Biener <rguenther@suse.de>
1840 PR tree-optimization/90316
1841 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
1843 (walk_non_aliased_vuses): Take walking limit argument.
1844 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
1845 walking if it is reached instead of just counting.
1846 (get_continuation_for_phi): Likewise.
1847 (walk_non_aliased_vuses): Likewise, instead of leaving counter
1848 limiting to the callback.
1849 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
1850 (vn_reference_lookup_3): Likewise.
1851 (vn_reference_lookup_pieces): Likewise.
1852 (vn_reference_lookup): Likewise.
1853 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
1854 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
1855 (avail_exprs_stack::lookup_avail_expr): Likewise.
1857 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
1859 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
1860 for comparaible types in the second direction even if first one
1861 hits incomparable type.
1863 2019-05-07 Richard Biener <rguenther@suse.de>
1866 * lto-wrapper.c (debug_objcopy): Use the original filename
1867 including archive offset for the filename used for -save-temps.
1869 2019-05-07 Li Jia He <helijia@linux.ibm.com>
1871 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
1874 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1876 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
1877 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
1878 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
1879 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
1880 (FRAME_POINTER_REGNUM): Change numbering.
1881 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
1882 (alt_reg_names): Adjust.
1883 (rs6000_conditional_register_usage): Don't mark hard register 64 as
1885 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
1886 (DWARF_FRAME_REGISTERS): Delete.
1887 (DWARF2_FRAME_REG_OUT): Fix whitespace.
1888 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1890 (REG_ALLOC_ORDER): Adjust.
1891 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
1892 (REG_CLASS_CONTENTS): Adjust.
1893 (RETURN_ADDR_RTX): Change comment.
1894 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
1896 (REGISTER_NAMES): Adjust.
1897 (ADDITIONAL_REGISTER_NAMES): Adjust.
1898 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
1900 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1902 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
1904 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
1905 (DWARF_FRAME_REGISTERS): Adjust.
1906 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1908 (REG_ALLOC_ORDER): Adjust.
1909 (enum reg_class): Delete SPR_REGS.
1910 (REG_CLASS_NAMES): Delete SPR_REGS.
1911 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
1912 (REGISTER_NAMES): Adjust.
1913 (ADDITIONAL_REGISTER_NAMES): Adjust.
1914 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
1915 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
1916 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
1917 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
1918 (htm_spr_regno): Delete.
1919 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
1921 (rs6000_dbx_register_number): Adjust.
1923 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1925 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
1927 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1929 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
1930 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
1932 2019-05-06 Jakub Jelinek <jakub@redhat.com>
1934 PR tree-optimization/88709
1935 PR tree-optimization/90271
1936 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
1937 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
1938 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
1940 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
1941 of the store merging group is larger than
1942 PARAM_STORE_MERGING_MAX_SIZE parameter.
1943 (split_group): Add bzero_first argument. If set, always emit first
1944 the first store which must be = {} of the whole area and then for the
1945 rest of the stores consider all zero bytes as paddings.
1946 (imm_store_chain_info::output_merged_store): Check if first store
1947 is = {} of the whole area and if yes, determine which setting of
1948 bzero_first for split_group gives smaller number of stores. Adjust
1949 split_group callers.
1950 (lhs_valid_for_store_merging_p): Allow decls.
1951 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
1953 (pass_store_merging::process_store): Likewise.
1955 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
1958 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1959 handling of V1TImode.
1961 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
1964 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
1965 and enable_frame_pointer ...
1966 * configure.ac: ... here. Update help strings for
1967 --enable-frame-pointer.
1968 * configure: Regenerate.
1969 * config/i386/i386-options.c (ix86_option_override_internal): Remove
1970 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
1971 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
1972 (USE_X86_64_FRAME_POINTER): Ditto.
1974 2019-05-06 Martin Liska <mliska@suse.cz>
1976 * config.gcc: Append to target_gtfiles and fix indentation.
1978 2019-05-06 Richard Biener <rguenther@suse.de>
1980 PR tree-optimization/90358
1981 * tree-vect-stmts.c (get_group_load_store_type): Properly
1982 detect unused upper half of load.
1983 (vectorizable_load): Likewise.
1985 2019-05-06 Richard Biener <rguenther@suse.de>
1987 PR tree-optimization/88828
1988 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
1989 (simplify_vector_constructor): ...here. Handle constants in
1992 2019-05-06 Richard Biener <rguenther@suse.de>
1994 PR tree-optimization/90328
1995 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
1996 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
1997 is valid in the loop nest before using it.
1998 (initialize_data_dependence_relation): Adjust.
1999 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
2000 loop as loop-nest to dr_may_alias_p.
2002 2019-05-06 Richard Biener <rguenther@suse.de>
2004 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
2006 2019-05-06 Richard Biener <rguenther@suse.de>
2008 PR tree-optimization/90316
2009 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
2010 compute target on demand.
2011 (get_continuation_for_phi): Remove code walking stmts to
2012 get to a target virtual operand which could end up being
2015 2019-05-06 Martin Liska <mliska@suse.cz>
2018 * config/i386/i386-options.c (ix86_option_override_internal): Error only
2019 when -mabi is selected to a non-default version.
2021 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
2022 Martin Liska <mliska@suse.cz>
2024 * Makefile.in: Add lto-dump.texi.
2025 * cgraph.h: Add new functions get_visibility_string and
2026 get_symtab_type_string.
2027 * doc/gcc.texi: Include lto-dump section.
2028 * doc/lto-dump.texi: New file.
2029 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
2030 (parse_dump_option): Factor out this function.
2031 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
2032 (parse_dump_option): Export the function.
2033 * symtab.c (symtab_node::get_visibility_string): New function.
2034 (symtab_node::get_symtab_type_string): Likewise.
2036 2019-05-06 Martin Liska <mliska@suse.cz>
2038 * config/i386/i386-builtins.c: New file.
2039 * config/i386/i386-builtins.h: New file.
2040 * config/i386/i386-expand.c: New file.
2041 * config/i386/i386-expand.h: New file.
2042 * config/i386/i386-features.c: New file.
2043 * config/i386/i386-features.h: New file.
2044 * config/i386/i386-options.c: New file.
2045 * config/i386/i386-options.h: New file.
2046 * config.gcc: Add new files into extra_objs and
2048 * config/i386/i386.c: Split content of the file
2049 into newly introduced files.
2050 * config/i386/i386.h: Declare common variables
2052 * config/i386/t-i386: Define dependencies for new files.
2054 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
2057 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
2058 Restrict 'all' variant to 32-bit configurations.
2059 (unaligned_loadhiu): Likewise.
2060 (unaligned_storehi): Likewise.
2061 (unaligned_storesi): Likewise.
2062 (unaligned_loadhis): Disable when compiling for thumb1.
2064 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
2066 PR tree-optimization/90269
2067 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
2070 2019-05-03 Martin Liska <mliska@suse.cz>
2072 * hash-map.h: Add is_empty function.
2073 * hash-set.h: Likewise.
2074 * hash-table.h: Likewise.
2075 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
2076 elements () == 0 (and similar usages).
2077 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
2078 * gimplify.c (gimplify_bind_expr): Likewise.
2079 (gimplify_switch_expr): Likewise.
2080 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
2081 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
2082 * postreload-gcse.c (dump_hash_table): Likewise.
2083 (gcse_after_reload_main): Likewise.
2084 * predict.c (combine_predictions_for_bb): Likewise.
2085 * tree-parloops.c (reduction_phi): Likewise.
2086 (separate_decls_in_region): Likewise.
2087 (transform_to_exit_first_loop): Likewise.
2088 (gen_parallel_loop): Likewise.
2089 (gather_scalar_reductions): Likewise.
2090 (try_create_reduction_list): Likewise.
2091 * var-tracking.c (dump_vars): Likewise.
2092 (emit_notes_for_changes): Likewise.
2093 (vt_emit_notes): Likewise.
2095 2019-05-03 Richard Biener <rguenther@suse.de>
2097 PR tree-optimization/90316
2098 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
2101 2019-05-03 Richard Biener <rguenther@suse.de>
2103 * tree-vect-stmts.c (get_group_load_store_type): Avoid
2104 peeling for gaps by loading only lower halves of vectors
2106 (vectorizable_load): Likewise.
2108 2019-05-03 Richard Biener <rguenther@suse.de>
2111 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
2113 2019-05-03 Richard Biener <rguenther@suse.de>
2116 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
2117 Handle STRING_CST vs DECL or STRING_CST.
2119 2019-05-03 Richard Biener <rguenther@suse.de>
2121 PR tree-optimization/88963
2122 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
2123 vector loads feeding only BIT_FIELD_REFs to component
2124 loads. Rewrite stores fed by CONSTRUCTORs to component
2127 2019-05-03 Jakub Jelinek <jakub@redhat.com>
2129 * opts.h (finish_options): Remove lang_mask argument.
2130 (print_help, help_option_argument): Declare.
2131 * opts.c (print_help): Remove forward declaration, no longer static.
2132 (finish_options): Remove lang_mask argument, don't call print_help
2134 * opts-global.c (decode_options): Adjust finish_option caller, call
2137 PR tree-optimization/90303
2138 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
2139 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
2141 2019-05-03 Richard Biener <rguenther@suse.de>
2143 PR tree-optimization/89698
2144 * gimple-fold.c (canonicalize_constructor_val): Early out
2145 for constants, handle unfolded INTEGER_CSTs as they appear in
2146 C++ virtual table ctors.
2148 2019-05-03 Richard Biener <rguenther@suse.de>
2150 * passes.c (execute_function_todo): Remove dead code.
2152 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
2154 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
2155 the internal register number, for any "real" register.
2157 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
2159 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
2160 correct numbers for TFHAR, TFIAR, TEXASR.
2162 2019-05-02 Richard Biener <rguenther@suse.de>
2164 PR tree-optimization/89653
2165 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
2166 update-address-taken before the pass.
2167 * passes.def (pass_tree_loop_init): Put comment before it.
2169 2019-05-02 Richard Biener <rguenther@suse.de>
2171 PR tree-optimization/89509
2172 * tree-ssa-structalias.c (compute_dependence_clique): Look
2173 at the first subvar when determining whether it is restrict.
2175 2019-05-02 Richard Biener <rguenther@suse.de>
2177 PR tree-optimization/90273
2178 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
2179 useless debug stmts.
2181 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
2183 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
2185 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
2187 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
2188 VEC_COND_EXPR be inserted to emulate a conditional internal function.
2189 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
2190 (vectorizable_reduction): Use the functions above to vectorize in a
2191 fully masked loop codes that don't have a conditional internal
2194 2019-05-02 Martin Liska <mliska@suse.cz>
2196 * cgraphclones.c: Call valid_attribute_p with 1 for
2198 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
2199 it's for target attribute.
2200 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
2201 Add new boolean argument.
2202 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2204 (ix86_valid_target_attribute_tree): Pass target_clone_attr
2205 to ix86_valid_target_attribute_inner_p.
2206 (ix86_valid_target_attribute_p): Pass flags argument to
2207 ix86_valid_target_attribute_inner_p.
2208 (get_builtin_code_for_version): Use 0 as it's target attribute.
2210 2019-05-02 Martin Liska <mliska@suse.cz>
2212 * gcc.c (process_command): Add dummy file only
2214 * opts-global.c (decode_options): Pass lang_mask.
2215 * opts.c (print_help): New function.
2216 (finish_options): Print --help if help_option_argument
2218 (common_handle_option): Factor out content of OPT__help_
2220 * opts.h (finish_options): Add new argument.
2222 2019-05-02 Martin Liska <mliska@suse.cz>
2225 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
2226 With -minline-all-stringops use inline expansion using 4B loop.
2227 * doc/invoke.texi: Document the change of
2228 -minline-all-stringops.
2230 2019-05-01 Jeff Law <law@redhat.com>
2232 PR tree-optimization/88797
2233 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
2234 PHI feeds a conditional on the RHS of an assignment.
2236 2019-04-30 Andrew Waterman <andrew@sifive.com>
2237 Jim Wilson <jimw@sifive.com>
2239 * config/riscv/constraints.md (L): New.
2240 * config/riscv/predicates.md (lui_operand): New.
2241 (sfb_alu_operand): New.
2242 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
2243 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
2244 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
2245 * config/riscv/risc.md (type): Add sfb_alu.
2246 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
2247 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
2248 (branch_zero<mode>): Delete.
2250 (mov<GPR:mode><X:mode>cc): Likewise.
2251 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
2253 2019-04-30 Nathan Sidwell <nathan@acm.org>
2255 * tree.h (MARK_TS_EXP): New.
2257 2019-04-30 Martin Liska <mliska@suse.cz>
2259 * opts.c (enable_warning_as_error): Provide hints
2260 for unknown options.
2262 2019-04-30 Martin Liska <mliska@suse.cz>
2265 * doc/invoke.texi: Add missing dash for gas-locview-support
2266 and gno-as-locview-support.
2268 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2271 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
2272 whitespace at the start of target attribute string.
2274 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2277 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
2278 Define __ARM_FEATURE_ATOMICS.
2280 2019-04-30 Martin Liska <mliska@suse.cz>
2282 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
2283 into built_in_function enum. Remove code for endp == 2 and
2284 use BUILT_IN_* constants.
2285 (gimple_fold_builtin): Call the function with fcode.
2287 2019-04-30 Martin Liska <mliska@suse.cz>
2289 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
2290 DECL_FUNCTION_CODE into ix86_builtins enum before
2291 the switch statement.
2293 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2295 PR tree-optimization/89475
2296 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
2299 2019-04-30 Martin Liska <mliska@suse.cz>
2301 PR translation/90274
2302 * opts.c (print_filtered_help): Wrap string in _(...).
2304 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
2306 PR tree-optimization/90240
2308 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2310 PR tree-optimization/90078
2311 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
2312 checks for infinite_cost overflow.
2314 2019-04-29 Jeff Law <law@redhat.com>
2316 * passes.def: Move -Wrestrict pass after copy propagation.
2318 2019-04-29 Maya Rashish <coypu@sdf.org>
2320 * config.gcc (default_gnu_indirect_function): Default to yes
2321 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
2322 sparc*-*-netbsd*, x86_64-*-netbsd*.
2324 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
2326 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
2327 where cond2 is NE_EXPR.
2328 (is_value_included_in): Update comment.
2330 2019-04-29 Richard Biener <rguenther@suse.de>
2332 PR tree-optimization/90278
2333 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
2334 EH on comparison simplification.
2336 2019-04-29 Jason Merrill <jason@redhat.com>
2338 PR c++/82081 - tail call optimization breaks noexcept
2339 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
2340 nothrow function to a might-throw function into a tail call.
2342 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
2344 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
2345 (DDR_INNER_LOOP): Likewise.
2346 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
2347 (initialize_data_dependence_relation): Likewise.
2348 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
2350 2019-04-29 Jakub Jelinek <jakub@redhat.com>
2352 PR rtl-optimization/90257
2353 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
2357 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
2361 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
2364 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
2367 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
2369 * lra-spills.c (lra_final_code_change): Remove useless move insns.
2371 2019-04-29 Richard Biener <rguenther@suse.de>
2373 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
2376 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
2378 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
2379 varasm.h, and netbsd-protos.h.
2381 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
2384 * config/i386/i386-protos.h (ix86_data_alignment): Change
2385 the second argument type to unsigned int.
2386 * config/i386/i386.c (ix86_data_alignment): Change "align"
2387 argument type to unsigned int.
2389 2019-04-27 Martin Liska <mliska@suse.cz>
2392 * opt-suggestions.c (option_proposer::build_option_suggestions):
2393 When get_valid_option_values returns empty values, add the
2394 misspelling candidate.
2396 2019-04-26 Jim Wilson <jimw@sifive.com>
2398 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
2400 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
2401 Pass orig_mode to riscv_build_integer.
2402 (riscv_split_integer): Pass mode to riscv_move_integer.
2403 (riscv_legitimize_const_move): Likewise.
2404 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
2405 promoted_mode. Replace force_reg call with code to load constant into
2406 promoted reg and then subreg it for the store.
2407 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
2410 2018-04-26 Eugene Sharygin <eush@ispras.ru>
2412 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
2415 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
2417 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
2418 commentary about the encoding of precision.
2420 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
2422 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
2423 * config/i386/t-freebsd64: New file.
2424 * config.gcc: Add the t-freebsd64 for multilib support.
2426 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
2428 * doc/extend.texi (vector_size): Add missing comma after @xref.
2430 2019-04-25 Jakub Jelinek <jakub@redhat.com>
2432 * BASE-VER: Set to 10.0.0.
2434 2019-04-25 Richard Biener <rguenther@suse.de>
2437 * gimplify.c (gimplify_expr): Avoid turning a lvalue
2438 VIEW_CONVERT_EXPR into one operating on an rvalue.
2440 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
2443 * config/i386/i386.c (feature_priority): Moved to file scope.
2444 (processor_features): Likewise.
2445 (processor_model): Likewise.
2446 (_arch_names_table): Likewise.
2447 (arch_names_table): Likewise.
2448 (_feature_list): Removed.
2449 (feature_list): Likewise.
2450 (_isa_names_table): Moved to file scope. Add priority.
2451 (isa_names_table): Likewise.
2452 (get_builtin_code_for_version): Replace feature_list with
2453 isa_names_table. Update error message for P_ZERO priority.
2455 2019-04-25 Richard Biener <rguenther@suse.de>
2457 * tree-pass.h (make_pass_phi_only_cprop): Remove.
2458 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
2460 2019-04-24 Jeff Law <law@redhat.com>
2462 PR tree-optimization/90037
2463 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
2464 * passes.def: Replace all instance of phi-only cprop with the
2465 lattice propagator. Move propagation pass from after erroneous
2466 path isolation to before erroneous path isolation.
2467 * tree-ssa-phionlycprop.c: Remove.
2469 2019-04-24 Richard Biener <rguenther@suse.de>
2472 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
2473 by size and BITS_PER_UNIT on poly-wide-ints.
2475 2019-04-25 Richard Biener <rguenther@suse.de>
2478 * match.pd: Add pattern to simplify view-conversion of an
2481 2019-04-24 Clement Chigot <clement.chigot@atos.net>
2483 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
2484 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
2485 for Go on 32 bit AIX.
2486 * config/rs6000/aix72.h: Likewise.
2488 2019-04-24 Jakub Jelinek <jakub@redhat.com>
2491 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
2492 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
2494 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
2497 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
2498 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
2499 for restored hard frame pointer.
2500 (s390_sched_dependencies_evaluation): Implement new target hook.
2501 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
2503 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
2505 * config/arc/arc-options.def: Fix typos and spelling mistakes.
2506 * config/arc/arc.c (arc_init): Cleanup warning message.
2507 (arc_override_options): Likewise.
2509 2019-04-24 Jakub Jelinek <jakub@redhat.com>
2512 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
2513 a register if both if_true and if_false are MEMs.
2515 PR tree-optimization/90208
2516 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
2517 after labels of new_bb, not before them.
2519 PR tree-optimization/90211
2520 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
2521 which are not SSA_NAMEs.
2523 2018-04-23 Sudakshina Das <sudi.das@arm.com>
2525 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
2527 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
2529 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
2531 PR rtl-optimization/87979
2532 * modulo-sched.c (sms_schedule): Start ii value "mii" should
2535 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
2537 PR rtl-optimization/84032
2538 * modulo-sched.c (ps_insn_find_column): Change condition so that
2539 branch will always be the last insn in a row inside partial
2542 2019-04-23 Richard Biener <rguenther@suse.de>
2545 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
2546 dest_single_pred_p argument.
2547 (remove_forwarder_block): Adjust.
2548 (remove_forwarder_block_with_phi): Likewise.
2550 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2551 Bernd Edlinger <bernd.edlinger@hotmail.de>
2552 Jakub Jelinek <jakub@redhat.com>
2555 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
2556 if used with general-regs-only.
2557 (arm_conditional_register_usage): Don't add non-general regs if
2559 (arm_valid_target_attribute_rec): Handle general-regs-only.
2560 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
2562 (TARGET_HARD_FLOAT_SUB): Define.
2563 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
2564 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
2565 (TARGET_REALLY_IWMMXT2): Likewise.
2566 * config/arm/arm.opt: Add -mgeneral-regs-only.
2567 * doc/extend.texi: Document ARM general-regs-only target.
2568 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
2570 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2572 PR tree-optimization/90078
2573 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
2574 checks for infinite_cost overflow.
2576 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2578 PR tree-optimization/90021
2579 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
2580 and check univariate against it.
2581 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
2582 * tree-data-ref.c (add_other_self_distances): Pass new argument.
2584 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
2588 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
2591 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
2594 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
2596 * lra-spills.c (lra_final_code_change): Remove useless move insns.
2598 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
2600 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
2601 names using operand format, rather than hard-wired.
2602 (speculation_barrier): Likewise.
2604 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
2606 PR tree-optimization/88055
2607 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
2608 (gen_one_condition): Use it if !HONOR_NANS.
2610 2019-04-19 Jakub Jelinek <jakub@redhat.com>
2613 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
2614 assign_temp instead of gen_reg_rtx.
2616 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
2618 PR translation/90118
2619 * config/aarch64/aarch64.c (aarch64_override_options_internal):
2620 Add missing space before %<.
2622 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
2624 PR rtl-optimization/87871
2625 * ira-lives.c (make_object_dead): Don't add conflicts to
2626 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
2628 2019-04-18 Martin Sebor <msebor@redhat.com>
2631 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
2632 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
2633 assuming type size fits in SHWI.
2635 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
2638 * ipa-inline.c (flatten_function): New parameter UPDATE.
2639 (ipa_inline, early_inliner): Use it.
2641 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
2643 * fold-const.c (int_const_binop): Return early on failure.
2645 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
2648 * combine.c (force_int_to_mode): Cast the argument rather than
2649 the result of known_alignment.
2650 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
2652 2019-04-18 Richard Biener <rguenther@suse.de>
2655 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
2657 (remove_forwarder_block): ... here.
2658 (remove_forwarder_block_with_phi): Also move debug stmts here.
2660 2019-04-18 Jakub Jelinek <jakub@redhat.com>
2662 PR translation/79183
2663 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
2664 inform where appropriate.
2666 2019-04-18 Richard Biener <rguenther@suse.de>
2668 * tree.c (get_qualified_type): Put found type variants at the
2669 head of the variant list.
2671 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2673 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
2675 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
2678 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
2679 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
2680 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
2681 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
2682 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
2684 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
2686 * ira-conflicts.c (print_allocno_conflicts): Always print something,
2687 even for allocno's with no conflicts.
2688 (print_conflicts): Print an extra newline.
2690 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2692 * auto-inc-dec.c (attempt_change): Set the alignment of the
2693 temporary memory to that of the original.
2695 2019-04-17 Joao Moreira <jmoreira@suse.de>
2697 * targhooks.c (default_print_patchable_function_entry): Emit
2698 __patchable_function_entries section with writable flags to allow
2699 relocation resolution.
2701 2019-04-17 Jonny Grant <jg@jguk.org>
2703 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
2705 2019-04-17 Jakub Jelinek <jakub@redhat.com>
2708 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
2711 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
2713 * config/arc/arc.c (arc_init): Format diagnostic string.
2714 (arc_override_options): Likewise.
2715 (check_if_valid_regno_const): Likewise.
2716 (arc_reorg): Likewise.
2718 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2721 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
2723 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
2725 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
2726 (*movdi_update1): Use Pmode.
2727 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
2728 (movdi_<mode>_update_stack): Rename to ...
2729 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
2731 (*movsi_update1): Use Pmode.
2732 (*movsi_update2): Use Pmode.
2733 (movsi_update): Rename to ...
2734 (movsi_<mode>_update): ... this. Use Pmode.
2735 (movsi_update_stack): Fix condition.
2736 (*movhi_update1): Use Pmode. Fix argument to
2737 avoiding_indexed_address_p.
2738 (*movhi_update2): Ditto.
2739 (*movhi_update3): Ditto.
2740 (*movhi_update4): Ditto.
2741 (*movqi_update1): Ditto.
2742 (*movqi_update2): Ditto.
2743 (*movqi_update3): Ditto.
2744 (*movsf_update1, *movdf_update1): Merge, rename to...
2745 (*mov<mode>_update1): This. Use Pmode. Fix argument to
2746 avoiding_indexed_address_p. Add "size" attribute.
2747 (*movsf_update2, *movdf_update2): Merge, rename to...
2748 (*mov<mode>_update2): This. Ditto.
2749 (*movsf_update3): Use Pmode. Fix argument to
2750 avoiding_indexed_address_p.
2751 (*movsf_update4): Ditto.
2752 (allocate_stack): Simplify condition. Adjust pattern names.
2754 2019-04-17 Jakub Jelinek <jakub@redhat.com>
2757 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
2758 whitespace at the start of target attribute string.
2760 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
2763 * config/rs6000/power9.md: Add store forwarding bypass.
2765 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
2768 * valtrack.c (dead_debug_insert_temp): Reset debug references
2769 to the return value of a call being removed.
2771 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2773 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
2774 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
2775 implement target hook.
2776 (arc_memory_move_cost): New function.
2777 (TARGET_REGISTER_MOVE_COST): Define.
2778 (TARGET_MEMORY_MOVE_COST): Likewise.
2779 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
2780 (MEMORY_MOVE_COST): Likewise.
2782 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2784 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
2785 (sibcall_value_insn): Likewise.
2786 * config/arc/constraints.md (Rs5): Remove.
2788 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2790 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
2791 for last two fake registers.
2792 (arc_conditional_register_usage): Make sure fake frame and arg
2793 pointer regs are in general regs class.
2794 (FRAME_POINTER_MASK): Remove.
2795 (RETURN_ADDR_MASK): Remove.
2796 (arc_must_save_register): Use hard frame regnum.
2797 (frame_restore_reg): Use hard_frame_pointer_rtx.
2798 (arc_save_callee_saves): Likewise.
2799 (arc_restore_callee_saves): Likewise.
2800 (arc_save_callee_enter): Likewise.
2801 (arc_restore_callee_leave): Likewise.
2802 (arc_save_callee_milli): Likewise.
2803 (arc_eh_return_address_location): Likewise.
2804 (arc_check_multi): Use hard frame regnum.
2805 (arc_can_eliminate): Likewise.
2806 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
2807 for register allocator.
2808 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
2809 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
2810 (FRAME_POINTER_REGNUM): Change it to a fake register.
2811 (HARD_FRAME_POINTER_REGNUM): Defined.
2812 (ARG_POINTER_REGNUM): Change it to a new fake register.
2813 (ELIMINABLE_REGS): Update.
2814 (REGISTER_NAMES): Update names.
2815 * config/arc/arc.md (LP_START): Remove.
2817 (shift_si3_loop): Update pattern.
2819 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2821 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
2822 to avoid delay slot scheduling.
2823 (arc_must_save_register): Don't save SP.
2824 * config/arc/arc.md (stack_tie): Remove.
2825 (UNSPEC_ARC_STKTIE): Likewise.
2827 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
2828 Shiva Chen <shiva0217@gmail.com>
2830 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
2831 code gen with large shift amount.
2833 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
2835 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
2838 2019-04-16 Jakub Jelinek <jakub@redhat.com>
2841 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
2842 print -m64/-mx32/-m32 if it is true.
2843 (ix86_debug_options, ix86_function_specific_print): Pass true as
2844 ADD_ABI_P to ix86_target_string.
2845 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
2846 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
2847 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
2849 PR rtl-optimization/90082
2850 * dce.c (can_delete_call): New function.
2851 (deletable_insn_p, mark_insn): Use it.
2853 PR tree-optimization/90090
2854 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
2856 (is_division_by_square): Likewise. Formatting fix.
2858 2019-04-16 Richard Biener <rguenther@suse.de>
2860 PR tree-optimization/56049
2861 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
2862 equality check if alias-set zero will prevail.
2864 2019-04-15 Jeff Law <law@redhat.com>
2866 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
2867 size and alignment as unsigned.
2869 2019-04-15 Richard Biener <rguenther@suse.de>
2872 * tree-loop-distribution.c (destroy_loop): Preserve correct
2875 2019-04-15 Richard Biener <rguenther@suse.de>
2877 PR tree-optimization/90071
2878 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
2879 abnormal operands from def stmts.
2881 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
2883 PR rtl-optimization/89794
2884 * combine.c (count_auto_inc): New function.
2885 (try_combine): Count how many auto_inc expressions there were in the
2886 original instructions. Ensure we have the same number in the new
2887 instructions. Remove the code that tried to ensure auto_inc side
2888 effects on i1 and i0 are not lost.
2890 2019-04-15 Richard Biener <rguenther@suse.de>
2893 * tree.h (auto_var_p): Declare.
2894 * tree.c (auto_var_p): New function, split out from ...
2895 (auto_var_in_fn_p): ... here.
2896 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
2898 (new_var_info): Initialize it.
2899 (set_uids_in_ptset): Also set the shadow variable uid if required.
2900 (ipa_pta_execute): Postprocess points-to solutions assigning
2901 shadow variable uids for locals that may reach their containing
2902 function recursively.
2903 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
2904 assert but instead check whether the points-to solution is
2907 2019-04-15 Martin Jambor <mjambor@suse.cz>
2910 * cgraph.c (clone_of_p): Loop over clone chain for each step in
2913 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
2915 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
2917 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
2918 Kito Cheng <kito.cheng@gmail.com>
2919 Shiva Chen <shiva0217@gmail.com>
2921 * config/nds32/nds32-md-auxiliary.c
2922 (nds32_legitimize_pic_address): Use new PIC pattern.
2923 (nds32_legitimize_tls_address): Use new TLS pattern.
2924 (nds32_output_symrel): New.
2925 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
2926 (nds32_alloc_relax_group_id): Ditto.
2927 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
2928 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
2930 (nds32_group_tls_insn): Ditto.
2931 (nds32_group_float_insns): Ditto.
2932 * config/nds32/nds32.md (tls_le): New.
2935 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
2937 * configure: Add nds32 target for dwarf2 debug_line checking.
2938 * configure.ac: Regenerated.
2940 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
2943 * ipa-devirt.c (skip_in_fields_list_p): New.
2944 (odr_types_equivalent_p): Use it.
2946 2019-04-13 Jakub Jelinek <jakub@redhat.com>
2949 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
2950 instead of strncmp when checking for thumb and arm. Formatting fixes.
2952 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
2954 * doc/install.texi: Document --with-target-system-zlib.
2956 2019-04-12 Martin Sebor <msebor@redhat.com>
2962 * targhooks.c (default_vector_alignment): Avoid assuming
2963 argument fits in SHWI.
2964 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
2966 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
2968 2019-04-12 Jakub Jelinek <jakub@redhat.com>
2970 PR rtl-optimization/89965
2971 * dce.c: Include rtl-iter.h.
2972 (struct check_argument_load_data): New type.
2973 (check_argument_load): New function.
2974 (find_call_stack_args): Check for loads from stack slots still tracked
2975 in sp_bytes and punt if any is found.
2977 * config/mips/loongson-mmiintrin.h: Fix up #error message.
2979 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
2981 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
2982 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
2984 2019-04-12 Martin Liska <mliska@suse.cz>
2987 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
2989 (separate_attrs): Handle multiple 'default's.
2990 (expand_target_clones): Rework error handling code.
2992 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
2995 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
2996 mode of vector rather than mode of destination for move instruction.
2997 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
2998 Use QI inner mode with V16QI vector mode.
3000 2019-04-12 Jakub Jelinek <jakub@redhat.com>
3003 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
3004 "invalid %%t operand" in output_operand_lossage message.
3006 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
3008 * config/s390/predicates.md (permute_pattern_operand): New
3010 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
3011 operand for the permute pattern.
3012 ("*vec_perm<mode>"): New insn definition.
3013 ("bswap<mode>"): Generate the permute pattern operand in the
3014 expander and perform the operand reloads for pre arch13 level
3016 ("*bswap<mode>_emu"): Rename to ...
3017 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
3018 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
3019 Add the USE operand for the permute pattern.
3020 ("*vec_set_bswap_vec<mode>"): Likewise.
3022 2019-04-12 Jakub Jelinek <jakub@redhat.com>
3025 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
3026 and gcc_unreachable if it fails, just call tree_to_uhwi which
3027 verifies that too. Test TREE_CHAIN instead of list_length > 1.
3028 Start warning message with a lower-case letter. Formatting fixes.
3030 PR rtl-optimization/90026
3031 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
3032 successors, look for BARRIERs inside of the whole BB_FOOTER chain
3033 rather than just at the start of it. If e->src BB_FOOTER is not NULL
3034 in cfglayout mode, use emit_barrier_after_bb.
3036 2018-04-11 Steve Ellcey <sellcey@marvell.com>
3038 PR rtl-optimization/87763
3039 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
3042 2019-04-11 Tom de Vries <tdevries@suse.de>
3044 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
3045 max macro using statement expression.
3047 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
3049 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
3050 * xcoffout.c (xcoff_private_rodata_section_name): Define.
3051 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
3052 read_only_private_data_section using xcoff_private_rodata_section_name.
3053 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
3055 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
3058 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
3060 2019-04-11 Jakub Jelinek <jakub@redhat.com>
3062 PR rtl-optimization/89965
3063 * dce.c (sp_based_mem_offset): New function.
3064 (find_call_stack_args): Use sp_based_mem_offset.
3066 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
3068 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
3070 2019-04-11 Richard Biener <rguenther@suse.de>
3072 PR tree-optimization/90020
3073 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
3074 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
3075 * tree-ssa-pre.c (compute_avail): Use it to not put
3076 possibly trapping references after a call that might not
3077 return into EXP_GEN.
3078 * gcse.c (compute_hash_table_work): Do not elide
3079 marking a block containing a call if the call might not
3082 2019-04-11 Richard Biener <rguenther@suse.de>
3084 PR tree-optimization/90018
3085 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
3086 Test both SLP and interleaving variants.
3088 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
3090 * config/s390/8561.md: New file.
3091 * config/s390/driver-native.c (s390_host_detect_local_cpu):
3092 Add arch13 cpu model.
3093 * config/s390/s390-opts.h (enum processor_type): Likewise.
3094 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
3095 (s390_get_unit_mask): Likewise.
3096 (s390_is_fpd): Likewise.
3097 (s390_is_fxd): Likewise.
3098 * config/s390/s390.h (s390_tune_attr): Likewise.
3099 * config/s390/s390.md: Include arch13 pipeline description.
3100 * config/s390/s390.opt: Add arch13.
3102 2018-04-10 Steve Ellcey <sellcey@marvell.com>
3104 PR rtl-optimization/87763
3105 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
3107 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
3109 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
3111 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
3112 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
3113 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
3114 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
3116 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
3118 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
3119 "Although" in -fipa-icf documentation.
3121 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
3122 of using multiple -g options.
3124 2019-04-10 Martin Liska <mliska@suse.cz>
3126 PR gcov-profile/89959
3127 * doc/gcov.texi: Make documentation of -x option
3130 2019-04-10 Richard Biener <rguenther@suse.de>
3132 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
3134 (DR_GROUP_SAME_DR_STMT): Remove.
3135 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
3136 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
3137 replace with assert.
3138 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
3139 (vect_record_grouped_load_vectors): Remove unreachable code.
3141 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
3144 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
3145 obsolete reference to N.
3147 2019-04-10 Jakub Jelinek <jakub@redhat.com>
3150 * expr.c (store_expr): Set properly size on the MEM passed to
3154 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
3155 with strlen in between hostsz-3 and hostsz-1 inclusive when no
3156 translation is needed, and when translation is needed, only append
3157 ... if the string length is hostsz or more bytes long. Avoid using
3160 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
3163 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
3164 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
3166 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
3167 differences directly.
3168 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
3170 2019-04-09 Jakub Jelinek <jakub@redhat.com>
3172 PR translation/90011
3173 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
3175 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
3177 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
3178 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
3179 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
3180 trailing space from -gsplit-dwarf diagnostics.
3182 PR tree-optimization/89998
3183 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
3184 instead of integer_type_node if possible, don't add ranges if return
3185 type is not compatible with int.
3186 * gimple-fold.c (gimple_fold_builtin_sprintf,
3187 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
3190 2019-04-09 Martin Liska <mliska@suse.cz>
3192 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
3193 * doc/install.texi: Document the new config.
3195 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
3197 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
3198 use gimple_expr_type for load and store calls. Skip over the
3199 condition argument in a conditional internal function.
3200 Protect use of TREE_INT_CST_LOW.
3202 2019-04-09 Jakub Jelinek <jakub@redhat.com>
3205 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
3206 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
3207 trailing period from it too.
3209 2019-04-08 wu yuan <wuyuan5@huawei.com>
3211 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
3212 * config/aarch64/aarch64.md : Add "tsv110.md"
3213 * config/aarch64/tsv110.md: New file.
3215 2019-04-08 Richard Biener <rguenther@suse.de>
3217 PR tree-optimization/90006
3218 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
3221 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
3224 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
3226 (fma_root_node): Likewise.
3227 (func_fma_steering): Likewise.
3229 2019-04-08 Jakub Jelinek <jakub@redhat.com>
3231 PR rtl-optimization/89865
3232 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
3234 PR rtl-optimization/89865
3235 * config/i386/i386.md
3236 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
3237 numbers not to clash with the additional operands[4].
3238 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
3239 with extra register copy in the middle.
3241 2019-04-08 Martin Liska <mliska@suse.cz>
3243 PR gcov-profile/89961
3244 * doc/gcov.texi: Document data_file.
3245 * gcov.c (generate_results): Add data_info into JSON output.
3247 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
3249 PR tree-optimization/89725
3250 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
3251 loop's chrec as invariant symbol.
3252 * tree-chrec.h (chrec_contains_symbols): New parameter.
3253 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
3254 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
3255 function of loops not in DDR's loop_nest.
3256 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
3258 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
3261 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
3264 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
3267 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
3268 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
3270 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
3272 * sched-deps.c (sched_macro_fuse_insns): Check return value of
3273 targetm.fixed_condition_code_regs.
3275 2019-04-05 Richard Biener <rguenther@suse.de>
3279 * tree-cfgcleanup.c (remove_forwarder_block): Always move
3280 debug bind stmts but reset them if they are not valid at the
3283 2019-04-05 Martin Liska <mliska@suse.cz>
3285 PR translation/89936
3286 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
3287 order to wrap keywords or arguments.
3288 * collect2.c (main): Likewise.
3289 (scan_prog_file): Likewise.
3290 (scan_libraries): Likewise.
3291 * common/config/riscv/riscv-common.c
3292 (riscv_subset_list::parsing_subset_version): Likewise.
3293 (riscv_subset_list::parse_std_ext): Likewise.
3294 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3296 * config/arm/arm.c (arm_option_override): Likewise.
3297 * config/cris/cris.c (cris_print_operand): Likewise.
3298 * config/darwin-c.c (darwin_pragma_options): Likewise.
3299 (darwin_pragma_unused): Likewise.
3300 (darwin_pragma_ms_struct): Likewise.
3301 * config/ft32/ft32.c (ft32_print_operand): Likewise.
3302 * config/i386/i386.c (print_reg): Likewise.
3303 (ix86_print_operand): Likewise.
3304 * config/i386/xm-djgpp.h: Likewise.
3305 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
3306 * config/m32c/m32c.c (m32c_option_override): Likewise.
3307 * config/msp430/msp430.c (msp430_option_override): Likewise.
3308 * config/nds32/nds32.c (nds32_option_override): Likewise.
3309 * config/nvptx/mkoffload.c (main): Likewise.
3310 * config/rx/rx.c (rx_print_operand): Likewise.
3311 (valid_psw_flag): Likewise.
3312 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
3313 (vms_pragma_nomember_alignment): Likewise.
3314 (vms_pragma_extern_model): Likewise.
3315 * lto-wrapper.c (compile_offload_image): Likewise.
3316 * omp-offload.c (oacc_parse_default_dims): Likewise.
3317 * symtab.c (symtab_node::verify_base): Likewise.
3318 * tlink.c (recompile_files): Likewise.
3319 (start_tweaking): Likewise.
3320 * tree-profile.c (parse_profile_filter): Likewise.
3322 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
3324 PR tree-optimization/89956
3325 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
3326 multiple negates of the same value.
3328 2019-04-04 Martin Sebor <msebor@redhat.com>
3332 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
3333 have the same precision since the function crashes otherwise.
3334 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
3335 has non-zero arguments.
3337 2019-04-04 Martin Sebor <msebor@redhat.com>
3340 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
3341 out if the number of arguments is less than expected.
3343 2019-04-04 Jeff Law <law@redhat.com>
3345 PR rtl-optimization/89399
3346 * ree.c (combine_set_extension): Use single_set rather than
3347 digging into PATTERN for items on the candidate list.
3348 (combine_reaching_defs): Likewise.
3350 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
3352 PR rtl-optimization/46590
3353 * loop-invariant.c (find_defs): Move df_remove_problem and
3354 df_process_deferred_rescans to move_invariants.
3355 Move df_live_add_problem and df_live_set_all_dirty calls
3357 (move_invariants): Likewise.
3358 (move_loop_invariants): Likewise, making the df_live calls
3359 conditional on -O. Remove the problem again if we added it
3362 2019-04-03 qing zhao <qing.zhao@oracle.com>
3364 PR tree-optimization/89730
3365 * ipa-inline.c (can_inline_edge_p): Delete the checking for
3366 -flive-patching=inline-only-static.
3367 (can_inline_edge_by_limits_p): Add the checking for
3368 -flive-patching=inline-only-static and grant always_inline
3369 even when -flive-patching=inline-only-static is specified.
3371 2019-04-03 Jeff Law <law@redhat.com>
3373 PR rtl-optimization/81025
3374 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
3376 2019-04-03 Richard Biener <rguenther@suse.de>
3378 PR tree-optimization/84101
3379 * tree-vect-stmts.c: Include explow.h for hard_function_value,
3380 regs.h for hard_regno_nregs.
3381 (cfun_returns): New helper.
3382 (vect_model_store_cost): When vectorizing a store to a decl
3383 we return and the function ABI returns in a multi-reg location
3384 account for the possible spilling that will happen.
3386 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
3388 * config/s390/s390.c (s390_legitimate_address_p): Reject long
3389 displacement addresses for vector mode operands.
3391 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
3393 * config/arc/arc.c (GMASK_LEN): Define.
3394 (arc_restore_callee_saves): Restore first blink when
3397 2019-04-03 Sudakshina Das <sudi.das@arm.com>
3399 * doc/extend.texi: Add deprecated comment on sign-return-address
3400 function attribute and add mbranch-protection.
3401 * doc/invoke.texi: Add bti to the options for mbranch-protection.
3403 2019-04-03 Richard Biener <rguenther@suse.de>
3406 * lto-wrapper.c (run_gcc): Avoid implicit rules making
3407 the all target phony.
3409 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
3413 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
3414 Return false for variable DImode shifts.
3415 (dimode_scalar_chain::compute_convert_gain): Do not handle
3416 register count operand in variable DImode shifts.
3417 (dimode_scalar_chain::make_vector_copies): Remove support to copy
3418 count argument of a variable shift instruction to a vector register.
3419 (dimode_scalar_chain::convert_reg): Remove support to convert
3420 count argument of a variable shift instruction.
3422 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
3424 PR rtl-optimization/84206
3425 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
3426 iterating over loop headers.
3428 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
3430 PR rtl-optimization/85876
3431 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
3432 beyond the original fence.
3434 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
3436 * config.gcc: Mark spu* targets as deprecated/obsolete.
3438 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3440 * config/s390/s390-builtin-types.def: New builtin function type
3441 definitions. Remove unused types.
3442 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
3443 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
3444 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
3445 overloaded builtins.
3446 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
3447 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
3448 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
3449 (vec_double, vec_signed, vec_unsigned): Define to use the new
3450 overloaded builtins.
3451 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
3454 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3456 * config/s390/s390-builtin-types.def: New builtin function type
3458 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
3459 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
3460 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
3461 (s390_vstrszh, s390_vstrszf): New low-level builtins.
3462 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
3463 constant definitions.
3464 * config/s390/vecintrin.h (vec_search_string_cc)
3465 (vec_search_string_until_zero_cc): New builtin name definitions.
3466 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
3468 ("vec_vstrs<mode>"): New insn definition.
3470 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3472 * config/s390/s390-builtin-types.def: Add new builtin function
3474 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
3475 New overloaded builtins.
3476 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
3478 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
3479 (UNSPEC_VEC_SLDBYTE): ... this.
3480 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
3481 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
3483 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
3484 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
3485 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
3487 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3489 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
3490 New insn definition.
3491 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
3492 * config/s390/vector.md (V_HW_HSD): ... here.
3494 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3496 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
3497 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
3498 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
3499 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
3500 New insn definitions.
3502 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3504 * config/s390/s390-builtin-types.def: Add new builtin function type.
3505 * config/s390/s390-builtins.def: Add overloaded builtin
3506 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
3507 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
3508 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
3509 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
3510 ("eltswap<mode>"): New expander.
3511 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
3514 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3516 * config/s390/s390-builtin-types.def: Add new builtin function types.
3517 * config/s390/s390-builtins.def: Add overloaded builtin
3518 s390_vec_revb. Add low-level builtins for vlbr and vstbr
3520 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
3521 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
3522 ("bswap<mode>"): New expander.
3523 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
3525 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3527 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
3528 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
3529 vector builtin version number in __VEC__.
3531 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3533 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
3535 (SFSI): New mode attribute.
3536 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
3537 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
3539 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
3540 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
3541 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
3542 ("floatsi<mode>2"): Add wcefb instruction.
3544 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3546 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
3547 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
3549 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
3550 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
3551 support 32 bit fp-int conversions. Rename to ...
3552 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
3553 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
3554 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
3555 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
3558 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3560 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
3561 if-then-else constructs if we can use the select instruction.
3562 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
3564 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3566 * config/s390/s390.md ("*popcountdi_arch13_cc")
3567 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
3569 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
3570 Append _z196 to make it ...
3571 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
3572 ("popcounthi2_z196"): ... this.
3573 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
3574 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
3576 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3578 * config/s390/s390.c (s390_canonicalize_comparison): Convert
3579 certain compares for arch13 in order to make use of the condition
3580 code result produced by the new instructions.
3581 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
3582 nxrk, and nxgrk instruction patterns.
3583 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
3584 (inv_no): Add new code iterator together with some attributes.
3585 ("*andc_split_<mode>"): Disable splitter for arch13.
3586 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
3587 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
3588 ("*<ANDOR:bitops_name>c<GPR:mode>")
3589 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
3590 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
3591 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
3592 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
3594 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3596 * common/config/s390/s390-common.c (processor_flags_table): New
3598 * config.gcc: Support arch13 with the --with-arch= configure flag.
3599 * config/s390/driver-native.c (s390_host_detect_local_cpu):
3600 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
3601 * config/s390/s390.c (s390_get_sched_attrmask)
3602 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
3603 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
3604 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
3605 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
3606 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
3608 * config/s390/s390.opt: Support arch13 as processor type in
3609 command line options.
3611 2019-04-02 Martin Liska <mliska@suse.cz>
3613 PR translation/89912
3614 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
3615 Fix param description of graphite-max-arrays-per-scop.
3617 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
3619 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
3620 (ASAN_CC1_SPEC): Use it in 64-bit mode.
3621 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
3623 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
3625 PR rtl-optimization/85412
3626 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
3627 sel_sched_region_1, not after.
3629 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
3631 PR rtl-optimization/86928
3632 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
3633 compute_live if necessary.
3634 (sel_redirect_edge_and_branch): Likewise.
3636 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
3638 PR rtl-optimization/89865
3639 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
3640 register if it is a part of small class.
3642 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
3644 PR rtl-optimization/87273
3645 * sel-sched-ir.c (merge_fences): Remove assert.
3647 2019-04-01 Richard Biener <rguenther@suse.de>
3649 PR tree-optimization/46590
3650 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
3651 (dom_walker::m_reachability): Add in place of...
3652 (dom_walker::m_skip_unreachable_blocks): ...this.
3653 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
3654 Move complex initialization ...
3655 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
3656 lazily and initialize edge flags on each invocation.
3657 (dom_walker::bb_reachable): Use m_reachability.
3659 2019-04-01 Martin Liska <mliska@suse.cz>
3662 * opt-suggestions.c (option_proposer::build_option_suggestions):
3663 Add variant without any argument in order to provide better
3666 2019-04-01 Richard Biener <rguenther@suse.de>
3669 * gimple.c: Include langhooks.h.
3670 (gimple_get_alias_set): Treat enumeral types as the underlying
3673 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
3674 Eric Botcazou <ebotcazou@adacore.com>
3676 PR rtl-optimization/89862
3677 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
3678 that operates on the full registers for WORD_REGISTER_OPERATIONS
3681 2019-03-29 Jim Wilson <jimw@sifive.com>
3683 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
3684 Clear MASK_RVC and then set if C subset supported.
3686 2019-03-29 Jakub Jelinek <jakub@redhat.com>
3689 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
3690 non-addressable complit into its initializer if it is volatile.
3692 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
3694 * opts-common.c (integral_argument): Set errno properly in one case.
3696 2019-03-29 Martin Liska <mliska@suse.cz>
3698 * doc/invoke.texi: Remove -Wchkp from documentation.
3700 2019-03-29 Martin Liska <mliska@suse.cz>
3702 * dbgcnt.c (print_limit_reach): New function.
3705 2019-03-29 Martin Liska <mliska@suse.cz>
3707 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
3708 (dbg_cnt_process_opt): Parse first tokens aas
3709 dbg_cnt_process_single_pair is also using strtok.
3711 2019-03-29 Jakub Jelinek <jakub@redhat.com>
3713 PR rtl-optimization/87485
3714 * function.c (expand_function_end): Move stack_protect_epilogue
3715 before loading of return value into hard register(s).
3717 2019-03-28 Jakub Jelinek <jakub@redhat.com>
3720 * tree-inline.h (struct copy_body_data): Add
3721 dont_remap_vla_if_no_change flag.
3722 * tree-inline.c (remap_type_3, remap_type_2): New functions.
3723 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
3724 and remap_type_2 returns false.
3725 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
3726 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
3727 only from where it is copied to nested contexts.
3729 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
3732 * config/i386/i386.md (RMW operation with LEA peephole):
3733 Use LEAMODE mode attribute instead of SWI mode iterator for
3736 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
3739 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
3740 Also process XEXP (src, 0) of a shift insn.
3742 2019-03-28 David Malcolm <dmalcolm@redhat.com>
3745 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
3746 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
3748 2019-03-28 Jakub Jelinek <jakub@redhat.com>
3750 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
3752 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
3753 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
3754 immediately after first one with df_analyze in between, but rather
3755 process all bbs, queueing ones that need second pass in a worklist,
3756 df_analyze, process queued debug insn changes and if second pass is
3757 needed, process bbs from worklist, df_analyze, process queued debug
3760 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
3761 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
3762 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
3764 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
3767 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
3770 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
3773 * config/i386/i386.c (ix86_function_value_1): Call the newly added
3774 function for 32-bit MS_ABI.
3775 (function_value_ms_32): New function.
3777 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
3779 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
3780 (movdi): Call gen_movdi_symbol_save_scc.
3781 (gen_movdi_symbol_save_scc): New insn and split.
3783 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
3785 PR rtl-optimization/89313
3786 * function.c (matching_constraint_num): New static function.
3787 (match_asm_constraints_1): Use it. Fixup white space and comment.
3788 Don't replace inputs with non-matching constraints which conflict
3789 with early clobber outputs.
3791 2019-03-27 Jeff Law <law@redhat.com>
3794 PR rtl-optimization/87761
3795 PR rtl-optimization/89826
3796 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
3798 (pass_cprop_hardreg::execute): Call df_analyze after adding the
3799 note problem to get REG_DEAD/REG_UNUSED notes updated.
3801 2019-03-27 Richard Biener <rguenther@suse.de>
3803 PR tree-optimization/89463
3804 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
3805 queue edges to remove.
3806 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
3807 dead stmts. Delay edge removal until PHIs are removed to
3808 make debug-stmt creation not confused by seemingly degenerate
3811 2019-03-27 Alan Modra <amodra@gmail.com>
3813 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
3815 * config/rs6000/darwin.h: Likewise.
3816 * config/rs6000/rs6000.c: Likewise.
3818 2019-03-27 Alan Modra <amodra@gmail.com>
3820 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
3821 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
3823 2019-03-26 Andrew Waterman <andrew@sifive.com>
3824 Jim Wilson <jimw@sifive.com>
3826 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
3827 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
3828 (generic_idivdi, generic_fmul_single, generic_fmul_double)
3829 (generic_fdiv, generic_fsqrt): Add check for generic tune.
3830 (generic_alu): Add auipc to type list.
3831 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
3832 (riscv_microarchitecture): Declare.
3833 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
3834 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
3836 (riscv_microarchitecture): New.
3837 (sifive_7_tune_info): New.
3838 (riscv_cpu_info_table): Add microarchitecture value for rocket and
3839 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
3841 (riscv_store_data_bypass_p): New.
3842 (riscv_option_override): Set riscv_microarchitecture from
3843 cpu->microarchitecture.
3844 * config/riscv/riscv.md: Include sifive-7.md.
3847 (auipc<mode>): Change type to auipc.
3848 (restore_stack_nonlocal): New.
3849 * config/riscv/sifive-7.md: New.
3850 * doc/invoke.texi (RISC-V Options): Update mtune docs.
3852 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
3855 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
3856 Also process XEXP (src, 0) of a shift insn.
3858 2019-03-26 Richard Biener <rguenther@suse.de>
3860 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
3861 (copy_debug_stmt): Likewise.
3862 (expand_call_inline): Likewise.
3863 (copy_bb): Avoid redundant lookup & set of gimple_block.
3864 * gimple-low.c (lower_gimple_return): Likewise.
3865 (lower_builtin_setjmp): Likewise.
3867 2019-03-26 Jakub Jelinek <jakub@redhat.com>
3869 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
3870 is constant 0, turn into static const data member initialized to false.
3871 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
3872 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
3874 2019-03-26 Jason Merrill <jason@redhat.com>
3875 Jakub Jelinek <jakub@redhat.com>
3877 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
3879 (mem_alloc_description::release_object_overhead): Fix comment typos.
3880 * hash-table.h (hash_table::~hash_table): Call
3881 release_instance_overhead only if m_entries is non-NULL, otherwise
3882 call unregister_descriptor.
3884 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
3886 PR tree-optimization/81740
3887 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3888 In case of outer loop vectorization, check for backward dependence
3889 at the inner loop if outer loop dependence is reversed.
3891 2019-03-26 Alan Modra <amodra@gmail.com>
3893 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
3894 rs6000_vector_mem init. Correct wI and wJ comment.
3896 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
3898 PR rtl-optimization/88347
3899 PR rtl-optimization/88423
3900 * sched-deps.c (sched_analyze_insn): Take into account that for
3901 tablejumps the barrier appears after a label and a jump_table_data.
3903 2019-03-25 Martin Sebor <msebor@redhat.com>
3906 * c-common.c (check_user_alignment): Rename local. Correct maximum
3907 alignment in diagnostic. Avoid assuming argument fits in SHWI,
3908 convert it to UHWI when it fits.
3910 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
3913 * dwarf2out.c (premark_used_variables): New function.
3914 (prune_unused_types_walk): Do not mark not premarked external
3916 (prune_unused_types): Call premark_used_variables.
3918 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
3920 PR rtl-optimization/89676
3921 * lra-constraints.c (curr_insn_transform): Do match reload for
3922 early clobbers when the match was successful only for different
3925 2019-03-25 Martin Sebor <msebor@redhat.com>
3927 * doc/extend.texi (Common Type Attributes): Document vector_size.
3928 (Common Variable Attributes): Mention size constraint. Correct
3930 (Vector Extensions): Use @dfn when defining bas type. Clarify
3931 base type and size constraints.
3933 2019-03-25 Richard Biener <rguenther@suse.de>
3935 PR tree-optimization/89789
3936 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
3937 changes from non-undefined back to undefined.
3939 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
3941 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
3942 heap string and a gc string, but since this variable is unknown to
3943 ggc the gc string might get reused and corrupted. Fixed by always
3944 using a heap string.
3946 2019-03-25 Richard Biener <rguenther@suse.de>
3948 PR tree-optimization/89779
3949 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
3950 to remove IV defs, delay actual removal.
3951 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
3952 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
3953 very end, properly also reset loop control IV information.
3955 2019-03-25 Richard Biener <rguenther@suse.de>
3957 PR tree-optimization/89802
3958 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
3959 move EH data to folded stmt.
3961 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
3963 * config/s390/s390-builtin-types.def: Remove few unused types and
3964 fix sort order for others.
3966 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
3968 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
3969 expected and found types with -mdebug during builtin matching.
3971 2019-03-25 Richard Biener <rguenther@suse.de>
3974 * fold-const.c (operand_equal_p): Revert last change with
3977 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
3979 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
3980 notes for the result of the __tls_get_addr calls.
3981 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
3983 2019-03-24 Jeff Law <law@redhat.com>
3985 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
3987 PR rtl-optimization/87761
3988 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
3989 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
3991 (pass_cprop_hardreg::execute): Add df note problem and defer insn
3992 rescans. Reprocess blocks as needed, calling df_analyze before
3993 reprocessing. Always call df_analyze before fixing up debug bind
3996 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
3998 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
4001 2019-03-22 Andrew Pinski <apinski@marvell.com>
4003 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
4004 attrribute for uxtw.
4006 2019-03-26 Jeff Law <law@redhat.com>
4008 PR rtl-optimization/87761
4009 * config/mips/mips-protos.h (mips_split_move): Add new argument.
4010 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
4011 (mips_split_move): Accept new INSN argument. Try to forward SRC
4012 into the next instruction.
4013 (mips_split_move_insn): Pass INSN through to mips_split_move.
4015 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
4017 PR rtl-optimization/89676
4018 * lra-constraints.c (curr_insn_transform): Do match reload for
4019 early clobbers even if the match was successful.
4021 2019-03-22 Jakub Jelinek <jakub@redhat.com>
4024 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
4026 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
4028 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
4030 2019-03-22 Jakub Jelinek <jakub@redhat.com>
4032 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
4033 <avx512>_fmsub_<mode>_mask3<round_name>,
4034 <avx512>_fnmadd_<mode>_mask3<round_name>,
4035 <avx512>_fnmsub_<mode>_mask3<round_name>,
4036 avx512f_vmfmadd_<mode>_mask3<round_name>,
4037 avx512f_vmfmsub_<mode>_mask3<round_name>,
4038 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
4039 instead of register_operand and %v instead of v for match_operand 1.
4040 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
4041 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
4042 <round_nimm_predicate> instead of register_operand and %v instead of v
4043 for match_operand 1.
4045 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
4046 <avx512>_fmadd_<mode>_mask3<round_name>,
4047 <avx512>_fmsub_<mode>_mask<round_name>,
4048 <avx512>_fmsub_<mode>_mask3<round_name>,
4049 <avx512>_fnmadd_<mode>_mask<round_name>,
4050 <avx512>_fnmadd_<mode>_mask3<round_name>,
4051 <avx512>_fnmsub_<mode>_mask<round_name>,
4052 <avx512>_fnmsub_<mode>_mask3<round_name>,
4053 <avx512>_fmaddsub_<mode>_mask<round_name>,
4054 <avx512>_fmaddsub_<mode>_mask3<round_name>,
4055 <avx512>_fmsubadd_<mode>_mask<round_name>,
4056 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
4057 <round_nimm_predicate> instead of nonimmediate_operand.
4058 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
4059 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
4060 Use register_operand instead of <round_nimm_predicate> for the
4061 operand that needs to match output.
4062 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
4063 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
4064 Likewise. Formatting fixes.
4067 * config/i386/i386.c (enum ix86_builtins): Remove
4068 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
4069 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
4070 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
4071 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
4072 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
4073 __builtin_ia32_vfmsubss3_mask3): New builtins.
4074 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
4075 avx512f_vmfmadd_<mode>_mask3<round_name>,
4076 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
4077 *avx512f_vmfmsub_<mode>_mask<round_name>,
4078 avx512f_vmfmsub_<mode>_mask3<round_name>,
4079 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
4080 *avx512f_vmfnmadd_<mode>_mask<round_name>,
4081 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
4082 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
4083 *avx512f_vmfnmsub_<mode>_mask<round_name>,
4084 avx512f_vmfnmsub_<mode>_mask3<round_name>,
4085 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
4086 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
4087 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
4088 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
4089 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
4090 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
4091 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
4092 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
4093 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
4094 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
4095 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
4096 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
4097 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
4098 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
4099 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
4100 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
4101 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
4102 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
4103 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
4104 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
4105 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
4106 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
4108 2019-03-21 Martin Sebor <msebor@redhat.com>
4110 PR tree-optimization/89350
4111 * builtins.c (compute_objsize): Also ignore offsets whose upper
4113 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
4114 (builtin_memref::builtin_memref): Initialize new member.
4115 Allow EXPR to be null.
4116 (builtin_memref::extend_offset_range): Replace local with a member.
4117 Avoid assuming pointer offsets are unsigned.
4118 (builtin_memref::set_base_and_offset): Determine base object
4119 before computing offset range.
4120 (builtin_access::builtin_access): Handle memset.
4121 (builtin_access::generic_overlap): Replace local with a member.
4122 (builtin_access::strcat_overlap): Same.
4123 (builtin_access::overlap): Same.
4124 (maybe_diag_overlap): Same.
4125 (maybe_diag_access_bounds): Same.
4126 (wrestrict_dom_walker::check_call): Handle memset.
4127 (check_bounds_or_overlap): Same.
4129 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
4130 Jakub Jelinek <jakub@redhat.com>
4133 * tree.c (fld_type_variant, fld_incomplete_type_of,
4134 fld_process_array_type): Call fld->pset.add and don't call
4135 add_tree_to_fld_list if it returns true.
4136 (free_lang_data_in_type): Similarly with self-recursive call. Purge
4137 non-marked types from TYPE_NEXT_VARIANT list.
4138 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
4140 2019-03-21 Jakub Jelinek <jakub@redhat.com>
4142 * hash-table.h (hash_table): Add Lazy template parameter defaulted
4143 to false, if true, don't alloc_entries during construction, but defer
4144 it to the first method that needs m_entries allocated.
4145 (hash_table::hash_table, hash_table::~hash_table,
4146 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
4147 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
4148 hash_table::clear_slot, hash_table::traverse_noresize,
4149 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
4150 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
4152 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
4153 NO_INSERT instead of find_with_hash.
4154 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
4155 hash_set::m_table): Add Lazy to template params of hash_table.
4156 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
4157 * attribs.c (test_attribute_exclusions): Likewise.
4158 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
4159 hash_set. Add tests for hash_set with Lazy = true.
4161 2019-03-21 Richard Biener <rguenther@suse.de>
4163 PR tree-optimization/89779
4164 * tree.c (tree_nop_conversion): Consolidate and fix defensive
4165 checks with respect to released SSA names now having error_mark_node
4167 * fold-const.c (operand_equal_p): Likewise.
4169 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
4172 * config/s390/s390.c (global_not_special_regno_p): Move to make it
4174 (s390_optimize_register_info): Use global_not_special_regno_p to
4175 check for global regs.
4177 2019-03-20 Jakub Jelinek <jakub@redhat.com>
4180 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
4181 update this_alternative nor this_alternative_set.
4183 2019-03-19 Jim Wilson <jimw@sifive.com>
4186 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
4187 align, size, offset. Use them to handle a BLKmode reference. Update
4189 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
4191 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4193 PR rtl-optimization/89768
4194 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
4196 (unroll_loop_runtime_iterations): Likewise.
4198 2019-03-19 Martin Sebor <msebor@redhat.com>
4200 PR tree-optimization/89644
4201 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
4202 rather than endptr as an indicator of nul-termination.
4204 PR tree-optimization/89644
4205 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
4206 arrays in determining sequence sizes in strncpy and stpncpy.
4208 2019-03-19 Martin Liska <mliska@suse.cz>
4211 * predict.c (combine_predictions_for_bb): Empty likely_edges and
4212 unlikely_edges if there's an edge that belongs to both these sets.
4214 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
4217 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
4218 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
4219 go via a stack temporary.
4221 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4224 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
4225 instead of gen_rtx_SUBREG.
4226 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
4228 2019-03-19 Richard Biener <rguenther@suse.de>
4231 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
4233 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
4237 * tree.c (free_lang_data_in_decl): Do not free context of C++
4240 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4243 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
4244 subs for the first alternative except when operands[3] is 1.
4247 * gimplify.c (gimplify_asm_expr): For output argument with
4248 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
4251 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
4253 PR rtl-optimization/89753
4254 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
4255 explicit unrolling factor even more robust.
4257 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4260 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
4261 compensation use x2 += 1 instead of x2 -= -1 and when honoring
4262 signed zeros, do another copysign after the compensation.
4264 2019-03-18 Martin Sebor <msebor@redhat.com>
4266 PR tree-optimization/89720
4267 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
4268 more conservatively, the same as anti-range.
4270 2019-03-18 Richard Biener <rguenther@suse.de>
4273 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
4274 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
4275 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
4276 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
4278 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
4280 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
4281 Extend queue to 1024 entries.
4282 Add "consumed" field.
4283 (gomp_print_output): Remove print_index parameter.
4284 Add final parameter.
4285 Change limit to unsigned.
4286 Use consumed field to implement circular buffer.
4287 Detect interrupted print in final pass.
4288 Flush output at the end.
4289 (run): Update gomp_print_output usage.
4290 (main): Initialize kernargs->output_data.consumed.
4292 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
4294 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
4295 calculation of the minimum number of scalar iterations for
4296 fully-predicated loops.
4298 2019-03-18 Martin Jambor <mjambor@suse.cz>
4300 PR tree-optimization/89546
4301 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
4302 any propagation to its children took place.
4304 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
4307 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
4308 parameter, and make use of it.
4309 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
4311 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4313 * config/arc/arc.opt (mcode-density-frame): Get the inital value
4314 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
4315 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
4316 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
4317 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
4318 match what the ops is doing.
4319 (push_multi_fp_blink): Likewise.
4320 * config/arc/arc.c (arc_override_options): Enable enter/leave when
4321 compiling for size and elf target.
4322 (arc_save_callee_enter): Adjust note to match what enter/leave
4325 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4327 * config/arc/arc.md (tst_movb): Fix constraint.
4329 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4331 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
4333 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4335 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
4336 * config/arc/arc.c (arc_conditional_register_usage): Remove all
4337 reg_alloc_order references.
4338 (size_alloc_order): Define.
4339 (arc_adjust_reg_alloc_order): New function.
4340 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
4342 (ADJUST_REG_ALLOC_ORDER): Define.
4343 (HONOR_REG_ALLOC_ORDER): Likewise.
4345 2019-03-18 Richard Biener <rguenther@suse.de>
4348 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
4349 loads and stores a bit more.
4351 2019-03-18 Richard Biener <rguenther@suse.de>
4354 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
4355 load pessimization to stores as well.
4357 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
4360 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
4361 successor, use NULL as its av set.
4363 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
4365 PR rtl-optimization/89721
4366 * lra-constraints (invariant_p): Return false if side_effects_p holds.
4368 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
4371 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4372 When handling vec_extract, use modular arithmetic to allow
4373 constant selectors greater than vector length.
4374 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
4375 V1TImode vectors to have constant selector values greater than 0.
4376 Use modular arithmetic to compute vector index.
4377 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
4378 index for in-memory vectors. Correct code generation for
4379 in-register vectors.
4380 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
4383 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
4387 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
4390 2019-03-15 Jakub Jelinek <jakub@redhat.com>
4393 * tree.c (inchash::add_expr): Strip any location wrappers.
4394 * fold-const.c (operand_equal_p): Move stripping of location wrapper
4395 after hash verification.
4398 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
4399 SIGN_EXTEND and ZERO_EXTEND.
4401 2019-03-14 Jason Merrill <jason@redhat.com>
4402 Jakub Jelinek <jakub@redhat.com>
4404 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
4405 than if is_empty (*slot).
4406 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
4407 existing elt and for elt removal.
4408 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
4409 of already removed elt.
4411 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
4414 * config/i386/i386.c (remove_partial_avx_dependency): Handle
4417 2019-03-14 Martin Liska <mliska@suse.cz>
4420 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
4422 2019-03-14 Richard Biener <rguenther@suse.de>
4425 * config/i386/i386.c (make_resolver_func): Properly set
4426 DECL_CONTEXT on the RESULT_DECL.
4427 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
4429 2019-03-14 Richard Biener <rguenther@suse.de>
4431 * gimple-pretty-print.c: Include cfgloop.h.
4432 (dump_gimple_phi): Adjust.
4433 (dump_gimple_bb_header): Dump loop header for GIMPLE.
4434 (pp_cfg_jump): Adjust.
4435 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
4436 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
4437 (lower_phi_internal_fn): Remove.
4438 (verify_gimple_call): Remove IFN_PHI special-casing.
4439 (dump_function_to_file): Dump IL state.
4440 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
4441 done to deal with PHI nodes being present in non-SSA state.
4443 2019-03-14 Jakub Jelinek <jakub@redhat.com>
4446 * multiple_target.c (create_dispatcher_calls): Change
4447 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
4448 In the node->iterate_referring loop, push *ref rather than ref, call
4449 ref->remove_reference () and always pass 0 to iterate_referring.
4451 PR rtl-optimization/89679
4452 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
4453 would contain a paradoxical SUBREG.
4455 2019-03-14 Richard Biener <rguenther@suse.de>
4457 PR tree-optimization/89710
4458 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
4461 2019-03-14 Martin Liska <mliska@suse.cz>
4463 * coverage.c (coverage_begin_function): Stream also
4465 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
4466 documentation about function declaration location.
4467 * gcov-dump.c (tag_function): Print whole range
4468 of function declaration.
4469 * gcov.c (struct function_info): Add end_column field.
4470 (function_info::function_info): Initialize it.
4471 (output_json_intermediate_file): Output {start,end}_column
4473 (read_graph_file): Read end_column.
4475 2019-03-14 Richard Biener <rguenther@suse.de>
4478 * fold-const.c (operand_equal_p): For INDIRECT_REF check
4479 that the access types are similar.
4481 2019-03-14 Jakub Jelinek <jakub@redhat.com>
4483 PR tree-optimization/89703
4484 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
4485 aren't compatible also with builtin_decl_explicit. Check pure
4486 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
4487 and BUILT_IN_STPNCPY{,_CHK}.
4489 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
4492 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
4493 addr32 prefix to VSIB address for X32.
4494 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
4496 (*avx512pf_gatherpf<mode>df_mask): Likewise.
4497 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
4498 (*avx512pf_scatterpf<mode>df_mask): Likewise.
4499 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
4500 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
4501 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
4502 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
4503 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
4504 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
4505 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
4506 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
4507 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
4508 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
4509 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
4510 (*avx512f_scatterdi<mode>): Likewise.
4512 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
4515 * lra-constraints.c (inherit_in_ebb): Update
4516 potential_reload_hard_regs along with live_hard_regs.
4518 2019-03-13 Jakub Jelinek <jakub@redhat.com>
4521 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
4523 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
4525 2019-03-13 Martin Sebor <msebor@redhat.com>
4527 PR tree-optimization/89662
4528 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
4531 2019-03-13 Richard Biener <rguenther@suse.de>
4534 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
4535 throw FP expressions at tree-affine.
4537 2019-03-14 Richard Biener <rguenther@suse.de>
4539 * tree-pretty-print.c (dump_generic_node): For -gimple properly
4540 dump negative integer constants using _Literal (type) -num.
4542 2019-03-13 Jakub Jelinek <jakub@redhat.com>
4544 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
4545 nonlocal_value member.
4548 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
4549 (ipa_simd_modify_function_body): Handle PHIs.
4551 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4553 * config/s390/s390.c (s390_option_override_internal): Use more
4554 aggressive inlining parameters.
4556 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4558 * config/s390/3906.md: New file.
4559 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
4560 (LONGRUNNING_THRESHOLD): Remove.
4561 (MAX_SCHED_MIX_SCORE): Decrease.
4562 (MAX_SCHED_MIX_DISTANCE): Decrease.
4563 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
4564 (struct s390_sched_state): New struct to hold scheduling state.
4565 (S390_SCHED_STATE_NORMAL): Remove.
4566 (S390_SCHED_STATE_CRACKED): Remove.
4567 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
4568 (s390_get_sched_attrmask): Use new attribute.
4569 (s390_get_unit_mask): Use new units.
4570 (s390_is_fpd): New function.
4571 (s390_is_fxd): New function.
4572 (s390_is_longrunning): New function.
4573 (s390_sched_score): Use new functions.
4574 (s390_sched_reorder): Likewise.
4575 (s390_sched_variable_issue): Rework and use new functions.
4576 (s390_sched_init): Use new functions.
4577 * config/s390/s390.h (s390_tune_attr): Add z14.
4578 * config/s390/s390.md: Add z14.
4580 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4582 * config/s390/2964.md: Update pipeline description.
4583 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
4584 (LONGRUNNING_THRESHOLD): Remove.
4585 (LATENCY_FACTOR): Remove.
4586 (s390_get_unit_mask): Add unit.
4587 (s390_sched_score): Use fxd/fpd.
4588 (s390_sched_variable_issue): Use fxd/fpd.
4590 2019-03-12 Martin Liska <mliska@suse.cz>
4592 * config/i386/i386.c: Reword an error message.
4594 2019-03-12 Martin Jambor <mjambor@suse.cz>
4596 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
4597 terminate with newline.
4599 2019-03-12 Jakub Jelinek <jakub@redhat.com>
4602 * config/s390/s390.md (tabort): Use %wd instead of
4603 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
4604 letters and periods.
4605 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
4606 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
4610 * builtins.c (expand_builtin_int_roundingfn,
4611 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
4612 gcc_unreachable if validate_arglist fails.
4614 2019-03-12 Richard Biener <rguenther@suse.de>
4616 PR tree-optimization/89664
4617 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
4618 free the occurance tree after the early out.
4620 2019-03-11 Jakub Jelinek <jakub@redhat.com>
4624 * vr-values.c (vr_values::update_value_range): If
4625 old_vr->varying_p (), don't update it, make new_vr also VARYING
4628 2019-03-11 Martin Liska <mliska@suse.cz>
4630 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4631 Fix double string quoting.
4633 2019-03-11 Martin Liska <mliska@suse.cz>
4635 * collect-utils.c (collect_wait): Wrap apostrophes
4636 in gcc internal format with %'.
4637 * collect2.c (main): Likewise.
4638 (scan_prog_file): Likewise.
4639 (scan_libraries): Likewise.
4640 * config/i386/i386.c (ix86_expand_call): Likewise.
4641 (ix86_handle_interrupt_attribute): Likewise.
4642 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
4643 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
4644 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
4645 * lto-wrapper.c (find_crtoffloadtable): Likewise.
4646 * symtab.c (symtab_node::verify_base): Likewise.
4647 * tree-cfg.c (verify_gimple_label): Likewise.
4648 * tree.c (verify_type_variant): Likewise.
4650 2019-03-11 Martin Liska <mliska@suse.cz>
4652 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
4653 in a string format message and fix GNU coding style.
4654 (expand_builtin_set_thread_pointer): Likewise.
4655 * common/config/aarch64/aarch64-common.c
4656 (aarch64_rewrite_selected_cpu): Likewise.
4657 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
4658 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
4659 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
4660 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
4661 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
4662 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
4663 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
4664 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
4665 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
4666 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
4668 * common/config/riscv/riscv-common.c
4669 (riscv_subset_list::parsing_subset_version): Likewise.
4670 (riscv_subset_list::parse_std_ext): Likewise.
4671 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
4672 (riscv_subset_list::parse): Likewise.
4673 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
4674 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
4675 (aarch64_override_options_internal): Likewise.
4676 (aarch64_validate_mcpu): Likewise.
4677 (aarch64_validate_march): Likewise.
4678 (aarch64_validate_mtune): Likewise.
4679 (aarch64_override_options): Likewise.
4680 * config/alpha/alpha.c (alpha_option_override): Likewise.
4681 * config/arc/arc.c (arc_init): Likewise.
4682 (parse_mrgf_banked_regs_option): Likewise.
4683 (arc_override_options): Likewise.
4684 (arc_expand_builtin_aligned): Likewise.
4685 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
4686 (arm_expand_builtin): Likewise.
4687 * config/arm/arm.c (arm_option_check_internal): Likewise.
4688 (arm_configure_build_target): Likewise.
4689 (arm_option_override): Likewise.
4690 (arm_options_perform_arch_sanity_checks): Likewise.
4691 (arm_handle_cmse_nonsecure_entry): Likewise.
4692 (arm_handle_cmse_nonsecure_call): Likewise.
4693 (arm_tls_referenced_p): Likewise.
4694 (thumb1_expand_prologue): Likewise.
4695 * config/avr/avr.c (avr_option_override): Likewise.
4696 * config/bfin/bfin.c (bfin_option_override): Likewise.
4697 * config/c6x/c6x.c (c6x_option_override): Likewise.
4698 * config/cr16/cr16.c (cr16_override_options): Likewise.
4699 * config/cris/cris.c (cris_option_override): Likewise.
4700 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
4701 * config/darwin-c.c (macosx_version_as_macro): Likewise.
4702 * config/darwin.c (darwin_override_options): Likewise.
4703 * config/frv/frv.c (frv_expand_builtin): Likewise.
4704 * config/h8300/h8300.c (h8300_option_override): Likewise.
4705 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
4706 (ix86_option_override_internal): Likewise.
4707 (warn_once_call_ms2sysv_xlogues): Likewise.
4708 (ix86_expand_prologue): Likewise.
4709 (split_stack_prologue_scratch_regno): Likewise.
4710 (ix86_warn_parameter_passing_abi): Likewise.
4711 * config/ia64/ia64.c (fix_range): Likewise.
4712 * config/m68k/m68k.c (m68k_option_override): Likewise.
4713 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
4714 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
4715 (mips_set_compression_mode): Likewise.
4716 * config/mmix/mmix.c (mmix_option_override): Likewise.
4717 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
4718 * config/msp430/msp430.c (msp430_option_override): Likewise.
4719 * config/nds32/nds32.c (nds32_option_override): Likewise.
4720 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
4721 (nios2_option_override): Likewise.
4722 (nios2_expand_custom_builtin): Likewise.
4723 * config/nvptx/mkoffload.c (main): Likewise.
4724 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
4725 * config/pa/pa.c (fix_range): Likewise.
4726 (pa_option_override): Likewise.
4727 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
4728 (riscv_option_override): Likewise.
4729 * config/rl78/rl78.c (rl78_option_override): Likewise.
4730 * config/rs6000/aix61.h: Likewise.
4731 * config/rs6000/aix71.h: Likewise.
4732 * config/rs6000/aix72.h: Likewise.
4733 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
4734 * config/rs6000/freebsd64.h: Likewise.
4735 * config/rs6000/linux64.h: Likewise.
4736 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4737 (rs6000_expand_zeroop_builtin): Likewise.
4738 (rs6000_expand_mtfsb_builtin): Likewise.
4739 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
4740 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
4741 (rs6000_invalid_builtin): Likewise.
4742 (rs6000_expand_split_stack_prologue): Likewise.
4743 * config/rs6000/rtems.h: Likewise.
4744 * config/rx/rx.c (valid_psw_flag): Likewise.
4745 (rx_expand_builtin): Likewise.
4746 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
4747 * config/s390/s390.c (s390_expand_builtin): Likewise.
4748 (s390_function_profiler): Likewise.
4749 (s390_option_override_internal): Likewise.
4750 (s390_option_override): Likewise.
4751 * config/sh/sh.c (sh_option_override): Likewise.
4752 (sh_builtin_saveregs): Likewise.
4753 (sh_fix_range): Likewise.
4754 * config/sh/vxworks.h: Likewise.
4755 * config/sparc/sparc.c (sparc_option_override): Likewise.
4756 * config/spu/spu.c (spu_option_override): Likewise.
4757 (fix_range): Likewise.
4758 * config/visium/visium.c (visium_option_override): Likewise.
4759 (visium_handle_interrupt_attr): Likewise.
4760 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
4761 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
4762 (dbg_cnt_process_opt): Likewise.
4763 * dwarf2out.c (output_dwarf_version): Likewise.
4764 * except.c (expand_eh_return): Likewise.
4765 * gcc.c (defined): Likewise.
4766 (driver_handle_option): Likewise.
4767 (process_command): Likewise.
4768 (compare_files): Likewise.
4769 (driver::prepare_infiles): Likewise.
4770 (driver::do_spec_on_infiles): Likewise.
4771 (driver::maybe_run_linker): Likewise.
4772 * omp-offload.c (oacc_parse_default_dims): Likewise.
4773 * opts-global.c (handle_common_deferred_options): Likewise.
4774 * opts.c (parse_sanitizer_options): Likewise.
4775 (common_handle_option): Likewise.
4776 (enable_warning_as_error): Likewise.
4777 * passes.c (enable_disable_pass): Likewise.
4778 * plugin.c (parse_plugin_arg_opt): Likewise.
4779 (default_plugin_dir_name): Likewise.
4780 * targhooks.c (default_expand_builtin_saveregs): Likewise.
4781 (default_pch_valid_p): Likewise.
4782 * toplev.c (init_asm_output): Likewise.
4783 (process_options): Likewise.
4784 (toplev::run_self_tests): Likewise.
4785 * tree-cfg.c (verify_gimple_call): Likewise.
4786 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
4787 (tree_inlinable_function_p): Likewise.
4788 * var-tracking.c (vt_find_locations): Likewise.
4790 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
4792 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
4793 only on the else branch.
4795 2019-03-11 Martin Liska <mliska@suse.cz>
4797 * gcov.c (output_intermediate_json_line): Print function
4799 (output_json_intermediate_file): Add new argument.
4800 * doc/gcov.texi: Document the change.
4802 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
4804 PR rtl-optimization/89588
4805 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
4806 explicit unrolling factor more robust.
4808 2019-03-11 Richard Biener <rguenther@suse.de>
4810 PR tree-optimization/89649
4811 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
4812 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
4813 on the prolog and epilog loops.
4814 (vect_loop_versioning): Return copy of loop.
4815 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
4816 on the non-vectorized version of the loop.
4818 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
4821 * config/i386/sse.md (*vec_extractv2di_0_sse):
4822 Add (=r,x) alternative and corresponding splitter.
4824 2019-03-10 Martin Jambor <mjambor@suse.cz>
4826 PR tree-optimization/85762
4827 PR tree-optimization/87008
4828 PR tree-optimization/85459
4829 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
4830 it points to if there is a type changing MEM_REF. Adjust all callers.
4831 (build_accesses_from_assign): Disable total scalarization if
4832 contains_vce_or_bfcref_p returns true through the new parameter, for
4835 2019-03-09 Jakub Jelinek <jakub@redhat.com>
4838 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
4839 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
4842 * common.opt (fdiagnostics-show-labels,
4843 fdiagnostics-show-line-numbers, fdiagnostics-format=,
4844 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
4845 gas-locview-support, ginline-points, ginternal-reset-location-views):
4846 Terminate description text with a dot.
4847 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
4848 * config/mcore/mcore.opt (m210, m340): Likewise.
4849 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
4850 mnops=): Start description text with a capital letter.
4851 * config/arc/arc.opt (msize-level=): Likewise.
4852 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
4853 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
4855 * config/ft32/ft32.opt (msim): Likewise.
4856 (mft32b, mcompress): Likewise. Terminate description text with a dot.
4857 (mnodiv, mnopm): Terminate description text with a dot.
4858 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
4860 * config/i386/i386.opt (prefer_vector_width, instrument_return):
4862 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
4865 PR rtl-optimization/89634
4866 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
4867 are modified in BB_END (e->src) instruction.
4869 2019-03-08 David Malcolm <dmalcolm@redhat.com>
4872 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
4873 messages more amenable to translation, and improve wording.
4875 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
4877 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
4878 ud- and du-chains between phases.
4880 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
4883 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
4884 instead of POLY_INT_CST.
4886 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4888 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
4891 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
4896 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
4897 (_mm_storeu_si64): Ditto.
4899 2019-03-08 Martin Liska <mliska@suse.cz>
4902 * config/i386/i386.c (ix86_option_override_internal): Disable
4903 jump tables when retpolines are used.
4905 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
4908 * ipa-split.c (execute_split_functions): Do not split
4909 'noinline' or 'section' function.
4911 2019-03-08 Jakub Jelinek <jakub@redhat.com>
4914 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
4915 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
4916 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
4919 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
4920 from diagnostics. Formatting fixes.
4923 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
4924 warn_odr diagnostics.
4927 * lra-constraints.c (process_alt_operands): Avoid one space before
4928 " at the end of line and another after " on another line in a string
4930 * attribs.c (handle_dll_attribute): Likewise.
4931 * config/avr/avr-devices.c (avr_texinfo): Likewise.
4933 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
4934 warning_at or inform messages in G_() if there is no ?:.
4936 PR tree-optimization/89550
4937 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
4938 returned true. Formatting fixes.
4939 (expand_builtin_strnlen): Formatting fixes.
4940 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
4941 if warning_at returned true.
4942 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
4944 2019-03-08 Richard Biener <rguenther@suse.de>
4947 * cfgloop.h (struct loop): Add owned_clique field.
4948 * cfgloopmanip.c (copy_loop_info): Copy it.
4949 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
4951 * tree-inline.c (copy_loops): Remap owned_clique.
4952 * lto-streamer-in.c (input_cfg): Stream owned_clique.
4953 * lto-streamer-out.c (output_cfg): Likewise.
4955 2019-03-08 Jakub Jelinek <jakub@redhat.com>
4958 * config/darwin.c: Include intl.h.
4959 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
4960 composing the message out of two separate parts.
4962 2019-03-07 Jakub Jelinek <jakub@redhat.com>
4965 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
4966 doesn't start with a capital letter and doesn't end with a dot.
4967 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
4968 with a capital letter.
4969 (ix86_mangle_function_version_assembler_name): Likewise.
4970 (ix86_generate_version_dispatcher_body): Likewise.
4971 (fold_builtin_cpu): Likewise.
4972 (get_builtin_code_for_version): Likewise. Remove extraneous space.
4973 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
4974 translators, wrap full type name in %qs.
4976 PR translation/79999
4977 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
4978 depend clause with source (or sink) modifier.
4979 * omp-expand.c (expand_omp_ordered_sink): Likewise.
4982 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
4983 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
4984 (avx512f_load<mode>_mask): New define_expand.
4985 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
4986 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
4987 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
4988 __builtin_ia32_movess_mask): New builtins.
4989 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
4990 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
4991 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
4992 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
4994 2019-03-07 Martin Jambor <mjambor@suse.cz>
4997 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
4998 for extern inline functions.
5000 2019-03-07 Martin Jambor <mjambor@suse.cz>
5003 * cgraph.h (cgraph_node): New inline method former_thunk_p.
5004 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
5005 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
5006 have multiple callees. At the end check if declarations match as
5007 opposed to cgraph_nodes.
5009 2019-03-07 Martin Liska <mliska@suse.cz>
5011 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
5012 which is equivalent to searching for this in clones chain.
5013 * symtab.c (symtab_node::verify_base): Similarly compare ASM
5014 names with a neighbour and special case first node in a chain.
5016 2019-01-25 Jason Merrill <jason@redhat.com>
5018 PR c++/80916 - spurious "static but not defined" warning.
5019 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
5020 for an internal symbol with DECL_EXTERNAL.
5022 2019-04-07 Richard Biener <rguenther@suse.de>
5025 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
5026 * tree-inline.c (copy_loops): Simplify.
5028 2019-03-07 Martin Liska <mliska@suse.cz>
5030 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
5032 2019-03-07 Richard Biener <rguenther@suse.de>
5034 PR tree-optimization/89595
5035 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
5036 stmt iterator as reference, take boolean output parameter to
5037 indicate whether the stmt was removed and thus the iterator
5039 (dom_opt_dom_walker::before_dom_children): Re-iterate over
5040 stmts created by folding.
5042 2019-03-07 Jakub Jelinek <jakub@redhat.com>
5045 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
5048 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
5050 PR rtl-optimization/88845
5051 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
5053 * lra.c (remove_scratches_1): New function.
5054 (remove_scratches): Use it.
5055 (lra_emit_move): Likewise.
5057 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
5059 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
5060 unaligned_access variable.
5061 * config/arc/arc.c (arc_override_options): Set unaligned access
5062 default on for HS CPUs.
5063 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
5065 2019-03-06 Martin Liska <mliska@suse.cz>
5067 PR gcov-profile/89577
5068 * doc/gcov.texi: Prefer to use --coverage.
5069 * doc/sourcebuild.texi: Likewise.
5071 2019-03-02 Jason Merrill <jason@redhat.com>
5073 PR c++/86485 - -Wmaybe-unused with empty class ?:
5074 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
5076 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5079 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
5083 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
5084 exactly one argument.
5086 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5087 Richard Sandiford <richard.sandiford@arm.com>
5089 PR tree-optimization/89570
5090 * match.pd (vec_cond into cond_op simplification): Don't use
5091 get_conditional_internal_fn, use as_internal_fn (cond_op).
5093 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
5096 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
5097 to decide when to split off a non-zero offset from a symbol.
5098 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
5099 in function symbols.
5101 2019-03-05 Richard Biener <rguenther@suse.de>
5103 PR tree-optimization/89594
5104 * tree-if-conv.c (pass_if_conversion::execute): Handle
5105 case where .LOOP_VECTORIZED_FUNCTION was removed.
5107 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5110 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
5111 instead alloca it only when needed with the needed size.
5113 PR tree-optimization/89570
5114 * match.pd (vec_cond into cond_op simplification): Guard with
5115 vectorized_internal_fn_supported_p test and #if GIMPLE.
5117 PR tree-optimization/89566
5118 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
5119 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
5120 Punt if get_user_idx_format succeeds, but idx_format argument is
5121 not provided or doesn't have pointer type, or if idx_args is above
5122 number of provided arguments.
5124 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
5126 PR tree-optimization/89437
5127 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
5129 2019-03-04 Richard Biener <rguenther@suse.de>
5132 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
5135 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
5137 PR tree-optimization/89487
5138 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
5139 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
5140 (distribute_loop): Don't do runtime alias check if there is non-
5141 addressable data reference.
5142 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
5143 is a register variable.
5145 2019-03-02 Jakub Jelinek <jakub@redhat.com>
5148 * config/arm/arm.md (cmpsi2_addneg): Use
5149 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
5150 If operands[2] is 0 or INT_MIN, force use of subs.
5151 (*compare_scc splitter): Use gen_int_mode.
5152 (*negscc): Likewise.
5153 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
5155 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
5156 Monk Chiang <sh.chiang04@gmail.com>
5158 * common/config/riscv/riscv-common.c: Include sstream.
5159 (riscv_subset_list::to_string): New.
5160 (riscv_arch_str): Likewise.
5161 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
5163 * config/riscv/riscv-protos.h (riscv_arch_str): New.
5164 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
5165 (riscv_emit_attribute): New.
5166 (riscv_file_start): Emit attribute if needed.
5167 (riscv_option_override): Init riscv_emit_attribute_p.
5168 * config/riscv/riscv.opt (mriscv-attribute): New option.
5169 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
5171 * doc/install.texi: Document --with-riscv-attribute.
5172 * doc/invoke.texi: Document -mriscv-attribute.
5174 * common/config/riscv/riscv-common.c:
5175 Include config/riscv/riscv-protos.h.
5176 (INCLUDE_STRING): Defined.
5177 (RISCV_DONT_CARE_VERSION): Defined.
5178 (riscv_subset_t): Declare.
5179 (riscv_subset_t::riscv_subset_t): New.
5180 (riscv_subset_list): Declare.
5181 (riscv_subset_list::riscv_subset_list): New.
5182 (riscv_subset_list::~riscv_subset_list): Likewise.
5183 (riscv_subset_list::parsing_subset_version): Likewise.
5184 (riscv_subset_list::parse_std_ext): Likewise.
5185 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
5186 (riscv_subset_list::add): Likewise.
5187 (riscv_subset_list::lookup): Likewise.
5188 (riscv_subset_list::xlen): Likewise.
5189 (riscv_subset_list::parse): Likewise.
5190 (riscv_supported_std_ext): Likewise.
5191 (current_subset_list): Likewise.
5192 (riscv_parse_arch_string): Using riscv_subset_list::parse to
5195 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
5197 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
5198 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
5199 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
5201 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
5203 PR rtl-optimization/85899
5204 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
5205 fallthru edges leading to the exit block.
5207 2019-03-01 Tamar Christina <tamar.christina@arm.com>
5210 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
5211 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
5213 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
5215 PR tree-optimization/89535
5216 * tree-vect-stmts.c (vectorizable_call): Record the vector types
5217 for each operand. Calculate the fallback choice for mask operands
5218 and pass it to vect_get_vec_def_for_operand.
5220 2019-03-01 Richard Biener <rguenther@suse.de>
5223 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
5224 get virtual operands.
5225 (get_expr_operands): Handle CONST_DECL like other decls.
5227 2019-03-01 Jakub Jelinek <jakub@redhat.com>
5230 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
5231 on DECL_P and EXPR_P.
5233 2019-03-01 Richard Biener <rguenther@suse.de>
5236 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
5237 argument, defaulted to zero.
5238 * passes.c (execute_function_todo): Pass down SSA update flags
5239 to cleanup_tree_cfg.
5240 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
5241 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
5243 (cleanup_tree_cfg): Get and pass down SSA update flags.
5245 2019-03-01 Jakub Jelinek <jakub@redhat.com>
5248 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
5249 early_lto_debug argument.
5251 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
5253 PR tree-optimization/89536
5254 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
5255 only whether bit #0 of the value is 0 instead of the entire value.
5257 2019-02-28 Marek Polacek <polacek@redhat.com>
5259 PR c++/87068 - missing diagnostic with fallthrough statement.
5260 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
5261 at the end of a seq, save its location to walk_stmt_info.
5262 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
5265 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
5268 * tree.c (find_atomic_core_type): Move ahead in file.
5269 (check_base_type): Correctly compare alignments of atomic types.
5271 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
5274 * config/i386/i386.c (get_builtin_code_for_version): Identify
5275 Westmere from PCLMUL, instead of AES.
5277 2019-02-28 Jakub Jelinek <jakub@redhat.com>
5280 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
5281 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
5284 2019-02-28 Tamar Christina <tamar.christina@arm.com>
5287 * config/aarch64/aarch64-option-extensions.def: Document it.
5288 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
5291 2019-02-28 Jakub Jelinek <jakub@redhat.com>
5294 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
5295 builtins if they don't have a single scalar floating point argument.
5298 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
5300 PR rtl-optimization/89490
5301 * varasm.c (get_block_for_section): Bail out for mergeable sections.
5302 (default_use_anchors_for_symbol_p, output_object_block): Assert the
5303 block section is not mergeable.
5305 2019-02-27 Jakub Jelinek <jakub@redhat.com>
5308 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
5309 old define_insn to ...
5310 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
5311 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
5312 Rename old define_insn to ...
5313 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
5314 (thumb2_casesi_internal_pic): New define_expand. Rename old
5316 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
5317 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
5318 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
5320 2019-02-27 Richard Biener <rguenther@suse.de>
5323 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
5325 2019-02-27 Richard Biener <rguenther@suse.de>
5327 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
5330 2019-02-27 Richard Biener <rguenther@suse.de>
5333 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
5334 parameter, prefix section name with .gnu.debuglto_ if true.
5335 (dwarf2out_finish): Pass false to output_comdat_type_unit.
5336 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
5338 2019-02-27 Richard Biener <rguenther@suse.de>
5341 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
5342 rather than on use_debug_types, doing what output_die does.
5343 (value_format): Likewise.
5345 2019-02-27 Martin Jambor <mjambor@suse.cz>
5346 Martin Sebor <msebor@redhat.com>
5348 * doc/invoke.texi (Warning Options): Reword description of
5349 -Wno-absolute-value.
5351 2019-02-27 Jakub Jelinek <jakub@redhat.com>
5353 PR tree-optimization/89280
5354 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
5355 builtin_setjmp_setup_bb): New functions.
5356 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
5357 When visiting __builtin_setjmp_setup block, queue in special
5358 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
5359 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
5360 from visited after the loop if they don't have any visited successor
5363 2018-02-26 Steve Ellcey <sellcey@marvell.com>
5365 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
5367 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
5369 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5372 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
5373 with types other than sizetype/ssizetype.
5375 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
5377 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
5378 (enum sparc_processor_type): ...this.
5379 (enum sparc_code_model_type): New enumeration type.
5380 (enum sparc_memory_model_type): Tweak comments.
5381 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
5383 (mcmodel): Use sparc_code_model enumeration and variable.
5384 (sparc_code_model): New enumeration.
5385 (mdebug): Add Undocumented marker.
5386 * config/sparc/sparc.h (enum cmodel): Delete.
5387 (sparc_cmodel): Likewise.
5388 (TARGET_CM_MEDLOW): Adjust to above renaming.
5389 (TARGET_CM_MEDMID): Likewise.
5390 (TARGET_CM_MEDANY): Likewise.
5391 (TARGET_CM_EMBMEDANY): Likewise.
5392 * config/sparc/sparc.c (sparc_cmodel): Delete.
5393 (sparc_option_override): Remove string/value mapping support for the
5394 code model. Move code and memory model support to after the handling
5395 of target flags. Do private machine setup last.
5396 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
5397 (sparc_legitimize_reload_address): Likewise.
5398 (sparc_output_mi_thunk): Likewise.
5399 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
5401 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5403 PR tree-optimization/89500
5404 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
5405 (handle_builtin_strlen): Remove noncst_bound variable. Always
5406 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
5407 cst if the first cst bytes starting at x are known to be non-zero,
5408 even if the string is not zero terminated. Don't try to modify
5409 *si for strnlen. Update strlen_to_stridx only for strlen or if
5410 we can prove strnlen returns the same value as strlen would.
5412 2019-02-26 Martin Liska <mliska@suse.cz>
5414 * alloc-pool.h (struct pool_usage): Remove extra
5416 * bitmap.h (struct bitmap_usage): Likewise.
5417 * ggc-common.c (struct ggc_usage): Likewise.
5418 * mem-stats.h (struct mem_usage): Likewise.
5419 (mem_alloc_description::dump): Print dash lines
5420 here and repeat header at the end of a table report.
5421 It's then more readable.
5422 * tree-phinodes.c (phinodes_print_statistics): Make
5423 horizontal alignment.
5424 * tree-ssanames.c (ssanames_print_statistics): Likewise.
5425 * vec.c (struct vec_usage): Remove extra print_dash_line.
5426 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
5428 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
5430 * doc/extend.texi (__builtin_object_size):
5431 Use @pxref instead of @xref inside parenthesis.
5432 (__builtin_has_attribute): Add missing comma after @xref.
5433 (__builtin_object_size): Ditto.
5434 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
5435 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
5438 2019-02-26 Jeff Law <law@redhat.com>
5440 PR rtl-optimization/87761
5441 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
5442 detect obviously dead insns and delete them.
5444 2019-02-26 Richard Biener <rguenther@suse.de>
5446 PR tree-optimization/89505
5447 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
5448 to handle restrict pointed-to vars with multiple subvars
5451 2019-02-26 Richard Biener <rguenther@suse.de>
5453 PR tree-optimization/89489
5454 * tree-parloops.c (create_loop_fn): Copy over last_clique.
5456 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
5458 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
5459 and move around comment.
5460 <BIT_AND_EXPR>: Likewise.
5461 <BIT_NOT_EXPR>: Add specific handling for boolean types.
5463 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5466 * config/i386/i386.c (remove_partial_avx_dependency): Call
5467 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
5468 after changing possibly many instructions to use that pseudo. Fix up
5469 insertion of v4sf_const0 setter at the start of bb.
5471 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
5474 * doc/extend.texi (Variadic Pointer Args): New section.
5476 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
5477 Martin Sebor <msebor@gmail.com>
5479 * common.opt (Wattribute-alias): Likewise.
5480 * doc/invoke.texi (Option Summary): List general form of
5481 -Wattribute-alias=. List positive form of -Wmissing-attributes.
5482 (-Wmissing-attributes): Invert entry, rewrite and correct default.
5483 Add cross-references.
5484 (-Wattribute-alias): Rewrite and correct default. Mention
5485 considered attributes (same as for -Wmissing-attributes).
5487 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
5489 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
5490 (_mm_cvtpd_ps): Likewise.
5491 (_mm_cvttpd_epi32): Likewise.
5494 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
5495 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
5498 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
5500 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5503 * common/config/aarch64/aarch64-common.c
5504 (struct aarch64_option_extension): Add is_synthetic.
5505 (all_extensions): Use it.
5506 (TARGET_OPTION_INIT_STRUCT): Define hook.
5507 (struct gcc_targetm_common): Moved to end.
5508 (all_extensions_by_on): New.
5509 (opt_ext_cmp, typedef opt_ext): New.
5510 (aarch64_option_init_struct): New.
5511 (aarch64_contains_opt): New.
5512 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
5513 * config/aarch64/aarch64-option-extensions.def
5514 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
5515 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
5516 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
5517 Set is_synthetic to false.
5518 (crypto): Set is_synthetic to true.
5519 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
5522 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5524 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
5525 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
5526 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
5527 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
5528 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
5529 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
5530 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
5531 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
5533 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
5534 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
5535 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
5536 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
5537 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
5538 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
5539 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
5540 vfmlsl_laneq_high_f16): ... To this.
5541 * config/arm/neon.md: Update comments.
5543 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5545 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
5546 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
5547 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
5548 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
5549 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
5550 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
5551 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
5552 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
5554 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
5555 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
5556 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
5557 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
5558 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
5559 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
5560 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
5561 vfmlslq_laneq_high_f16): ... To this.
5563 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
5565 PR rtl-optimization/86096
5566 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
5567 comparing mw_order values.
5569 2019-02-25 Jakub Jelinek <jakub@redhat.com>
5572 * config/arm/arm.md (*subsi3_carryin_const): Use
5573 arm_neg_immediate_operand predicate instead of
5574 arm_not_immediate_operand, "L" constraint instead of "K" and
5575 print it using %n2 instead of %B2.
5576 (*subsi3_carryin_const0): New define_insn.
5577 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
5578 instead of arm_not_operand and "I" constraint instead of "K" and
5579 print it using %n3 instead of %B2. Instead of using match_dup 2 add
5580 another match_operand and in the condition check that it is negation
5582 (*subsi3_carryin_compare_const0): New define_ins.
5583 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
5584 *subsi3_carryin_const.
5585 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
5586 split into *subsi3_carryin_compare_const0 if the highpart is zero.
5589 * config/arm.vfp.md (*negdf2_vfp): Use
5590 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
5591 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
5593 2019-02-24 Jakub Jelinek <jakub@redhat.com>
5595 PR rtl-optimization/89445
5596 * simplify-rtx.c (simplify_ternary_operation): Don't use
5597 simplify_merge_mask on operands that may trap.
5598 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
5599 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
5600 second operand is CONST_VECTOR, check if any element could be zero.
5601 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
5602 their operands can trap.
5604 2019-02-23 Martin Sebor <msebor@redhat.com>
5606 * gimple-ssa-sprintf.c (target_strtol): Rename...
5607 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
5608 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
5609 check for range error.
5611 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
5614 * opts-common.c (prune_options): Also prune joined switches
5615 with Negative and RejectNegative.
5616 * config/i386/i386.opt (march=): Add Negative(march=).
5617 (mtune=): Add Negative(mtune=).
5618 * doc/options.texi: Document Negative used together with Joined
5621 2019-02-22 Martin Sebor <msebor@redhat.com>
5623 * doc/extend.texi (Other Builtins): Add
5624 __builtin_is_constant_evaluated.
5626 2019-02-22 Richard Biener <rguenther@suse.de>
5628 PR tree-optimization/87609
5629 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
5631 2019-02-22 Jeff Law <law@redhat.com>
5633 PR rtl-optimization/87761
5634 * config/mips/mips.md: Add new combiner pattern to recognize
5635 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
5637 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
5640 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
5641 destination register in peepholes generating patterns for ADDS/SUBS.
5642 (add<mode>3_compare0,
5643 *addsi3_compare0_uxtw, add<mode>3_compareC,
5644 add<mode>3_compareV_imm, add<mode>3_compareV,
5645 *adds_<optab><ALLX:mode>_<GPI:mode>,
5646 *subs_<optab><ALLX:mode>_<GPI:mode>,
5647 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
5648 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
5649 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
5650 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
5651 sub<mode>3_compare1): Allow stack pointer for source register.
5652 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
5654 2019-02-22 Martin Sebor <msebor@redhat.com>
5656 PR tree-optimization/88993
5657 PR tree-optimization/88853
5658 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
5660 (sprintf_dom_walker::call_info::is_string_func): New helper.
5661 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
5662 for formatted string functions.
5663 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
5665 2019-02-22 Martin Sebor <msebor@redhat.com>
5668 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
5669 unreachable subexpressions.
5671 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
5672 Hongtao Liu <hongtao.liu@intel.com>
5673 Sunil K Pandey <sunil.k.pandey@intel.com>
5676 * config/i386/i386-passes.def: Add
5677 pass_remove_partial_avx_dependency.
5678 * config/i386/i386-protos.h
5679 (make_pass_remove_partial_avx_dependency): New.
5680 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
5682 (pass_data_remove_partial_avx_dependency): New.
5683 (pass_remove_partial_avx_dependency): Likewise.
5684 (make_pass_remove_partial_avx_dependency): Likewise.
5685 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
5686 (*extendsfdf2): Add avx_partial_xmm_update.
5687 (truncdfsf2): Likewise.
5688 (*float<SWI48:mode><MODEF:mode>2): Likewise.
5689 (SF/DF conversion splitters): Disabled for TARGET_AVX.
5691 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
5694 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
5697 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
5700 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
5701 (PTA_SKYLAKE): Add PTA_AES.
5702 (PTA_GOLDMONT): Likewise.
5704 2019-02-22 Sudakshina Das <sudi.das@arm.com>
5706 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
5707 instruction if enabled.
5708 (aarch64_override_options): Remove reference to return address key.
5710 2019-02-22 Richard Biener <rguenther@suse.de>
5712 PR tree-optimization/89440
5713 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
5714 not necessary assert.
5716 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
5719 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
5720 (oacc_replace_fn_attrib_attr): ... this new function.
5721 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
5722 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
5724 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5726 * config/arm/arm-cpus.in (ares): Rename to...
5727 (neoverse-n1): ... This. Add ares as alias.
5728 * config/arm/arm-tables.opt: Regenerate.
5729 * config/arm/arm-tune.md: Likewise.
5730 * doc/invoke.txt (ARM Options): Document neoverse-n1.
5732 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5734 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
5735 * config/aarch64/aarch64-tune.md: Regenerate.
5736 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
5738 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5740 * config/aarch64/aarch64.c (ares_tunings): Rename to...
5741 (neoversen1_tunings): ... This.
5742 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
5743 (neoverse-n1): New CPU.
5744 * config/aarch64/aarch64-tune.md: Regenerate.
5745 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
5747 2019-02-22 Richard Biener <rguenther@suse.de>
5750 * cfghooks.h (dependence_hash): New typedef.
5751 (struct copy_bb_data): New type.
5752 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
5753 (duplicate_block): Likewise.
5754 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
5755 (copy_bbs): Create and pass down copy_bb_data.
5756 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
5757 (rtl_duplicate_bb): Likewise.
5758 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
5759 remap dependence info.
5761 2019-02-22 Richard Biener <rguenther@suse.de>
5763 PR tree-optimization/87609
5764 * tree-core.h (tree_base): Document special clique values.
5765 * tree-inline.c (remap_dependence_clique): Do not use the
5766 special clique value of one.
5767 (maybe_set_dependence_info): Use clique one.
5768 (clear_dependence_clique): New callback.
5769 (compute_dependence_clique): Clear clique one from all refs
5770 before assigning it (again).
5772 2019-02-21 Martin Sebor <msebor@redhat.com>
5774 * doc/extend.texi (__clear_cache): Correct signature.
5776 2019-02-21 Ian Lance Taylor <iant@golang.org>
5779 * varasm.c (decode_addr_const): Call lookup_constant_def rather
5780 than output_constant_def.
5781 (add_constant_to_table): New static function.
5782 (output_constant_def): Call add_constant_to_table.
5783 (tree_output_constant_def): Likewise.
5785 2019-02-21 Jakub Jelinek <jakub@redhat.com>
5788 * builtins.c (fold_builtin_arith_overflow): If first two args are
5789 INTEGER_CSTs, set intres and ovfres to constants rather than calls
5792 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
5795 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
5796 error for -mindirect-branch/-mfunction-return with incompatible
5799 2019-02-21 Jakub Jelinek <jakub@redhat.com>
5802 * constraints.md (q): Remove.
5803 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
5806 2019-02-21 Martin Jambor <mjambor@suse.cz>
5809 * omp-general.c (omp_extract_for_data): Removed a duplicate call
5810 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
5811 (omp_adjust_for_condition): ...here. Added necessary parameters.
5812 * omp-general.h (omp_adjust_for_condition): Updated declaration.
5813 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
5814 proper values to new parameters of omp_adjust_for_condition.
5816 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5819 * expr.c (expand_assignment): If result is a MEM, use change_address
5820 instead of simplify_gen_subreg.
5822 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5823 David Malcolm <dmalcolm@redhat.com>
5826 * fold-const.c (decode_field_reference): Return NULL_TREE if
5827 lang_hooks.types.type_for_size returns NULL. Check it before
5828 overwriting *exp_. Use return NULL_TREE instead of return 0.
5830 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5834 * toplev.c (do_compile): Double the emin/emax exponents to workaround
5837 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
5840 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
5841 TARGET_SSE in addition to TARGET_SSE_MATH.
5843 (ix86_excess_precision): Ditto.
5844 (ix86_float_exceptions_rounding_supported_p): Ditto.
5845 (use_rsqrt_p): Ditto.
5846 * config/i386/sse.md (rsqrt<mode>2): Ditto.
5848 2019-02-20 David Malcolm <dmalcolm@redhat.com>
5851 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
5852 linenum_arith_t when determining if two adjacent line spans are
5853 close enough to merge.
5854 (diagnostic_show_locus): Use linenum_arith_t when iterating over
5855 lines within each line_span.
5857 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
5860 * lra-constraints.c(uses_hard_regs_p): Fix handling of
5861 paradoxical SUBREGS.
5863 2019-02-20 Li Jia He <helijia@linux.ibm.com>
5866 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
5867 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
5868 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
5871 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
5873 * config/gcn/gcn.c (print_operand): Fix typo.
5875 2019-02-19 Richard Biener <rguenther@suse.de>
5878 * toplev.c (do_compile): Initialize mpfr's exponent range
5879 based on available float modes.
5881 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
5883 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
5884 as long as the epilogue isn't completed.
5886 2019-02-18 Martin Sebor <msebor@redhat.com>
5888 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
5889 __has_cpp_attribute, and __has_include.
5891 2019-02-18 Martin Sebor <msebor@redhat.com>
5893 * doc/invoke.texi (-Wreturn-type): Correct and expand.
5895 2019-02-18 Martin Sebor <msebor@redhat.com>
5898 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
5900 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
5902 2019-02-18 Richard Biener <rguenther@suse.de>
5904 PR tree-optimization/89296
5905 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
5906 of no-warning flag to cases that might emit the bogus warning.
5908 2019-02-18 Jakub Jelinek <jakub@redhat.com>
5911 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
5913 * config/arm/vfp.md (*movdi_vfp): Likewise.
5914 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
5915 "q" constraint for operands[0].
5918 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
5919 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
5920 pattern in a temporary buffer.
5921 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
5922 than 64-operands[2].
5925 * config/s390/s390.c (s390_indirect_branch_attrvalue,
5926 s390_indirect_branch_settings): Define unconditionally.
5927 (s390_set_current_function): Likewise, but guard the whole body except
5928 the s390_indirect_branch_settings call with
5929 #if S390_USE_TARGET_ATTRIBUTE.
5930 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
5932 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
5933 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
5934 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
5935 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
5936 HOST_WIDE_INT_1U instead of 1ULL.
5937 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
5938 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
5939 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
5940 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
5942 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
5945 2019-02-18 Martin Jambor <mjambor@suse.cz>
5947 PR tree-optimization/89209
5948 * tree-sra.c (create_access_replacement): New optional parameter
5949 reg_tree. Use it as a type if non-NULL and access type is not of
5951 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
5952 to create_access_replacement.
5953 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
5954 Check lacc is non-NULL before attempting to re-create it on the RHS.
5956 2019-02-18 Martin Liska <mliska@suse.cz>
5959 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
5961 (symbol_table::free_edge): Recycle m_summary_id.
5962 * cgraph.h (get_summary_id): New.
5963 (symbol_table::release_symbol): Set m_summary_id to -1
5965 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
5966 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
5967 function_summary to fast_function_summary.
5968 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
5969 * ipa-pure-const.c (class funct_state_summary_t):
5970 Switch from function_summary to fast_function_summary.
5971 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
5972 (class ipa_ref_opt_summary_t): Switch from function_summary
5973 to fast_function_summary.
5974 * symbol-summary.h (class function_summary_base): New class
5975 that is created from base of former function_summary.
5976 (function_summary_base::unregister_hooks): New.
5977 (class function_summary): Inherit from function_summary_base.
5978 (class call_summary_base): New class
5979 that is created from base of former call_summary.
5980 (class call_summary): Inherit from call_summary_base.
5981 (struct is_same): New.
5982 (class fast_function_summary): New summary class.
5983 (class fast_call_summary): New summary class.
5984 * vec.h (vec_safe_grow_cleared): New function.
5986 2019-02-18 Martin Liska <mliska@suse.cz>
5988 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
5989 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
5990 * doc/tm.texi: Document new target hook.
5991 * doc/tm.texi.in: Likewise.
5992 * target.def: Add new target macro.
5993 * gcc.c (find_fortran_preinclude_file): Do not search multilib
5996 2019-02-17 Alan Modra <amodra@gmail.com>
5999 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
6000 output reg on add insn.
6001 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
6003 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
6006 * config/i386/sse.md (ssedoublemode): Remove V4HI.
6007 (PMULHRSW): Likewise.
6008 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
6010 (ssse3_pmulhrswv4hi3): New expander.
6012 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
6014 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
6015 MMX. Add isa attribute.
6017 2019-02-16 Jakub Jelinek <jakub@redhat.com>
6019 PR rtl-optimization/66152
6020 * builtins.h (c_readstr): Declare.
6021 * builtins.c (c_readstr): Remove forward declaration. Add
6022 null_terminated_p argument, if false, read all bytes from the
6023 string instead of stopping after '\0'.
6024 * expr.c (string_cst_read_str): New function.
6025 (store_expr): Use string_cst_read_str instead of
6026 builtin_strncpy_read_str. Try to store by pieces the whole
6027 exp_len first, and only if that fails, split it up into
6028 store by pieces followed by clear_storage. Formatting fix.
6030 * config/i386/i386.md (*movqi_internal): Remove static from
6031 buf variable. Use output_asm_insn (buf, operands); return "";
6032 instead of return buf;.
6033 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
6034 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
6035 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
6037 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6039 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
6040 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
6041 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
6042 (CC1_SPEC): Likewise.
6043 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
6045 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6047 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
6048 the base address on 64-bit strict-alignment platforms.
6050 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
6052 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
6054 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
6056 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
6058 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
6060 PR rtl-optimization/88308
6061 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
6062 on copied instruction.
6064 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6066 * final.c (insn_current_reference_address): Replace test on JUMP_P
6067 with test on jump_to_label_p.
6068 * config/visium/visium-passes.def: New file.
6069 * config/visium/t-visium (PASSES_EXTRA): Define.
6070 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
6071 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
6072 (TRAMPOLINE_ALIGNMENT): Define.
6073 * config/visium/visium.c (visium_option_override): Do not register
6074 the machine-specific reorg pass here.
6075 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
6077 (output_branch): Adjust threshold for long branch instruction.
6078 * config/visium/visium.md (cpu): Move around.
6079 (length): Adjust for the GR6.
6081 2019-02-15 Richard Biener <rguenther@suse.de>
6082 Jakub Jelinek <jakub@redhat.com>
6084 PR tree-optimization/89278
6085 * tree-loop-distribution.c: Include tree-eh.h.
6086 (generate_memset_builtin, generate_memcpy_builtin): Call
6087 rewrite_to_non_trapping_overflow on builtin->size before passing it
6088 to force_gimple_operand_gsi.
6090 2019-02-15 Jakub Jelinek <jakub@redhat.com>
6093 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
6095 * opth-gen.awk: Likewise.
6097 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
6099 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
6100 Enable MMX, SSE and SSE2 by default.
6101 * config/i386/i386.c (ix86_option_override_internal): Do not
6102 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
6104 2019-02-14 Jakub Jelinek <jakub@redhat.com>
6106 PR rtl-optimization/89354
6107 * combine.c (make_extraction): Punt if extraction_mode is narrower
6110 2019-02-14 Maya Rashish <coypu@sdf.org>
6112 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
6113 * config/netbsd-d.c: New file.
6114 * config/t-netbsd: Add netbsd-d.o
6116 2018-02-14 Steve Ellcey <sellcey@marvell.com>
6118 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
6119 affects_type_identity to true for aarch64_vector_pcs.
6120 (aarch64_comp_type_attributes): New function.
6121 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
6123 2019-02-14 Tamar Christina <tamar.christina@arm.com>
6126 * config/arm/iterators.md (ANY64): Add V4HF.
6128 2019-02-14 Martin Liska <mliska@suse.cz>
6130 PR rtl-optimization/89242
6131 * dce.c (delete_unmarked_insns): Call free_dominance_info we
6132 process a transformation.
6134 2019-02-14 Jakub Jelinek <jakub@redhat.com>
6136 PR tree-optimization/89314
6137 * fold-const.c (fold_binary_loc): Cast strlen argument to
6138 const char * before dereferencing it. Formatting fixes.
6141 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
6143 2019-02-13 Ian Lance Taylor <iant@golang.org>
6145 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
6146 and set current index for other optimizations.
6148 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
6150 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
6151 nonimmediate_operand as operand 2 predicate.
6152 (vec_set<VF2_512_256:mode>_0): Ditto.
6153 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
6154 (*vec_concatv2si): Remove alternative 2.
6155 (*vec_concatv4si_0): Use vm constraint for alternative 0.
6156 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
6157 (vec_concatv2di): Split alternatives 4,5,6 to ...
6158 (*vec_concatv2di_0) ... new pattern.
6160 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
6163 * config/arm/arm.c (ldm_stm_operation_p) Set
6164 addr_reg_in_reglist correctly for first register.
6165 (load_multiple_sequence): Remove dead base check.
6166 (gen_ldm_seq): Correctly set write_back for Thumb-1.
6168 2019-02-13 Tamar Christina <tamar.christina@arm.com>
6171 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
6172 Expose as @aarch64_pred_mov.
6173 * config/aarch64/aarch64.c (aarch64_classify_address):
6174 Use expand_insn which legitimizes operands.
6176 2019-02-13 Martin Liska <mliska@suse.cz>
6178 * builtins.h (expand_builtin_with_bounds): Remove declaration.
6179 * calls.c (struct arg_data): Remove special_slot, pointer_arg
6180 and pointer_offset fields.
6181 (initialize_argument_information): Remove usage of dead
6183 * cgraph.h (struct cgraph_thunk_info): Remove
6184 add_pointer_bounds_args.
6185 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
6187 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
6189 * config/i386/i386.c (ix86_function_arg_advance): Remove
6191 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
6192 (def_builtin): Remove usage of dead
6194 (ix86_add_new_builtins): Likewise.
6195 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6196 * ipa-icf.c (sem_function::equals_wpa): Likewise.
6197 (sem_function::init): Likewise.
6198 (sem_variable::merge): Likewise.
6199 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6200 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6201 * lto-cgraph.c (lto_output_node): Likewise.
6202 (lto_output_varpool_node): Likewise.
6203 (input_node): Likewise.
6204 (input_varpool_node): Likewise.
6205 * lto-streamer-out.c (lto_output): Likewise.
6206 * tree-inline.c (expand_call_inline): Remove usage of
6208 * tree-inline.h (struct copy_body_data): Likewise.
6209 * varpool.c (varpool_node::dump): Likewise.
6211 2019-02-13 Jakub Jelinek <jakub@redhat.com>
6214 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
6215 into pt->vars_contains_escaped_heap instead of setting
6216 pt->vars_contains_escaped_heap to it.
6219 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
6220 INTVAL (size), compare it to GET_MODE_MASK instead of
6221 1 << GET_MODE_BITSIZE.
6224 * config/i386/predicates.md (x86_64_immediate_operand): Allow
6225 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
6228 2019-02-13 Martin Liska <mliska@suse.cz>
6231 * cfgrtl.c (remove_barriers_from_footer): New function.
6232 (try_redirect_by_replacing_jump): Use it.
6233 (cfg_layout_redirect_edge_and_branch): Likewise.
6235 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
6237 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
6238 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
6239 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
6240 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
6241 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
6242 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
6244 * config/rs6000/rs6000.c (builtin_function_type)
6245 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
6246 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
6247 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
6248 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
6249 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
6251 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
6253 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
6254 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
6256 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
6259 * config/i386/i386.md (*movoi_internal_avx): Revert revision
6260 268678 and revision 268657.
6261 (*movti_internal): Likewise.
6263 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
6266 * config/s390/s390.c (s390_decompose_address): Update comment.
6267 (s390_check_qrst_address): Reject invalid address forms after
6270 2019-02-12 Martin Liska <mliska@suse.cz>
6273 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
6274 we need default values of funct_state for a function that
6277 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
6279 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
6280 the object to pick the size of stores on strict-alignment platforms.
6282 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
6283 (*movdi_insn_sp32): Likewise.
6284 (*movdi_insn_sp64): Likewise.
6286 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
6289 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
6290 types that needs constructiong.
6291 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
6293 2019-02-12 Richard Biener <rguenther@suse.de>
6295 PR tree-optimization/89253
6296 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
6299 2019-02-11 David Malcolm <dmalcolm@redhat.com>
6302 * input.c (selftest::test_line_offset_overflow): New selftest.
6303 (selftest::input_c_tests): Call it.
6305 2019-02-11 Martin Sebor <msebor@redhat.com>
6307 PR tree-optimization/88771
6308 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
6309 when -Wstringop-overflow is set.
6310 (builtin_memref::builtin_memref): Adjust excessive upper bound
6311 only when lower bound is not excessive.
6312 (maybe_diag_overlap): Detect and diagnose excessive bounds via
6313 -Wstringop-ovefflow.
6314 (maybe_diag_offset_bounds): Rename...
6315 (maybe_diag_access_bounds): ...to this.
6316 (check_bounds_or_overlap): Adjust for name change above.
6318 2019-02-11 Martin Sebor <msebor@redhat.com>
6321 * builtins.c (max_object_size): Move from here...
6322 * builtins.h (max_object_size): ...and here...
6323 * tree.c (max_object_size): ...to here...
6324 * tree.h (max_object_size): ...and here.
6326 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
6328 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
6329 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
6330 for correct semantics.
6332 2019-02-11 Alan Modra <amodra@gmail.com>
6334 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
6335 -mlongcall and -mpltseq.
6336 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
6337 (RS/6000 and PowerPC Options <-mpltseq>): Document.
6338 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
6339 * config/rs6000/sysv4.opt (mpltseq): New option.
6340 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
6341 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
6342 support is lacking. Don't allow -mpltseq with -mbss-plt.
6343 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
6344 -mpltseq given for ELFv1.
6345 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
6346 Only use UNSPEC_PLTSEQ for inline PLT calls.
6347 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
6348 use UNSPEC_PLTSEQ for inline PLT calls.
6349 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
6350 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
6351 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
6352 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
6353 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
6354 (pltseq_mtctr_<mode>): Likewise.
6356 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6358 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
6360 * configure: Regenerate.
6362 2019-02-11 Jakub Jelinek <jakub@redhat.com>
6365 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
6368 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
6370 * function.c (assign_parm_setup_block): Use the stored
6371 size, not the passed size, when allocating stack-space,
6372 also for a parameter with alignment larger than
6373 MAX_SUPPORTED_STACK_ALIGNMENT.
6375 2019-02-11 Martin Liska <mliska@suse.cz>
6378 * ipa-cp.c (build_toporder_info): Remove usage of a param.
6379 * ipa-inline.c (inline_small_functions): Likewise.
6380 * ipa-pure-const.c (propagate_pure_const): Likewise.
6381 (propagate_nothrow): Likewise.
6382 * ipa-reference.c (propagate): Likewise.
6383 * ipa-utils.c (struct searchc_env): Remove unused field.
6384 (searchc): Always search across AVAIL_INTERPOSABLE.
6385 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
6386 the only called IPA pure const can properly not propagate
6387 across interposable boundary.
6388 * ipa-utils.h (ipa_reduced_postorder): Remove param.
6390 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
6392 * config/nds32/nds32.md (call_internal, call_value_internal,
6393 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
6395 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
6397 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
6400 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
6402 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
6405 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
6407 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
6409 2019-02-10 Jakub Jelinek <jakub@redhat.com>
6411 PR tree-optimization/89268
6412 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
6413 if preds is non-NULL.
6415 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6418 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
6421 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
6423 * config/nds32/nds32.md (trap): New pattern.
6425 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
6427 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
6430 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
6432 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
6435 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6437 * ipa-visibility.c (localize_node): Also do not localize
6438 LDPR_PREVAILING_DEF_IRONLY_EXP.
6440 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6443 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
6444 instead of type_with_linkage.
6446 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6449 * params.def (uninlined-function-insns, uninlined-function-time,
6450 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
6451 bound so we don't get overflows.
6453 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
6455 * config/rs6000/rs6000-string.c (expand_compare_loop,
6456 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
6459 2019-02-09 Jakub Jelinek <jakub@redhat.com>
6462 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6463 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
6464 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
6466 2019-02-09 Alan Modra <amodra@gmail.com>
6469 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
6470 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
6473 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
6476 * lra-constraints.c (process_alt_operands): Don't increase reject
6477 for memory when offset memory is required.
6479 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
6481 * config/s390/vector.md: Implement vector copysign.
6483 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
6485 * expr.c (expand_constructor): Correct indentations.
6487 2019-02-08 Richard Biener <rguenther@suse.de>
6489 PR tree-optimization/89247
6490 * tree-if-conv.c: Include tree-cfgcleanup.h.
6491 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
6492 (tree_if_conversion): Pass through predicate vector.
6493 (pass_if_conversion::execute): Do CFG cleanup and SSA update
6494 inline, see if any if-converted loops we refrece in
6495 LOOP_VECTORIZED calls vanished and fixup.
6496 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
6498 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
6500 * config/s390/constraints.md (jdd): New constraint.
6502 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
6505 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
6506 upper 16 vector registers without TARGET_AVX512VL.
6507 (*movti_internal): Likewise.
6509 2019-02-08 Jakub Jelinek <jakub@redhat.com>
6511 PR rtl-optimization/89234
6512 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
6513 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
6514 (copy_reg_eh_region_note_backward): Likewise.
6516 2019-02-08 Richard Biener <rguenther@suse.de>
6519 * tree-data-ref.c (initialize_matrix_A): Fail if constant
6521 (analyze_subscript_affine_affine): Handle failure from
6522 initialize_matrix_A.
6524 2019-02-08 Jakub Jelinek <jakub@redhat.com>
6526 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
6529 2019-02-07 David Malcolm <dmalcolm@redhat.com>
6531 PR tree-optimization/86637
6532 PR tree-optimization/89235
6533 * tree-vect-loop.c (optimize_mask_stores): Add an
6534 auto_purge_vect_location sentinel to ensure that vect_location is
6537 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
6538 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
6539 to ensure that vect_location is purged on exit.
6540 (pass_slp_vectorize::execute): Likewise, replacing the manual
6542 * tree-vectorizer.h (class auto_purge_vect_location): New class.
6544 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6546 * config/aarch64/iterators.md (max_opp): New code_attr.
6547 (USMAX): New code iterator.
6548 * config/aarch64/predicates.md (aarch64_smin): New predicate.
6549 (aarch64_smax): Likewise.
6550 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
6551 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
6554 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
6557 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
6558 for TARGET_AVX512VL.
6559 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
6561 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
6563 * config/s390/s390-builtin-types.def: Add new types.
6564 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
6565 (s390_vec_xlw4): Make the memory operand into a const pointer.
6566 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
6568 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
6569 a new vector type with the alignment of the scalar memory operand.
6571 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
6572 Jakub Jelinek <jakub@redhat.com>
6575 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
6576 arm_count_ldrdstrd_insns): New declarations.
6577 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
6579 (valid_operands_ldrd_strd): New function.
6580 (arm_count_ldrdstrd_insns): New function.
6581 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
6582 sets instead of single DImode set and define new insns to match this.
6584 2019-02-07 Tamar Christina <tamar.christina@arm.com>
6586 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
6587 Make it a C initializer.
6589 2019-02-07 Tamar Christina <tamar.christina@arm.com>
6592 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
6594 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6596 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
6597 Use neon_dot<q> for type.
6598 (neon_<sup>dot_lane<vsi2qi>): Likewise.
6600 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6602 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
6603 Use neon_dot<q> for type.
6604 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
6605 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
6607 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
6609 PR rtl-optimization/89225
6610 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
6613 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
6615 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
6616 after restoring registers saved to allocate the frame on Windows.
6618 2019-02-06 Richard Biener <rguenther@suse.de>
6620 PR tree-optimization/89182
6621 * graphite.h (cached_scalar_evolution_in_region): Declare.
6622 * graphite.c (struct seir_cache_key): New.
6623 (struct sese_scev_hash): Likewise.
6624 (seir_cache): New global.
6625 (cached_scalar_evolution_in_region): New function.
6626 (graphite_transform_loops): Allocate and release seir_cache.
6627 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
6628 cached_scalar_evolution_in_region.
6629 * graphite-scop-detection.c (scop_detection::can_represent_loop):
6631 (scop_detection::graphite_can_represent_expr: Use
6632 cached_scalar_evolution_in_region.
6633 (scop_detection::stmt_simple_for_scop_p): Likewise.
6634 (find_params_in_bb): Likewise.
6635 (gather_bbs::before_dom_children): Likewise.
6636 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
6637 (add_loop_constraints): Likewise.
6639 2019-02-06 Jakub Jelinek <jakub@redhat.com>
6642 * fold-const-call.c (fold_const_vec_convert): Pass true as last
6643 operand to new_unary_operation only if both element types are integral
6644 and it isn't a widening conversion. Return NULL_TREE if
6645 new_unary_operation failed.
6647 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
6650 * config/s390/s390.md: Remove load and test FP splitter.
6652 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
6655 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
6656 expand_compare_loop, expand_block_compare_gpr,
6657 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
6658 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
6659 #include "profile-count.h" and "predict.h" for types and functions
6660 needed to work with REG_BR_PROB notes.
6662 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
6665 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
6666 for the long branch case.
6668 2019-02-05 Jakub Jelinek <jakub@redhat.com>
6671 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
6672 can throw, non-call exceptions are enabled and we can't delete
6673 dead exceptions or alter cfg. Set must_clean if
6674 delete_insn_and_edges returns true, don't set it blindly for calls.
6675 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
6677 PR rtl-optimization/89195
6678 * combine.c (make_extraction): For MEMs, don't extract bytes outside
6679 of the original MEM.
6681 2019-02-05 Martin Liska <mliska@suse.cz>
6683 PR gcov-profile/89000
6684 * gcov.c (function_summary): Remove argument.
6685 (file_summary): New function.
6686 (print_usage): Replace tabs with spaces.
6687 (generate_results): Use new function file_summary.
6689 2019-02-05 Jakub Jelinek <jakub@redhat.com>
6692 * optabs.c (prepare_cmp_insn): Pass x and y to
6693 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
6695 2019-02-05 Richard Biener <rguenther@suse.de>
6698 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
6699 (struct bitmap_element): Drop chain_prev so we properly recurse on
6700 the prev member, supporting tree views.
6701 (struct bitmap_head): GTY skip the obstack member.
6703 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
6706 * doc/extend.texi (Vector Extensions): Add an example of using vector
6707 types together with x86 intrinsics.
6709 2019-02-04 Alan Modra <amodra@gmail.com>
6711 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
6712 str[] size to 160, and comment.
6714 2019-02-04 Alan Modra <amodra@gmail.com>
6716 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
6717 (rs6000_pltseq_template): Guard output of TLS markers with
6719 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
6720 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
6721 to use inline PLT sequences.
6722 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
6723 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
6724 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
6726 2019-02-04 Martin Liska <mliska@suse.cz>
6729 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
6730 out when ipa_fn_summaries does not contain entry for callee.
6732 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
6734 * config/sparc/sparc.h: Remove superfluous blank lines.
6735 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
6736 (got_register_rtx): ...this.
6737 (sparc_got): Adjust to above renaming.
6738 (sparc_tls_got): Likewise.
6739 (sparc_delegitimize_address): Likewise.
6740 (sparc_output_mi_thunk): Likewise.
6741 (sparc_init_pic_reg): Likewise.
6742 (save_local_or_in_reg_p): Fix test on the GOT register.
6743 (USE_HIDDEN_LINKONCE): Move around.
6744 (get_pc_thunk_name): Likewise.
6745 (gen_load_pcrel_sym): Likewise.
6746 (load_got_register): Likewise.
6748 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
6750 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
6751 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
6753 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
6755 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
6758 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
6760 * config.gcc (with_nds32_lib, glibc):
6761 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
6762 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
6763 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
6765 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
6768 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
6769 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
6770 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
6771 (*rcpsf2_sse): Ditto.
6772 (*rsqrtsf2_sse): Ditto.
6773 (sse4_1_round<mode<2): Ditto.
6775 2019-02-03 Richard Biener <rguenther@suse.de>
6778 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
6781 2019-02-02 Jakub Jelinek <jakub@redhat.com>
6784 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6785 Punt with warning on aggregate return or argument types. Ignore
6786 type/mode checking for uniform arguments.
6788 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
6790 * combine.c (try_combine): Do not print "Can't combine" messages unless
6791 printing failed combination attempts.
6793 2019-02-01 Martin Jambor <mjambor@suse.cz>
6796 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
6797 segment and global segment variables before making them static.
6799 2019-02-01 Martin Jambor <mjambor@suse.cz>
6801 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
6802 missed optimization dump with dump_enabled_p.
6804 2019-02-01 Richard Biener <rguenther@suse.de>
6807 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
6808 the instantiate cache.
6809 (instantiate_scev_binary): Elide second operand procesing
6810 if equal to the first.
6811 * tree-chrec.c (chrec_contains_symbols): Add visited set.
6812 (chrec_contains_undetermined): Likewise.
6813 (tree_contains_chrecs): Likewise.
6815 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
6817 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
6819 2019-02-01 Jakub Jelinek <jakub@redhat.com>
6821 PR tree-optimization/89143
6822 * wide-int-range.h (wide_int_range_absu): Declare.
6823 * wide-int-range.cc (wide_int_range_absu): New function.
6824 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
6826 PR tree-optimization/88107
6827 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
6828 instead of assertion that eh_region_outermost is non-NULL, if it
6829 is NULL, set *ALL to true and return NULL.
6830 (move_sese_region_to_fn): Adjust caller, if all is set, call
6831 duplicate_eh_regions with NULL region.
6833 2019-02-01 Richard Biener <rguenth@suse.de>
6835 PR rtl-optimization/88593
6836 * mode-switching.c (optimize_mode_switching): Free dominators before
6837 calling cleanup_cfg.
6839 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
6841 PR tree-optimization/88932
6842 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
6844 2019-01-31 Jakub Jelinek <jakub@redhat.com>
6847 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
6848 bogus clang warning.
6850 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
6853 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
6854 alternative to avoid partial SSE register stall for TARGET_AVX.
6855 (truncdfsf2): Ditto.
6856 (sse4_1_round<mode>2): Ditto.
6858 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
6860 PR tree-optimization/89008
6861 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
6862 process anything of the form X * 0.
6864 2019-01-31 Richard Biener <rguenther@suse.de>
6866 PR tree-optimization/89135
6867 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
6868 with abnormal preds.
6870 2019-01-31 Jakub Jelinek <jakub@redhat.com>
6873 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
6874 always_inline callees into no_sanitize_address callers.
6876 2019-01-31 Richard Biener <rguenther@suse.de>
6878 PR rtl-optimization/89115
6879 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
6881 2019-01-30 Martin Sebor <msebor@redhat.com>
6884 * doc/extend.texi (cast to a union): Correct and expand.
6886 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
6888 PR rtl-optimization/87246
6889 * lra-constraints.c (simplify_operand_subreg): Reload memory
6890 in subreg if the address became invalid.
6892 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
6895 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
6896 Disable for little-endian.
6898 2019-01-30 Richard Biener <rguenther@suse.de>
6900 PR rtl-optimization/89115
6901 * opts.c (default_options_optimization): Reduce
6902 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
6903 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
6906 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
6908 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
6909 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
6910 type of vector element when vec_extract is implemented by direct
6913 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
6915 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
6917 2019-01-30 Richard Biener <rguenther@suse.de>
6919 PR tree-optimization/89111
6920 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
6921 canonicalization to appropriately sized access types.
6923 2019-01-30 Jakub Jelinek <jakub@redhat.com>
6926 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
6927 for arguments to functions that are TU-local and shouldn't be
6928 referenced by assembly.
6930 2019-01-30 Ulrich Drepper <drepper@redhat.com>
6932 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
6935 2019-01-29 Martin Sebor <msebor@redhat.com>
6938 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
6940 2019-01-29 Jakub Jelinek <jakub@redhat.com>
6944 * omp-simd-clone.c (simd_clone_clauses_extract)
6945 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
6946 OMP_CLAUSE_ALIGNED_ALIGNMENT.
6948 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
6950 * config.gcc: Force .init_array for ARC.
6952 2019-01-29 Richard Biener <rguenther@suse.de>
6955 * dwarf2out.c (collect_skeleton_dies): New helper.
6956 (copy_decls_for_unworthy_types): Call it.
6957 (build_abbrev_table): Assert we do not try to replace
6958 DW_AT_signature refs with local refs.
6960 2019-01-28 Jakub Jelinek <jakub@redhat.com>
6963 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
6964 for lastprivate/linear IV, push gimplify context around gimplify_assign
6965 and, if it needed any temporaries, pop it into a gimple bind around the
6968 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
6970 * common.opt (-Wattribute-alias): Remove "no-" from name.
6971 Make -Wattribute-alias command line option and
6972 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
6974 2019-01-28 Jakub Jelinek <jakub@redhat.com>
6977 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
6978 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
6980 (bmi2): Add missing @opindex.
6981 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
6982 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
6983 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
6984 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
6985 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
6986 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
6987 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
6988 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
6989 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
6990 xsavec, xsaveopt and xsaves options.
6992 2019-01-28 Richard Biener <rguenther@suse.de>
6995 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
6998 2019-01-28 Richard Biener <rguenther@suse.de>
7000 PR tree-optimization/88739
7001 * tree-cfg.c (verify_types_in_gimple_reference): Verify
7002 BIT_FIELD_REFs only are applied to mode-precision operands
7003 when they are integral.
7004 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
7005 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
7006 BIT_FIELD_REFs of non-mode-precision integral operands.
7008 2019-01-27 Jakub Jelinek <jakub@redhat.com>
7011 * config/i386/sse.md
7012 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
7013 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
7014 first constants in pairs are multiples of 2. Formatting fixes.
7015 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
7016 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
7017 first constants in each quadruple are multiples of 4. Formatting fixes.
7019 2019-01-26 Martin Jambor <mjambor@suse.cz>
7022 * tree-inline.c: Include tree-cfgcleanup.h.
7023 (delete_unreachable_blocks_update_callgraph): Move...
7024 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
7025 ...here, make externally visible, make second argument bool, adjust
7027 * tree-cfgcleanup.c: Include cgraph.h.
7028 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
7030 * ipa-prop.c: Include tree-cfgcleanup.h.
7031 (ipcp_transform_function): Call
7032 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
7034 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
7036 PR rtl-optimization/88846
7037 * ira.c (process_set_for_memref_referenced_p): New.
7038 (memref_referenced_p): Add new param. Use
7039 process_set_for_memref_referenced_p. Add new switch cases.
7040 (memref_used_between_p): Pass new arg to memref_referenced_p.
7042 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
7045 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
7046 argument ABI_BREAK. Set to true if the calculated alignment has
7047 changed in gcc-9. Check bit-fields for their base type alignment.
7048 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
7049 (aarch64_function_arg_boundary): Likewise.
7050 (aarch64_gimplify_va_arg_expr): Likewise.
7052 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
7055 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
7056 instead of accessing TREE_INT_CST_ELT directly.
7058 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
7060 * doc/sourcebuild.texi (Environment attributes): Add fenv and
7061 fenv_exceptions description.
7063 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
7065 PR rtl-optimization/87763
7066 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
7067 Allow SUBREG when matching CC_NZmode compare.
7069 2019-01-25 Richard Biener <rguenther@suse.de>
7071 PR tree-optimization/89049
7072 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
7073 Look at the pattern stmt to determine if the stmt is vectorized.
7075 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
7077 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
7078 (pred_mov<mode>): Handle all-register forms using both a new
7079 alternative and a split.
7081 2019-01-25 Richard Biener <rguenther@suse.de>
7083 PR tree-optimization/86865
7084 * graphite-scop-detection.c (scop_detection::can_represent_loop):
7085 Reject non-do-while loops.
7087 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
7089 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
7090 * config/rs6000/constraints.md (Q constraint): Use REG_P.
7091 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
7092 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
7093 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
7094 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7095 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
7096 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
7097 vlogical_operand, gpc_reg_operand, int_reg_operand,
7098 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
7099 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
7100 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
7101 (save_world_operation, restore_world_operation, lmw_operation,
7102 stmw_operation): Use MEM_P and REG_P.
7103 (tie_operand): Use MEM_P.
7104 (vrsave_operation, crsave_operation): Use REG_P.
7105 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
7106 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
7107 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
7108 (call_operand): Use HARD_REGISTER_P.
7109 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
7111 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
7112 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
7113 quad_aligned_load_p, replace_swapped_aligned_store,
7114 recombine_lvx_pattern, replace_swapped_aligned_load,
7115 recombine_stvx_pattern): Use MEM_P.
7116 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
7117 Use MEM_P and SYMBOL_REF_P.
7118 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
7119 (insn_is_swappable_p): Use REG_P and MEM_P.
7120 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
7121 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
7123 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
7125 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
7127 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
7128 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
7129 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
7130 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
7132 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
7133 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
7134 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
7135 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
7136 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
7137 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
7138 rs6000_split_logical_di): Use CONST_INT_P.
7139 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
7140 REG_P and SYMBOL_REF_P.
7141 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
7142 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
7143 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
7144 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
7145 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
7146 (small_data_operand, print_operand_address): Use CONST_INT_P and
7148 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
7149 (rs6000_init_hard_regno_mode_ok, direct_move_p):
7150 Use HARD_REGISTER_NUM_P.
7151 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
7152 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
7153 SUBREG_P and SYMBOL_REF_P.
7154 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
7155 and HARD_REGISTER_NUM_P.
7156 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
7158 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
7159 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
7161 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
7162 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
7163 find_addr_reg): Use REG_P.
7164 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
7165 (rs6000_emit_le_vsx_move): Use SUBREG_P.
7166 (offsettable_ok_by_alignment, constant_pool_expr_p,
7167 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
7168 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
7169 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
7170 rs6000_assemble_integer, create_TOC_reference,
7171 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
7172 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
7173 (rs6000_split_vec_extract_var): Use reg_or_subregno.
7174 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
7175 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
7176 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7177 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7178 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
7179 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
7180 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
7181 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
7182 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
7183 and cbranch<mode>4): Use CONST_INT_P.
7184 (multiple define_splits): Use REG_P and SUBREG_P.
7185 (define_expands call, call_value): Use MEM_P.
7186 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
7187 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
7188 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
7189 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
7190 and HARD_REGISTER_NUM_P.
7191 (multiple define_splits): Use HARD_REGISTER_NUM_P.
7193 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
7195 PR rtl-optimization/88948
7196 * rtl.h (prepare_copy_insn): New prototype.
7197 * gcse.c (prepare_copy_insn): New function, split out from
7198 process_insert_insn.
7199 (process_insert_insn): Use prepare_copy_insn.
7200 * store-motion.c (replace_store_insn): Use prepare_copy_insn
7201 instead of gen_move_insn.
7203 2019-01-24 Jakub Jelinek <jakub@redhat.com>
7206 * config/i386/i386.c (ix86_pic_register_p): Return true for
7209 PR tree-optimization/88964
7210 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
7211 punt if HONOR_SNANS (chrec).
7214 * tree-nested.c (convert_nonlocal_reference_stmt,
7215 convert_local_reference_stmt, convert_tramp_reference_stmt,
7216 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
7217 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
7220 PR tree-optimization/89027
7221 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
7222 for "omp simd array" variables.
7224 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
7227 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
7228 force the alignment of m_val.
7230 2019-01-24 Richard Biener <rguenther@suse.de>
7233 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
7234 When in "legacy" debug mode make sure to reset self-origins.
7236 2019-01-24 Martin Liska <mliska@suse.cz>
7238 PR gcov-profile/88994
7239 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
7240 result will be always smaller or equal to the original.
7241 * gcov.c (mangle_name): Fix else branch where we should
7242 also copy to PTR and shift the pointer.
7244 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
7246 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
7247 * vr-values.c (find_case_label_ranges): Fix a comment typo.
7249 2019-01-23 Bin Cheng <bin.cheng@arm.com>
7250 Steve Ellcey <sellcey@marvell.com>
7253 * recog.c (address_operand): Return false on wrong mode for address.
7254 (constrain_operands): Check for mode with 'p' constraint.
7256 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
7259 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
7260 Disparage MMX alternative.
7261 (sse2_cvtpd2pi): Ditto.
7262 (sse2_cvttpd2pi): Ditto.
7264 2019-01-23 David Malcolm <dmalcolm@redhat.com>
7267 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
7268 use-after-free of the result of
7269 aarch64_get_extension_string_for_isa_flags.
7271 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7274 * doc/extend.texi: Document break and continue behavior in
7275 statement expressions.
7277 2019-01-23 Richard Biener <rguenther@suse.de>
7279 PR tree-optimization/89008
7280 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
7281 not leave another stray operand.
7283 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7285 * BASE-VER: Bump to 9.0.1.
7287 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
7289 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
7290 thunk that returns by reference, use the type of the return object
7291 of the thunk instead of that of the alias to build the dereference.
7293 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
7295 * config/arc/atomic.md: Add operand to DMB instruction.
7297 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7299 PR tree-optimization/88964
7300 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
7301 build_zero_cst instead of build_int_cst. Return false for loop
7302 invariants which honor signed zeros.
7304 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
7306 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
7308 2019-01-22 Jakub Jelinek <jakub@redhat.com>
7311 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
7312 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
7313 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
7316 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
7317 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
7320 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
7321 Disable for little endian.
7323 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
7326 * config/arm/arm.c (arm_needs_double_word_align): Check
7327 DECL_BIT_FIELD_TYPE.
7329 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
7330 H.J. Lu <hongjiu.lu@intel.com>
7333 * config/i386/i386-builtin.def: Add mask2 to all builtin
7334 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
7336 * config/i386/i386.c (BDESC): Add mask2 to the definition.
7337 (BDESC_FIRST): Likewise.
7338 (define_builtin): Add an argument for mask2. Updated to handle
7339 both ix86_isa_flags and ix86_isa_flags2.
7340 (define_builtin_const): Likewise.
7341 (define_builtin_pure): Likewise.
7342 (define_builtin2): Deleted.
7343 (define_builtin_const2): Likewise.
7344 (builtin_description): Add a member, mask2.
7345 (bdesc_*): Add mask2 to builtin initializations.
7346 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
7347 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
7349 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
7351 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
7354 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
7357 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
7360 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
7361 alignment is dominated by a bitfield with 64-bit aligned base type.
7362 (arm_function_arg): Emit a warning if the alignment has changed since
7363 earlier GCC releases.
7364 (arm_function_arg_boundary): Likewise.
7365 (arm_setup_incoming_varargs): Likewise.
7367 2019-01-22 Richard Biener <rguenther@suse.de>
7369 PR tree-optimization/88862
7370 * graphite-scop-detection.c
7371 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
7373 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
7375 * doc/extend.tex (AMD GCN Function Attributes): New section.
7376 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
7377 * doc/invoke.texi (AMD GCN Options): New section.
7378 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
7380 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
7382 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
7383 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
7385 2019-01-22 Jakub Jelinek <jakub@redhat.com>
7387 PR tree-optimization/88044
7388 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
7389 is false in the first iteration, but !every_iteration, return false
7390 instead of true with niter->niter zero.
7392 PR rtl-optimization/88904
7393 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
7394 any nonequal registers before processing BB_END (b).
7397 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
7399 (expand_binop_directly, expand_doubleword_clz,
7400 expand_doubleword_popcount, expand_ctz, expand_ffs,
7401 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
7403 PR rtl-optimization/49429
7405 PR rtl-optimization/86334
7407 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
7408 addressable from here...
7409 (emit_block_op_via_libcall): ... to here.
7411 2019-01-22 Richard Biener <rguenther@suse.de>
7413 * tree-vect-loop.c (vect_analyze_loop_operations): Use
7414 auto_vec for cost vector to fix memleak.
7415 (vectorize_fold_left_reduction): Properly gather SLP defs.
7416 (vectorizable_comparison): Do not swap operands to properly
7419 2019-01-22 Alan Modra <amodra@gmail.com>
7422 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
7423 stays a reg. Allow a const_int.
7424 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
7425 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
7426 (IS_NOMARK_TLSGETADDR): Define.
7427 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
7428 (rs6000_output_tlsargs): New function.
7429 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
7430 __tls_get_addr call takes an arg.
7431 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
7432 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
7434 (call_value_nonlocal_sysv): ..or here, delete split.
7435 (tls_gdld_nomark): Delete.
7436 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
7437 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
7438 (call_value_nonlocal_sysv): Likewise.
7439 (call_value_nonlocal_sysv_secure): Likewise.
7440 (call_value_nonlocal_aix): Likewise.
7441 (call_value_indirect_aix): Likewise.
7442 (call_value_indirect_elfv2): Likewise.
7443 (call_value_local32, call_value_local64): Disable for no-mark tls.
7444 (call_value_local_aix): Likewise.
7446 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
7449 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
7450 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
7452 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
7454 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
7455 string contents as hash_map keys.
7457 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7460 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
7461 for rvalue context. Handle rvalues correctly. Use min_align_of_type
7462 instead of TYPE_ALIGN.
7463 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
7464 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
7465 pointer from TYPE_STUB_DECL.
7467 2019-01-21 Richard Biener <rguenther@suse.de>
7469 PR tree-optimization/88934
7470 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
7471 at the possibly non-constant operand.
7472 (vect_get_constant_vectors): Adjust.
7474 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7477 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
7478 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
7479 instead of _X86INTRIN_H_INCLUDED.
7480 * onfig/i386/clwbintrin.h: Likewise.
7481 * config/i386/pkuintrin.h: Likewise.
7482 * config/i386/prfchwintrin.h: Likewise.
7483 * config/i386/rdseedintrin.h: Likewise.
7484 * config/i386/wbnoinvdintrin.h: Likewise.
7485 * config/i386/xsavecintrin.h: Likewise.
7486 * config/i386/xsavesintrin.h: Likewise.
7487 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
7488 * config/i386/xsaveintrin.h: Likewise.
7489 * config/i386/xsaveoptintrin.h: Likewise.
7490 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
7491 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
7492 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
7493 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
7494 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
7495 * config/i386/immintrin.h: Here.
7497 2019-01-20 Martin Jambor <mjambor@suse.cz>
7500 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
7501 with aa_walk_budget.
7502 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
7503 aa_walk_budget_p parameter.
7504 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
7505 walk. Updated all callers.
7506 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
7507 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
7509 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
7510 parameter info. Extract info from fbi. Pass fbi to recursive calls
7511 and to unmodified_parm.
7512 (phi_result_unknown_predicate): New parameter fbi, removed parameter
7513 info, updated call to will_be_nonconstant_expr_predicate.
7514 (param_change_prob): New parameter fbi, limit AA walking.
7515 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
7516 calls to various above functions.
7517 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
7518 parameter. Use it to limit AA walking.
7519 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
7521 (detect_type_change): New parameter fbi, pass it on to
7522 detect_type_change_from_memory_writes.
7523 (detect_type_change_ssa): Likewise.
7524 (aa_overwalked): Removed.
7525 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
7526 accordingly, adjust to the neew AA limiting scheme.
7527 (parm_ref_data_preserved_p): Likewise.
7528 (ipa_compute_jump_functions_for_edge): Adjust call to
7530 (ipa_analyze_call_uses): Likewise.
7531 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
7532 (ipa_analyze_node): Initialize aa_walk_budget.
7533 (ipcp_transform_function): Likewise.
7534 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
7535 to get_dynamic_type.
7537 2019-01-19 Jakub Jelinek <jakub@redhat.com>
7539 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
7540 outside of #if CHECKING_P code.
7542 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
7544 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
7545 New function, split out from...
7546 (loop_versioning::analyze_stride): ...here.
7547 (loop_versioning::find_per_loop_multiplication): Use gassign.
7548 (loop_versioning::analyze_term_using_scevs): Return a success code.
7549 (loop_versioning::analyze_arbitrary_term): New function.
7550 (loop_versioning::analyze_address_fragment): Use
7551 analyze_arbitrary_term if all else fails.
7553 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
7556 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
7559 2019-01-18 Richard Biener <rguenther@suse.de>
7561 PR tree-optimization/88903
7562 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
7563 scalar stmts a SLP shift amount is composed of when detecting
7566 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
7569 * config/arm/arm-cpus.in (mp): New feature.
7571 (fgroup ARMv7ve): Add mp and sec features.
7572 (arch armv7-a): Add options to allow mp and sec extensions.
7573 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
7574 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
7575 extenstions to the base architecture.
7576 (cpu cortex-a8): Add sec extension to the base architecture.
7577 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
7578 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
7579 variants down to the base v7-a varaint.
7580 * config/arm/t-multilib (v7_a_arch_variants): New variable.
7581 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
7582 of permitted extensions for -march=armv7-a and for
7583 -mcpu=generic-armv7-a.
7585 2019-01-18 Martin Liska <mliska@suse.cz>
7587 * params.def: Fix comment.
7588 * tree-profile.c (gimple_init_gcov_profiler): Bump function
7590 (gimple_gen_ic_func_profiler): Likewise.
7592 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7594 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
7595 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
7596 and put in error checks for stack protector guard options.
7597 (aarch64_stack_protect_guard): New.
7598 (TARGET_STACK_PROTECT_GUARD): Define.
7599 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
7600 (reg_stack_protect_address<mode>): New.
7601 (stack_protect_set): Adjust for SSP_GLOBAL.
7602 (stack_protect_test): Likewise.
7603 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
7604 (-mstack-protector-guard): Likewise.
7605 (-mstack-protector-guard-offset): Likewise.
7607 2019-01-18 Jakub Jelinek <jakub@redhat.com>
7609 PR tree-optimization/86214
7610 * tree-inline.h (struct copy_body_data): Add
7611 add_clobbers_to_eh_landing_pads member.
7612 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
7613 (copy_edges_for_bb): Call it if EH edge destination is <
7614 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
7615 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
7616 if flag_stack_reuse != SR_NONE and clear it afterwards.
7618 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
7621 * doc/install.texi (with-multilib-list): Document for aarch64.
7623 2019-01-18 Jakub Jelinek <jakub@redhat.com>
7626 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
7627 (("..."))) with ("...").
7629 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
7631 * doc/extend.texi (Built-in Functions for Memory Model Aware
7632 Atomic Operations): Document atomic fetch and nand.
7634 2019-01-18 Martin Liska <mliska@suse.cz>
7635 Richard Biener <rguenther@suse.de>
7638 * cgraph.h (create_version_clone_with_body): Add new argument
7640 * cgraphclones.c (cgraph_node::create_version_clone): Add
7641 DECL_ATTRIBUTES to a newly created decl. And call
7642 valid_attribute_p so that proper cl_target_optimization_node
7643 is set for the newly created declaration.
7644 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
7646 (expand_target_clones): Do not call valid_attribute_p, it must
7648 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
7651 2019-01-17 Jakub Jelinek <jakub@redhat.com>
7654 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
7655 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
7656 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
7658 2019-01-17 Martin Sebor <msebor@redhat.com>
7661 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
7662 Handle anti-ranges the same as no range at all.
7664 2018-01-17 Steve Ellcey <sellcey@cavium.com>
7666 * config/aarch64/aarch64.c (cgraph.h): New include.
7667 (intl.h): New include.
7668 (supported_simd_type): New function.
7669 (currently_supported_simd_type): Ditto.
7670 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
7671 (aarch64_simd_clone_adjust): Ditto.
7672 (aarch64_simd_clone_usable): Ditto.
7673 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
7674 (TARGET_SIMD_CLONE_ADJUST): Ditto.
7675 (TARGET_SIMD_CLONE_USABLE): Ditto.
7676 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
7677 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
7680 2019-01-17 Martin Sebor <msebor@redhat.com>
7682 PR tree-optimization/88800
7683 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
7684 NO_WARNING bit here. Avoid folding out-of-bounds calls.
7685 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
7686 redundant argument. Add new argument and issue diagnostics under
7687 its control. Detect out-of-bounds access even with warnings
7689 (check_bounds_or_overlap): Change return type. Add argument.
7690 (wrestrict_dom_walker::check_call): Adjust.
7691 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
7692 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
7693 check_bounds_or_overlap's return value.
7694 (handle_builtin_stxncpy): Same.
7695 (handle_builtin_strcat): Same.
7697 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7698 Kwok Cheung Yeung <kcy@codesourcery.com>
7699 Julian Brown <julian@codesourcery.com>
7700 Tom de Vries <tom@codesourcery.com>
7702 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
7704 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7706 * doc/sourcebuild.texi: Document dg-require-effective-target
7707 llvm_binutils and offload_gcn.
7709 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7710 Kwok Cheung Yeung <kcy@codesourcery.com>
7711 Julian Brown <julian@codesourcery.com>
7712 Tom de Vries <tom@codesourcery.com>
7714 * doc/sourcebuild.texi: Document dg-required-effective-target
7717 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7718 Kwok Cheung Yeung <kcy@codesourcery.com>
7719 Julian Brown <julian@codesourcery.com>
7720 Tom de Vries <tom@codesourcery.com>
7721 Jan Hubicka <hubicka@ucw.cz>
7722 Martin Jambor <mjambor@suse.cz>
7724 * config.gcc: Add amdgcn*-*-amdhsa configuration.
7725 * configure.ac: Check for dlopen.
7726 * configure: Regenerate.
7728 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7729 Kwok Cheung Yeung <kcy@codesourcery.com>
7730 Julian Brown <julian@codesourcery.com>
7731 Tom de Vries <tom@codesourcery.com>
7732 Jan Hubicka <hubicka@ucw.cz>
7733 Martin Jambor <mjambor@suse.cz>
7735 * common/config/gcn/gcn-common.c: New file.
7736 * config/gcn/driver-gcn.c: New file.
7737 * config/gcn/gcn-builtins.def: New file.
7738 * config/gcn/gcn-hsa.h: New file.
7739 * config/gcn/gcn-modes.def: New file.
7740 * config/gcn/gcn-opts.h: New file.
7741 * config/gcn/gcn-passes.def: New file.
7742 * config/gcn/gcn-protos.h: New file.
7743 * config/gcn/gcn-run.c: New file.
7744 * config/gcn/gcn-tree.c: New file.
7745 * config/gcn/gcn.c: New file.
7746 * config/gcn/gcn.h: New file.
7747 * config/gcn/gcn.opt: New file.
7748 * config/gcn/t-gcn-hsa: New file.
7750 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7751 Kwok Cheung Yeung <kcy@codesourcery.com>
7752 Julian Brown <julian@codesourcery.com>
7753 Tom de Vries <tom@codesourcery.com>
7754 Jan Hubicka <hubicka@ucw.cz>
7755 Martin Jambor <mjambor@suse.cz>
7757 * config/gcn/constraints.md: New file.
7758 * config/gcn/gcn-valu.md: New file.
7759 * config/gcn/gcn.md: New file.
7760 * config/gcn/predicates.md: New file.
7762 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
7764 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
7765 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
7766 (stmt_uses_0_or_null_in_undefined_way): Likewise.
7767 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
7769 2019-01-17 Tamar Christina <tamar.christina@arm.com>
7772 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
7773 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
7774 it and document registers.
7776 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7778 * config/aarch64/aarch64.c (ares_tunings): Define.
7779 * config/aarch64/aarch64-cores.def (ares): Use the above.
7781 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7785 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
7787 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
7788 (_mm512_fixupimm_round_pd): Update parameters and builtin.
7789 (_mm512_maskz_fixupimm_round_pd): Ditto.
7790 (_mm512_fixupimm_round_ps): Ditto.
7791 (_mm512_maskz_fixupimm_round_ps): Ditto.
7792 (_mm_fixupimm_round_sd): Ditto.
7793 (_mm_maskz_fixupimm_round_sd): Ditto.
7794 (_mm_fixupimm_round_ss): Ditto.
7795 (_mm_maskz_fixupimm_round_ss): Ditto.
7796 (_mm512_fixupimm_pd): Ditto.
7797 (_mm512_maskz_fixupimm_pd): Ditto.
7798 (_mm512_fixupimm_ps): Ditto.
7799 (_mm512_maskz_fixupimm_ps): Ditto.
7800 (_mm_fixupimm_sd): Ditto.
7801 (_mm_maskz_fixupimm_sd): Ditto.
7802 (_mm_fixupimm_ss): Ditto.
7803 (_mm_maskz_fixupimm_ss): Ditto.
7804 (_mm512_mask_fixupimm_round_pd): Update builtin.
7805 (_mm512_mask_fixupimm_round_ps): Ditto.
7806 (_mm_mask_fixupimm_round_sd): Ditto.
7807 (_mm_mask_fixupimm_round_ss): Ditto.
7808 (_mm512_mask_fixupimm_pd): Ditto.
7809 (_mm512_mask_fixupimm_ps): Ditto.
7810 (_mm_mask_fixupimm_sd): Ditto.
7811 (_mm_mask_fixupimm_ss): Ditto.
7812 * config/i386/avx512vlintrin.h:
7813 (_mm256_fixupimm_pd): Update parameters and builtin.
7814 (_mm256_maskz_fixupimm_pd): Ditto.
7815 (_mm256_fixupimm_ps): Ditto.
7816 (_mm256_maskz_fixupimm_ps): Ditto.
7817 (_mm_fixupimm_pd): Ditto.
7818 (_mm_maskz_fixupimm_pd): Ditto.
7819 (_mm_fixupimm_ps): Ditto.
7820 (_mm_maskz_fixupimm_ps): Ditto.
7821 (_mm256_mask_fixupimm_pd): Update builtin.
7822 (_mm256_mask_fixupimm_ps): Ditto.
7823 (_mm_mask_fixupimm_pd): Ditto.
7824 (_mm_mask_fixupimm_ps): Ditto.
7825 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
7826 * config/i386/i386-builtin.def: Update builtin definitions.
7827 * config/i386/i386.c: Handle new builtin types and remove useless ones.
7828 * config/i386/sse.md: Update VFIXUPIMM* patterns.
7829 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7830 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7831 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
7832 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7833 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7834 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
7835 * config/i386/subst.md:
7836 (round_saeonly_sd_mask_operand4): Add new subst_attr.
7837 (round_saeonly_sd_mask_op4): Ditto.
7838 (round_saeonly_expand_operand5): Ditto.
7839 (round_saeonly_expand): Update.
7841 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7845 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
7847 * config/i386/sse.md: Combine VFIXUPIMM* patterns
7848 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7849 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7850 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
7851 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7852 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7853 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
7855 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7859 2018-12-15 Jakub Jelinek <jakub@redhat.com>
7862 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
7863 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
7864 instead of UNSPEC_FIXUPIMM.
7866 2019-01-17 Richard Biener <rguenther@suse.de>
7869 * dwarf2out.c (want_pubnames): Never generate pubnames sections
7870 and friends for the LTO part of debug info.
7872 2019-01-17 Jakub Jelinek <jakub@redhat.com>
7874 PR tree-optimization/86214
7875 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
7878 PR rtl-optimization/88870
7879 * dce.c (deletable_insn_p): Never delete const/pure calls that can
7880 throw if we can't alter the cfg or delete dead exceptions.
7881 (mark_insn): Don't call find_call_stack_args for such calls.
7883 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
7885 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
7886 prototypes for vec_st.
7887 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
7888 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
7889 mainly on signed/unsigned long long and double.
7891 2019-01-16 David Malcolm <dmalcolm@redhat.com>
7894 * combine.c (delete_noop_moves): Convert to "bool" return,
7895 returning true if any edges are eliminated.
7896 (combine_instructions): Also return true if delete_noop_moves
7899 2019-01-16 Tamar Christina <tamar.christina@arm.com>
7901 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
7902 correct max nunits for endian swap.
7903 (aarch64_expand_fcmla_builtin): Correct subreg code.
7904 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
7905 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
7908 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
7910 * config/alpha/alpha.c (alpha_gimplify_va_arg):
7911 Handle split indirect COMPLEX_TYPE arguments.
7913 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
7916 * config/aarch64/aarch64-modes.def: Add comment about how the carry
7917 bit is set by add and compare.
7918 (CC_ADC): New CC_MODE.
7919 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
7920 to cache the code and mode of X. Adjust the shape of a CC_Cmode
7921 comparison. Add detection for CC_ADCmode.
7922 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
7924 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
7925 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
7926 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
7927 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
7928 to eliminate the need for zero-extending the operands.
7929 (add<mode>3_compareC_imm): Delete. Merge into ...
7930 (add<mode>3_compareC): ... this. Restructure the comparison to
7931 eliminate the need for zero-extending the operands.
7932 (add<mode>3_carryin): Use LTU for the overflow detection.
7933 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
7934 Reexpress comparison for overflow.
7935 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
7936 (add<mode>3_carryinC): Likewise.
7937 (add<mode>3_carryinV): Use LTU for carry between partials.
7938 * config/aarch64/predicates.md (aarch64_carry_operation): Update
7939 handling of CC_Cmode and add CC_ADCmode.
7940 (aarch64_borrow_operation): Likewise.
7942 2019-01-16 Tamar Christina <tamar.christina@arm.com>
7944 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
7945 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
7946 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
7947 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
7949 2019-01-16 Martin Liska <mliska@suse.cz>
7951 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
7953 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
7955 * gcc.c (add_sysrooted_hdrs_prefix): New function.
7956 (path_prefix_reset): Move up in the source file.
7957 (find_fortran_preinclude_file): Make complex search for the
7958 fortran header files.
7960 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
7962 * godump.c (go_output_typedef): When outputting a typedef, refer
7963 to the underlying type by its name and not its structure.
7965 2019-01-15 David Malcolm <dmalcolm@redhat.com>
7968 * tree.c (build_function_type): Assert that arg_types is not
7971 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
7974 * doc/extend.texi: Document that listing the stack pointer in the
7975 clobber list of an asm is a deprecated feature.
7976 * common.opt (Wdeprecated): Moved from c-family/c.opt.
7977 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
7978 warning instead of an error for clobbers of the stack pointer.
7979 Add a note explaining why.
7981 2019-01-15 Richard Biener <rguenther@suse.de>
7984 * dwarf2out.c (gen_member_die): Do not generate inheritance
7987 2019-01-15 Richard Biener <rguenther@suse.de>
7989 PR tree-optimization/88855
7990 * tree-if-conv.c (combine_blocks): Collect
7991 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
7993 2019-01-15 Tom de Vries <tdevries@suse.de>
7996 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
7997 lhs == NULL_TREE for gang-level reduction.
7999 2019-01-15 Richard Biener <rguenther@suse.de>
8000 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8003 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
8004 return true if SSA_NAME is already marked in visited bitmap.
8005 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
8007 2019-01-15 Jakub Jelinek <jakub@redhat.com>
8009 PR tree-optimization/88775
8010 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
8011 equal == 0 equality pointer comparisons some more if compared in
8012 integral types and either one points to an automatic var and the
8013 other to a global, or we can prove at least one points to the middle
8014 or both point to start or both point to end.
8016 2019-01-14 Andi Kleen <ak@linux.intel.com>
8018 * Makefile.in: Lower autofdo sampling rate by 10x.
8019 * Makefile.tpl: Dito.
8021 2019-01-14 Tom Honermann <tom@honermann.net>
8023 * defaults.h: Define CHAR8_TYPE.
8025 2019-01-14 Martin Sebor <msebor@redhat.com>
8028 * doc/extend.texi (Darwin Format Checks): Clarify.
8030 2019-01-14 Richard Biener <rguenther@suse.de>
8032 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
8033 whether we are in (simplify ...) or (match ...) context.
8035 2019-01-14 Jakub Jelinek <jakub@redhat.com>
8037 PR rtl-optimization/88796
8038 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
8039 * cfgexpand.c (stack_protect_prologue): Initialize
8040 crtl->stack_protect_guard_decl.
8041 * function.c (stack_protect_epilogue): Use it instead of calling
8042 targetm.stack_protect_guard again.
8043 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
8044 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
8045 crtl->stack_protect_guard_decl.
8046 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
8047 on the returned MEM_EXPR.
8049 2019-01-12 Tom de Vries <tdevries@suse.de>
8051 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
8052 vector length using -fopenacc-dim.
8054 2019-01-12 Tom de Vries <tdevries@suse.de>
8056 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
8057 lengths into account.
8059 2019-01-12 Svante Signell <svante.signell@gmail.com>
8061 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
8062 (TARGET_CAN_SPLIT_STACK): Define.
8063 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
8065 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8067 * params.def (inline-unit-growth): Set to 40.
8069 2019-01-12 Jakub Jelinek <jakub@redhat.com>
8071 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
8073 2019-01-12 Tom de Vries <tdevries@suse.de>
8075 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
8076 region calling vector-partitionable routine, set default_vector_length
8079 2019-01-12 Tom de Vries <tdevries@suse.de>
8081 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
8082 variable default_vector_length.
8084 2019-01-12 Tom de Vries <tdevries@suse.de>
8087 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
8088 from oacc_default_dims, as oacc_validate_dims would do it, and apply
8091 2019-01-12 Tom de Vries <tdevries@suse.de>
8093 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
8094 (nvptx_goacc_validate_dims): Add used parameter.
8095 * doc/tm.texi: Regenerate.
8096 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
8097 argument to call to targetm.goacc.validate_dims.
8098 (default_goacc_validate_dims): Add used
8100 * target.def (validate_dims): Add used parameter in DEFHOOK.
8101 * targhooks.h (default_goacc_validate_dims): Add used parameter.
8103 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8107 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
8109 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
8110 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
8111 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
8112 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
8114 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
8116 PR rtl-optimization/87305
8118 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
8119 for little endian pseudos used as paradoxical subreg.
8121 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8123 PR tree-optimization/88693
8124 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
8125 for STRING_CSTs that don't contain any NUL characters in the first
8126 TREE_STRING_LENGTH bytes.
8128 2019-01-11 Alan Modra <amodra@gmail.com>
8132 * genattrtab.c (min_fn): Don't translate values.
8133 (min_attr_value): Return INT_MAX when the value can't be calculated.
8134 Return minimum among any values that can be calculated.
8135 (max_attr_value): Adjust.
8137 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8139 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
8141 2019-01-11 Steve Ellcey <sellcey@marvell.com>
8143 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
8144 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
8145 (aarch64_return_call_with_max_clobbers): New function.
8146 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
8147 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
8149 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
8150 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
8151 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
8152 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
8153 * cselib.c (cselib_process_insn): Add argument to
8154 targetm.hard_regno_call_part_clobbered call.
8155 * ira-conflicts.c (ira_build_conflicts): Ditto.
8156 * ira-costs.c (ira_tune_allocno_costs): Ditto.
8157 * lra-constraints.c (inherit_reload_reg): Ditto.
8158 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
8159 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
8160 argument. Call targetm.return_call_with_max_clobbers.
8161 Add argument to targetm.hard_regno_call_part_clobbered call.
8162 (calls_have_same_clobbers_p): New function.
8163 (process_bb_lives): Add call_insn and last_call_insn variables.
8164 Pass call_insn to check_pseudos_live_through_calls.
8165 Modify if stmt to check targetm.return_call_with_max_clobbers.
8166 Update setting of flush variable.
8167 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
8169 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
8170 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
8171 targetm.hard_regno_call_part_clobbered call.
8172 * reginfo.c (choose_hard_reg_mode): Ditto.
8173 * regrename.c (check_new_reg_p): Ditto.
8174 * reload.c (find_equiv_reg): Ditto.
8175 * reload1.c (emit_reload_insns): Ditto.
8176 * sched-deps.c (deps_analyze_insn): Ditto.
8177 * sel-sched.c (init_regs_for_mode): Ditto.
8178 (mark_unavailable_hard_regs): Ditto.
8179 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
8180 * target.def (hard_regno_call_part_clobbered): Add insn argument.
8181 (return_call_with_max_clobbers): New target function.
8182 * doc/tm.texi: Regenerate.
8183 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
8184 * hooks.c (hook_bool_uint_mode_false): Change to
8185 hook_bool_insn_uint_mode_false.
8186 * hooks.h (hook_bool_uint_mode_false): Ditto.
8188 2019-01-11 Steve Ellcey <sellcey@marvell.com>
8190 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
8191 (aarch64_remove_extra_call_preserved_regs): New function.
8192 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
8193 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
8194 * doc/tm.texi: Regenerate.
8195 * final.c (get_call_reg_set_usage): Call new hook.
8196 * target.def (remove_extra_call_preserved_regs): New hook.
8197 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
8198 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
8200 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8203 * passes.c (finish_optimization_passes): Call print_combine_total_stats
8204 inside of pass_combine_1 dump rather than pass_profile_1.
8206 2019-01-11 Tom de Vries <tdevries@suse.de>
8208 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
8209 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
8210 (PTX_NUM_PER_WORKER_BARRIERS): Define.
8211 (nvptx_apply_dim_limits): Prevent vector_length 64 and
8214 2019-01-11 Tom de Vries <tdevries@suse.de>
8216 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
8218 2019-01-11 Jan Beulich <jbeulich@suse.com>
8220 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
8221 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
8222 sse2_cvtsi2sd): Add {l}.
8223 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
8226 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8229 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
8231 (*float<floatunssuffix>v2div2sf2): New define_insn.
8232 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
8233 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
8234 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
8235 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
8236 match_operands with "const0_operand" "C".
8238 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8240 * config/aarch64/aarch64-builtins.c
8241 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
8242 (aarch64_init_simd_builtins): ...Here
8244 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
8246 PR rtl-optimization/87305
8248 (setup_live_pseudos_and_spill_after_risky_transforms): Check
8249 allocation for big endian pseudos used as paradoxical subregs and
8250 spill them if it is wrong.
8251 * lra-constraints.c (lra_constraints): Add a comment.
8253 2019-01-10 Richard Biener <rguenther@suse.de>
8255 PR tree-optimization/88792
8256 * tree-ssa-pre.c (get_representative_for): Do not return a
8259 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8263 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
8264 (assign_parm_setup_block): Do the argument slot realignment here
8267 2019-01-10 Stefan Agner <stefan@agner.ch>
8270 * config/arm/arm.c (arm_option_override_internal): Force
8271 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
8273 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8276 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
8279 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8281 * config/arm/arm-builtins.c
8282 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
8283 (MAC_LANE_PAIR_QUALIFIERS): New.
8284 (arm_expand_builtin_args): Use it.
8285 (arm_expand_builtin_1): Likewise.
8286 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
8287 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
8288 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
8289 * config/arm/arm_neon.h:
8290 (vcadd_rot90_f16): New.
8291 (vcaddq_rot90_f16): New.
8292 (vcadd_rot270_f16): New.
8293 (vcaddq_rot270_f16): New.
8296 (vcmla_lane_f16): New.
8297 (vcmla_laneq_f16): New.
8298 (vcmlaq_lane_f16): New.
8299 (vcmlaq_laneq_f16): New.
8300 (vcmla_rot90_f16): New.
8301 (vcmlaq_rot90_f16): New.
8302 (vcmla_rot90_lane_f16): New.
8303 (vcmla_rot90_laneq_f16): New.
8304 (vcmlaq_rot90_lane_f16): New.
8305 (vcmlaq_rot90_laneq_f16): New.
8306 (vcmla_rot180_f16): New.
8307 (vcmlaq_rot180_f16): New.
8308 (vcmla_rot180_lane_f16): New.
8309 (vcmla_rot180_laneq_f16): New.
8310 (vcmlaq_rot180_lane_f16): New.
8311 (vcmlaq_rot180_laneq_f16): New.
8312 (vcmla_rot270_f16): New.
8313 (vcmlaq_rot270_f16): New.
8314 (vcmla_rot270_lane_f16): New.
8315 (vcmla_rot270_laneq_f16): New.
8316 (vcmlaq_rot270_lane_f16): New.
8317 (vcmlaq_rot270_laneq_f16): New.
8318 (vcadd_rot90_f32): New.
8319 (vcaddq_rot90_f32): New.
8320 (vcadd_rot270_f32): New.
8321 (vcaddq_rot270_f32): New.
8324 (vcmla_lane_f32): New.
8325 (vcmla_laneq_f32): New.
8326 (vcmlaq_lane_f32): New.
8327 (vcmlaq_laneq_f32): New.
8328 (vcmla_rot90_f32): New.
8329 (vcmlaq_rot90_f32): New.
8330 (vcmla_rot90_lane_f32): New.
8331 (vcmla_rot90_laneq_f32): New.
8332 (vcmlaq_rot90_lane_f32): New.
8333 (vcmlaq_rot90_laneq_f32): New.
8334 (vcmla_rot180_f32): New.
8335 (vcmlaq_rot180_f32): New.
8336 (vcmla_rot180_lane_f32): New.
8337 (vcmla_rot180_laneq_f32): New.
8338 (vcmlaq_rot180_lane_f32): New.
8339 (vcmlaq_rot180_laneq_f32): New.
8340 (vcmla_rot270_f32): New.
8341 (vcmlaq_rot270_f32): New.
8342 (vcmla_rot270_lane_f32): New.
8343 (vcmla_rot270_laneq_f32): New.
8344 (vcmlaq_rot270_lane_f32): New.
8345 (vcmlaq_rot270_laneq_f32): New.
8346 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
8347 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
8348 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
8349 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
8350 vcmlaq_lane270): New.
8351 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
8352 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
8353 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
8354 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
8355 (arm_option_reconfigure_globals): Use them.
8356 * config/arm/iterators.md (VDF, VQ_HSF): New.
8357 (VCADD, VCMLA): New.
8358 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
8359 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
8361 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
8362 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
8364 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8366 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
8367 Add qualifier_lane_pair_index.
8368 (emit-rtl.h): Include.
8369 (TYPES_QUADOP_LANE_PAIR): New.
8370 (aarch64_simd_expand_args): Use it.
8371 (aarch64_simd_expand_builtin): Likewise.
8372 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
8374 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
8375 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
8376 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
8377 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
8378 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
8379 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
8380 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
8381 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
8382 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
8383 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
8384 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
8385 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
8386 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
8387 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
8388 Add __ARM_FEATURE_COMPLEX.
8389 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
8390 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
8391 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
8392 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
8393 fcmlaq_lane270): New.
8394 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
8395 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
8396 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
8397 * config/aarch64/arm_neon.h:
8398 (vcadd_rot90_f16): New.
8399 (vcaddq_rot90_f16): New.
8400 (vcadd_rot270_f16): New.
8401 (vcaddq_rot270_f16): New.
8404 (vcmla_lane_f16): New.
8405 (vcmla_laneq_f16): New.
8406 (vcmlaq_lane_f16): New.
8407 (vcmlaq_rot90_lane_f16): New.
8408 (vcmla_rot90_laneq_f16): New.
8409 (vcmla_rot90_lane_f16): New.
8410 (vcmlaq_rot90_f16): New.
8411 (vcmla_rot90_f16): New.
8412 (vcmlaq_laneq_f16): New.
8413 (vcmla_rot180_laneq_f16): New.
8414 (vcmla_rot180_lane_f16): New.
8415 (vcmlaq_rot180_f16): New.
8416 (vcmla_rot180_f16): New.
8417 (vcmlaq_rot90_laneq_f16): New.
8418 (vcmlaq_rot270_laneq_f16): New.
8419 (vcmlaq_rot270_lane_f16): New.
8420 (vcmla_rot270_laneq_f16): New.
8421 (vcmlaq_rot270_f16): New.
8422 (vcmla_rot270_f16): New.
8423 (vcmlaq_rot180_laneq_f16): New.
8424 (vcmlaq_rot180_lane_f16): New.
8425 (vcmla_rot270_lane_f16): New.
8426 (vcadd_rot90_f32): New.
8427 (vcaddq_rot90_f32): New.
8428 (vcaddq_rot90_f64): New.
8429 (vcadd_rot270_f32): New.
8430 (vcaddq_rot270_f32): New.
8431 (vcaddq_rot270_f64): New.
8435 (vcmla_lane_f32): New.
8436 (vcmla_laneq_f32): New.
8437 (vcmlaq_lane_f32): New.
8438 (vcmlaq_laneq_f32): New.
8439 (vcmla_rot90_f32): New.
8440 (vcmlaq_rot90_f32): New.
8441 (vcmlaq_rot90_f64): New.
8442 (vcmla_rot90_lane_f32): New.
8443 (vcmla_rot90_laneq_f32): New.
8444 (vcmlaq_rot90_lane_f32): New.
8445 (vcmlaq_rot90_laneq_f32): New.
8446 (vcmla_rot180_f32): New.
8447 (vcmlaq_rot180_f32): New.
8448 (vcmlaq_rot180_f64): New.
8449 (vcmla_rot180_lane_f32): New.
8450 (vcmla_rot180_laneq_f32): New.
8451 (vcmlaq_rot180_lane_f32): New.
8452 (vcmlaq_rot180_laneq_f32): New.
8453 (vcmla_rot270_f32): New.
8454 (vcmlaq_rot270_f32): New.
8455 (vcmlaq_rot270_f64): New.
8456 (vcmla_rot270_lane_f32): New.
8457 (vcmla_rot270_laneq_f32): New.
8458 (vcmlaq_rot270_lane_f32): New.
8459 (vcmlaq_rot270_laneq_f32): New.
8460 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
8461 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
8462 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
8463 (FCADD, FCMLA): New.
8465 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
8467 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
8471 * config/pa/pa.c: Change "can not" to "cannot".
8472 * gimple-ssa-evrp-analyze.c: Likewise.
8473 * ipa-icf.c: Likewise.
8474 * ipa-polymorphic-call.c: Likewise.
8475 * ipa-pure-const.c: Likewise.
8476 * lra-constraints.c: Likewise.
8477 * lra-remat.c: Likewise.
8478 * reload1.c: Likewise.
8479 * reorg.c: Likewise.
8480 * tree-ssa-uninit.c: Likewise.
8482 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
8486 * Makefile.in: Mechanically replace "can not" with "cannot".
8487 * alias.c: Likewise.
8488 * builtins.c: Likewise.
8489 * calls.c: Likewise.
8490 * cgraph.c: Likewise.
8491 * cgraph.h: Likewise.
8492 * cgraphclones.c: Likewise.
8493 * cgraphunit.c: Likewise.
8494 * combine-stack-adj.c: Likewise.
8495 * combine.c: Likewise.
8496 * common/config/i386/i386-common.c: Likewise.
8497 * config/aarch64/aarch64.c: Likewise.
8498 * config/alpha/sync.md: Likewise.
8499 * config/arc/arc.c: Likewise.
8500 * config/arc/predicates.md: Likewise.
8501 * config/arm/arm-c.c: Likewise.
8502 * config/arm/arm.c: Likewise.
8503 * config/arm/arm.h: Likewise.
8504 * config/arm/arm.md: Likewise.
8505 * config/arm/cortex-r4f.md: Likewise.
8506 * config/csky/csky.c: Likewise.
8507 * config/csky/csky.h: Likewise.
8508 * config/darwin-f.c: Likewise.
8509 * config/epiphany/epiphany.md: Likewise.
8510 * config/i386/i386.c: Likewise.
8511 * config/i386/sol2.h: Likewise.
8512 * config/m68k/m68k.c: Likewise.
8513 * config/mcore/mcore.h: Likewise.
8514 * config/microblaze/microblaze.md: Likewise.
8515 * config/mips/20kc.md: Likewise.
8516 * config/mips/sb1.md: Likewise.
8517 * config/nds32/nds32.c: Likewise.
8518 * config/nds32/predicates.md: Likewise.
8519 * config/pa/pa.c: Likewise.
8520 * config/rs6000/e300c2c3.md: Likewise.
8521 * config/rs6000/rs6000.c: Likewise.
8522 * config/s390/s390.h: Likewise.
8523 * config/sh/sh.c: Likewise.
8524 * config/sh/sh.md: Likewise.
8525 * config/spu/vmx2spu.h: Likewise.
8526 * cprop.c: Likewise.
8527 * dbxout.c: Likewise.
8528 * df-scan.c: Likewise.
8529 * doc/cfg.texi: Likewise.
8530 * doc/extend.texi: Likewise.
8531 * doc/fragments.texi: Likewise.
8532 * doc/gty.texi: Likewise.
8533 * doc/invoke.texi: Likewise.
8534 * doc/lto.texi: Likewise.
8535 * doc/md.texi: Likewise.
8536 * doc/objc.texi: Likewise.
8537 * doc/rtl.texi: Likewise.
8538 * doc/tm.texi: Likewise.
8540 * emit-rtl.c: Likewise.
8541 * emit-rtl.h: Likewise.
8542 * except.c: Likewise.
8543 * expmed.c: Likewise.
8545 * fold-const.c: Likewise.
8546 * genautomata.c: Likewise.
8547 * gimple-fold.c: Likewise.
8548 * hard-reg-set.h: Likewise.
8549 * ifcvt.c: Likewise.
8550 * ipa-comdats.c: Likewise.
8551 * ipa-cp.c: Likewise.
8552 * ipa-devirt.c: Likewise.
8553 * ipa-fnsummary.c: Likewise.
8554 * ipa-icf.c: Likewise.
8555 * ipa-inline-transform.c: Likewise.
8556 * ipa-inline.c: Likewise.
8557 * ipa-polymorphic-call.c: Likewise.
8558 * ipa-profile.c: Likewise.
8559 * ipa-prop.c: Likewise.
8560 * ipa-pure-const.c: Likewise.
8561 * ipa-reference.c: Likewise.
8562 * ipa-split.c: Likewise.
8563 * ipa-visibility.c: Likewise.
8565 * ira-build.c: Likewise.
8566 * ira-color.c: Likewise.
8567 * ira-conflicts.c: Likewise.
8568 * ira-costs.c: Likewise.
8569 * ira-int.h: Likewise.
8570 * ira-lives.c: Likewise.
8573 * loop-invariant.c: Likewise.
8574 * loop-unroll.c: Likewise.
8575 * lower-subreg.c: Likewise.
8576 * lra-assigns.c: Likewise.
8577 * lra-constraints.c: Likewise.
8578 * lra-eliminations.c: Likewise.
8579 * lra-lives.c: Likewise.
8580 * lra-remat.c: Likewise.
8581 * lra-spills.c: Likewise.
8583 * lto-cgraph.c: Likewise.
8584 * lto-streamer-out.c: Likewise.
8585 * postreload-gcse.c: Likewise.
8586 * predict.c: Likewise.
8587 * profile-count.h: Likewise.
8588 * profile.c: Likewise.
8589 * recog.c: Likewise.
8591 * reload.c: Likewise.
8592 * reload1.c: Likewise.
8593 * reorg.c: Likewise.
8594 * resource.c: Likewise.
8595 * rtl.def: Likewise.
8597 * rtlanal.c: Likewise.
8598 * sched-deps.c: Likewise.
8599 * sched-ebb.c: Likewise.
8600 * sched-rgn.c: Likewise.
8601 * sel-sched-ir.c: Likewise.
8602 * sel-sched.c: Likewise.
8603 * shrink-wrap.c: Likewise.
8604 * simplify-rtx.c: Likewise.
8605 * symtab.c: Likewise.
8606 * target.def: Likewise.
8607 * toplev.c: Likewise.
8608 * tree-call-cdce.c: Likewise.
8609 * tree-cfg.c: Likewise.
8610 * tree-complex.c: Likewise.
8611 * tree-core.h: Likewise.
8612 * tree-eh.c: Likewise.
8613 * tree-inline.c: Likewise.
8614 * tree-loop-distribution.c: Likewise.
8615 * tree-nrv.c: Likewise.
8616 * tree-profile.c: Likewise.
8617 * tree-sra.c: Likewise.
8618 * tree-ssa-alias.c: Likewise.
8619 * tree-ssa-dce.c: Likewise.
8620 * tree-ssa-dom.c: Likewise.
8621 * tree-ssa-forwprop.c: Likewise.
8622 * tree-ssa-loop-im.c: Likewise.
8623 * tree-ssa-loop-ivcanon.c: Likewise.
8624 * tree-ssa-loop-ivopts.c: Likewise.
8625 * tree-ssa-loop-niter.c: Likewise.
8626 * tree-ssa-phionlycprop.c: Likewise.
8627 * tree-ssa-phiopt.c: Likewise.
8628 * tree-ssa-propagate.c: Likewise.
8629 * tree-ssa-threadedge.c: Likewise.
8630 * tree-ssa-threadupdate.c: Likewise.
8631 * tree-ssa-uninit.c: Likewise.
8632 * tree-ssanames.c: Likewise.
8633 * tree-streamer-out.c: Likewise.
8636 * vr-values.c: Likewise.
8638 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
8640 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
8641 (ix86_split_xorsign): Ditto.
8642 * config/i386/i386.c (ix86_expand_xorsign): New function.
8643 (ix86_split_xorsign): Ditto.
8644 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
8645 (xorsign<mode>3): New expander.
8646 (xorsign<mode>3_1): New insn_and_split pattern.
8647 * config/i386/sse.md (xorsign<mode>3): New expander.
8649 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8651 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
8652 (*tablejump_sp64): Likewise.
8653 (*tablejump<P:mode>): ...this.
8654 (*call_address_sp32): Merge into...
8655 (*call_address_sp64): Likewise.
8656 (*call_address<P:mode>): ...this.
8657 (*call_symbolic_sp32): Merge into...
8658 (*call_symbolic_sp64): Likewise.
8659 (*call_symbolic<P:mode>): ...this.
8660 (call_value): Remove constraint and add predicate.
8661 (*call_value_address_sp32): Merge into...
8662 (*call_value_address_sp64): Likewise.
8663 (*call_value_address<P:mode>): ...this.
8664 (*call_value_symbolic_sp32): Merge into...
8665 (*call_value_symbolic_sp64): Likewise.
8666 (*call_value_symbolic<P:mode>): ...this.
8667 (*sibcall_symbolic_sp32): Merge into...
8668 (*sibcall_symbolic_sp64): Likewise.
8669 (*sibcall_symbolic<P:mode>): ...this.
8670 (sibcall_value): Remove constraint and add predicate.
8671 (*sibcall_value_symbolic_sp32): Merge into...
8672 (*sibcall_value_symbolic_sp64): Likewise.
8673 (*sibcall_value_symbolic<P:mode>): ...this.
8674 (window_save): Minor tweak.
8675 (*branch_sp32): Merge into...
8676 (*branch_sp64): Likewise.
8677 (*branch<P:mode>): ...this.
8679 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8680 James Clarke <jrtc27@jrtc27.com>
8683 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
8684 consistently in TLS address generation and adjust code to the renaming
8685 of patterns. Mark calls to __tls_get_addr as const.
8686 * config/sparc/sparc.md (tgd_hi22): Turn into...
8687 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
8688 (tgd_lo10): Turn into...
8689 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
8690 (tgd_add32): Merge into...
8691 (tgd_add64): Likewise.
8692 (tgd_add<P:mode>): ...this and use Pmode throughout.
8693 (tldm_hi22): Turn into...
8694 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
8695 (tldm_lo10): Turn into...
8696 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
8697 (tldm_add32): Merge into...
8698 (tldm_add64): Likewise.
8699 (tldm_add<P:mode>): ...this and use Pmode throughout.
8700 (tldm_call32): Merge into...
8701 (tldm_call64): Likewise.
8702 (tldm_call<P:mode>): ...this and use Pmode throughout.
8703 (tldo_hix22): Turn into...
8704 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
8705 (tldo_lox10): Turn into...
8706 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
8707 (tldo_add32): Merge into...
8708 (tldo_add64): Likewise.
8709 (tldo_add<P:mode>): ...this and use Pmode throughout.
8710 (tie_hi22): Turn into...
8711 (tie_hi22<P:mode>): ...this and use Pmode throughout.
8712 (tie_lo10): Turn into...
8713 (tie_lo10<P:mode>): ...this and use Pmode throughout.
8714 (tie_ld64): Use DImode throughout.
8715 (tie_add32): Merge into...
8716 (tie_add64): Likewise.
8717 (tie_add<P:mode>): ...this and use Pmode throughout.
8718 (tle_hix22_sp32): Merge into...
8719 (tle_hix22_sp64): Likewise.
8720 (tle_hix22<P:mode>): ...this and use Pmode throughout.
8721 (tle_lox22_sp32): Merge into...
8722 (tle_lox22_sp64): Likewise.
8723 (tle_lox22<P:mode>): ...this and use Pmode throughout.
8724 (*tldo_ldub_sp32): Merge into...
8725 (*tldo_ldub_sp64): Likewise.
8726 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
8727 (*tldo_ldub1_sp32): Merge into...
8728 (*tldo_ldub1_sp64): Likewise.
8729 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
8730 (*tldo_ldub2_sp32): Merge into...
8731 (*tldo_ldub2_sp64): Likewise.
8732 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
8733 (*tldo_ldsb1_sp32): Merge into...
8734 (*tldo_ldsb1_sp64): Likewise.
8735 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
8736 (*tldo_ldsb2_sp32): Merge into...
8737 (*tldo_ldsb2_sp64): Likewise.
8738 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
8739 (*tldo_ldub3_sp64): Use DImode throughout.
8740 (*tldo_ldsb3_sp64): Likewise.
8741 (*tldo_lduh_sp32): Merge into...
8742 (*tldo_lduh_sp64): Likewise.
8743 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
8744 (*tldo_lduh1_sp32): Merge into...
8745 (*tldo_lduh1_sp64): Likewise.
8746 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
8747 (*tldo_ldsh1_sp32): Merge into...
8748 (*tldo_ldsh1_sp64): Likewise.
8749 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
8750 (*tldo_lduh2_sp64): Use DImode throughout.
8751 (*tldo_ldsh2_sp64): Likewise.
8752 (*tldo_lduw_sp32): Merge into...
8753 (*tldo_lduw_sp64): Likewise.
8754 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
8755 (*tldo_lduw1_sp64): Use DImode throughout.
8756 (*tldo_ldsw1_sp64): Likewise.
8757 (*tldo_ldx_sp64): Likewise.
8758 (*tldo_stb_sp32): Merge into...
8759 (*tldo_stb_sp64): Likewise.
8760 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
8761 (*tldo_sth_sp32): Merge into...
8762 (*tldo_sth_sp64): Likewise.
8763 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
8764 (*tldo_stw_sp32): Merge into...
8765 (*tldo_stw_sp64): Likewise.
8766 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
8767 (*tldo_stx_sp64): Use DImode throughout.
8769 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8771 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
8772 check configure option to set BTI and Return Address Signing.
8773 * configure.ac: Add --enable-standard-branch-protection and
8774 --disable-standard-branch-protection.
8775 * configure: Regenerated.
8776 * doc/install.texi: Document the same.
8778 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8779 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8781 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
8782 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
8783 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
8785 * config/aarch64/aarch64-bti-insert.c: New file.
8786 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
8788 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
8790 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
8791 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
8792 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
8793 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
8795 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8797 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
8798 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
8799 Disable bti for -mbranch-protection=none.
8800 (aarch64_handle_standard_branch_protection): Enable bti for
8801 -mbranch-protection=standard.
8802 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
8803 -mbranch-protection.
8804 (aarch64_bti_enabled): Check if bti is enabled.
8805 * config/aarch64/aarch64.opt: Declare target variable.
8806 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
8808 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8810 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
8811 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
8812 (aarch64_expand_epilogue): Likewise.
8813 (aarch64_output_mi_thunk): Likewise
8814 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
8815 TAILCALL_ADDR_REGS to x16 and x17.
8816 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
8818 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8820 * config/aarch64/aarch64-option-extensions.def: Define
8821 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
8822 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
8823 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
8824 (AARCH64_FL_PREDRES): New.
8825 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
8826 AARCH64_FL_PREDRES by default.
8827 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
8829 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8831 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
8833 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
8834 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
8835 * doc/invoke.texi: Document ARMv8.5-A.
8837 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8839 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
8840 (xorsign<mode>3): Likewise.
8842 2019-01-09 Jelinek <jakub@redhat.com>
8845 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
8846 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
8848 PR rtl-optimization/88331
8849 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
8850 not currently_expanding_to_rtl.
8852 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8854 * doc/invoke.texi (-Os): Remove trailing spaces.
8855 (-finline-functions): Remove reference to -O2.
8857 2019-01-08 Jakub Jelinek <jakub@redhat.com>
8859 PR rtl-optimization/79593
8860 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
8862 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
8863 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
8865 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
8868 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
8872 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
8873 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
8875 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
8878 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
8879 ix86_avx_u128_mode_entry.
8881 2019-01-08 Martin Liska <mliska@suse.cz>
8883 PR tree-optimization/88753
8884 * tree-switch-conversion.c (switch_conversion::build_one_array):
8885 Come up with local variable constructor. Convert first to
8886 type of constructor values.
8888 2019-01-08 Richard Biener <rguenther@suse.de>
8890 PR tree-optimization/86554
8891 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
8892 rpo_avail): Move earlier.
8893 (visit_nary_op): When value-numbering to expressions
8894 with different overflow behavior make sure there's an
8895 available expression on the path.
8897 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
8899 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
8900 aarch64_parse_branch_protection,
8901 struct aarch64_branch_protect_type,
8902 aarch64_handle_no_branch_protection,
8903 aarch64_handle_standard_branch_protection,
8904 aarch64_validate_mbranch_protection,
8905 aarch64_handle_pac_ret_protection,
8906 aarch64_handle_attr_branch_protection,
8907 accepted_branch_protection_string,
8908 aarch64_pac_ret_subtypes,
8909 aarch64_branch_protect_types,
8910 aarch64_handle_pac_ret_leaf): Define.
8911 (aarch64_override_options_after_change_1, aarch64_override_options):
8912 Add check for accepted_branch_protection_string.
8913 (aarch64_option_save): Save accepted_branch_protection_string.
8914 (aarch64_option_restore): Save accepted_branch_protection_string.
8915 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
8916 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
8917 msign-return-address.
8918 * doc/invoke.texi: Add mbranch-protection.
8920 2019-01-08 Alan Modra <amodra@gmail.com>
8923 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
8924 Delete "unknownp" parameter. Adjust callers. Handle
8925 CONST_INT, PLUS, MINUS, and MULT.
8926 (attr_value_aligned): Renamed from or_attr_value.
8927 (min_attr_value): Return INT_MIN for unhandled rtl case..
8928 (min_fn): ..and translate to INT_MAX here.
8929 (write_length_unit_log): Modify to cope without "unknown".
8930 (write_attr_value): Handle IF_THEN_ELSE.
8932 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8934 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
8935 optimization for masked stores.
8937 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8940 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
8941 output vector directly to duplicate_and_interleave instead of
8942 going through a temporary. Postpone insertion of ctor_seq to
8943 the end of the loop.
8945 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
8948 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
8949 unsigned_p. Handle signed and unsigned overflow correction as
8951 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
8953 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
8955 (add<mode>3_compareV_imm): Make this callable for expanding.
8956 (subv<GPI:mode>4): Use register_operand for operand 1. Use
8957 aarch64_plus_operand for operand 2.
8958 (subv<GPI:mode>_insn): New insn pattern.
8959 (subv<GPI:mode>_imm): Likewise.
8960 (negv<GPI:mode>3): New expand pattern.
8961 (negv<GPI:mode>_insn): New insn pattern.
8962 (negv<GPI:mode>_cmp_only): Likewise.
8963 (cmpv<GPI:mode>_insn): Likewise.
8964 (subvti4): Use register_operand for operand 1. Update call to
8965 aarch64_expand_subvti.
8966 (usubvti4): Likewise.
8967 (negvti3): New expand pattern.
8968 (negdi_carryout): New insn pattern.
8969 (negvdi_carryinV): New insn pattern.
8970 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
8971 version the named version.
8972 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
8974 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
8976 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
8978 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
8979 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
8980 (sub<mode>3_carryinCV): Delete.
8981 (sub<GPI:mode>3_carryinV): New expand pattern.
8982 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
8984 2019-01-07 Richard Biener <rguenther@suse.de>
8986 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
8987 of tree_operand_hash.
8989 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8991 PR tree-optimization/88598
8992 * tree.h (single_nonzero_element): Declare.
8993 * tree.c (single_nonzero_element): New function.
8994 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
8995 if I is the only nonzero element of CST.
8997 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8999 PR tree-optimization/88598
9000 * tree.h (initializer_each_zero_or_onep): Declare.
9001 * tree.c (initializer_each_zero_or_onep): New function.
9002 (signed_or_unsigned_type_for): Handle float types too.
9003 (unsigned_type_for, signed_type_for): Update comments accordingly.
9004 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
9005 x & { 0 or -1, 0 or -1, ... }.
9007 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
9009 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
9010 with x86_64-pc-linux-gnu.
9012 2019-01-07 Tom de Vries <tdevries@suse.de>
9015 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
9017 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
9020 2019-01-07 Jakub Jelinek <jakub@redhat.com>
9022 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
9023 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
9024 TARGET_AVX512F as condition.
9027 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
9028 const_not_ok_for_debug_p target hook.
9029 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
9030 on UNSPEC and subexpressions thereof if all subexpressions of the
9031 UNSPEC are CONSTANT_P.
9033 PR tree-optimization/88676
9034 * tree-ssa-phiopt.c (two_value_replacement): New function.
9035 (tree_ssa_phiopt_worker): Call it.
9038 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
9039 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
9042 * tree-vect-generic.c: Include insn-config.h and recog.h.
9043 (expand_vector_piecewise): Add defaulted ret_type argument,
9044 if non-NULL, use that in preference to type for the result type.
9045 (expand_vector_parallel): Formatting fix.
9046 (do_vec_conversion, do_vec_narrowing_conversion,
9047 expand_vector_conversion): New functions.
9048 (expand_vector_operations_1): Call expand_vector_conversion
9049 for VEC_CONVERT ifn calls.
9050 * internal-fn.def (VEC_CONVERT): New internal function.
9051 * internal-fn.c (expand_VEC_CONVERT): New function.
9052 * fold-const-call.c (fold_const_vec_convert): New function.
9053 (fold_const_call): Use it for CFN_VEC_CONVERT.
9054 * doc/extend.texi (__builtin_convertvector): Document.
9056 2019-01-07 Tom de Vries <tdevries@suse.de>
9058 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
9059 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
9060 vector_red_partition, vector_red_sym): New global variables.
9061 (nvptx_option_override): Initialize vector_red_sym.
9062 (nvptx_declare_function_name): Restore red_partition register.
9063 (nvptx_file_end): Emit code to declare the vector reduction variables.
9064 (nvptx_output_red_partition): New function.
9065 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
9066 large vector reductions.
9067 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
9068 (nvptx_init_builtins): Add VECTOR_ADDR.
9069 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
9070 Handle nvptx_expand_shared_addr.
9071 (nvptx_get_shared_red_addr): Add vector argument and handle large
9073 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
9075 (nvptx_goacc_reduction_init): Likewise.
9076 (nvptx_goacc_reduction_fini): Likewise.
9077 (nvptx_goacc_reduction_teardown): Likewise.
9078 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
9079 init,fini,teardown}.
9080 (nvptx_init_axis_predicate): Initialize vector_red_partition.
9081 (nvptx_set_current_function): Init vector_red_partition.
9082 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
9083 (nvptx_red_partition): New insn.
9084 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
9086 2019-01-07 Tom de Vries <tdevries@suse.de>
9089 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
9092 2019-01-07 Tom de Vries <tdevries@suse.de>
9094 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
9095 (nvptx_option_override): Init oacc_bcast_partition.
9096 (nvptx_init_oacc_workers): New function.
9097 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
9098 (nvptx_needs_shared_bcast): New function.
9099 (nvptx_find_par): Generalize to enable vectors to use shared-memory
9101 (nvptx_shared_propagate): Initialize vector bcast partition and
9102 synchronization state.
9103 (nvptx_single): Generalize to enable vectors to use shared-memory
9105 (nvptx_process_pars): Likewise.
9106 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
9107 * config/nvptx/nvptx.h (struct machine_function): Add
9108 bcast_partition and sync_bar members.
9110 2019-01-07 Tom de Vries <tdevries@suse.de>
9112 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
9113 (nvptx_apply_dim_limits): New function.
9114 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
9117 2019-01-07 Tom de Vries <tdevries@suse.de>
9119 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
9120 as late as possible.
9122 2019-01-07 Tom de Vries <tdevries@suse.de>
9124 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
9125 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
9126 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
9127 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
9128 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
9130 2019-01-07 Tom de Vries <tdevries@suse.de>
9132 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
9134 2019-01-07 Tom de Vries <tdevries@suse.de>
9136 * omp-offload.c (oacc_get_min_dim): New function.
9137 * omp-offload.h (oacc_get_min_dim): Declare.
9139 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
9142 * config/i386/i386.c (function_value_ms_64): Return small sturct in
9143 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
9145 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9149 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
9151 * ipa-inline.c (edge_badness): Use inlined_time instead of
9152 inline_summaries->get.
9154 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9156 * opts.c (enable_fdo_optimizations): Enable
9157 version-loops-for-strides, loop-interchange, unrol-and-jam
9158 and tree-loop-distribution.
9159 * invoke.texi: Document newly enabled options.
9161 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9163 * doc/invoke.texi (max-inline-insns-small): New parameters.
9164 * ipa-inline.c (want_early_inline_function_p): simplify.
9165 (want_inline_small_function_p): Fix pasto from previous patch;
9166 use max-inline-insns-small bound.
9167 * params.def (max-inline-insns-small): New param.
9168 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
9169 variables correctly.
9171 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9173 * doc/invoke.texi: Document max-inline-insns-size,
9174 uninlined-function-insns, uninlined-function-time,
9175 uninlined-thunk-insns and uninlined-thunk-time.
9176 * params.def: Add max-inline-insns-size,
9177 uninlined-function-insns, uninlined-function-time,
9178 uninlined-thunk-insns and uninlined-thunk-time.
9179 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
9181 * ipa-inline.c (can_inline_edge_by_limits_p,
9182 want_inline_small_function_p): Use new parameters.
9184 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9186 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
9188 2019-01-05 Jakub Jelinek <jakub@redhat.com>
9192 * expr.c (expand_assignment): For calls returning VLA structures
9193 if to_rtx is not a MEM, force it into a stack temporary.
9196 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
9197 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
9198 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
9199 subexpressions of both operands.
9200 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
9201 subrtxes are CONSTANT_P.
9202 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
9205 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
9207 * params.def (hot-bb-count-ws-permille): Set to 990.
9209 2019-01-04 Martin Sebor <msebor@redhat.com>
9212 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
9215 2019-01-04 Martin Sebor <msebor@redhat.com>
9218 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
9220 2019-01-04 Jakub Jelinek <jakub@redhat.com>
9222 * gdbinit.in: Turn off pagination for the skip commands, restore
9223 it to previous state afterwards.
9225 2019-01-04 Jakub Jelinek <jakub@redhat.com>
9228 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
9229 of GET_MODE (opN) as modes of the libcall arguments.
9231 2019-01-04 Jan Beulich <jbeulich@suse.com>
9233 * config/i386/sse.md
9234 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
9235 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
9236 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
9237 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
9238 avx512f_vmcmp<mode>3<round_saeonly_name>,
9239 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
9240 avx512f_maskcmp<mode>3,
9241 <avx512>_cvt<ssemodesuffix>2mask<mode>,
9242 <avx512>_cvt<ssemodesuffix>2mask<mode>,
9243 *<avx512>_cvtmask2<ssemodesuffix><mode>,
9244 *<avx512>_cvtmask2<ssemodesuffix><mode>,
9245 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
9246 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
9247 <avx512>_gt<mode>3<mask_scalar_merge_name>,
9248 <avx512>_gt<mode>3<mask_scalar_merge_name>,
9249 <avx512>_testm<mode>3<mask_scalar_merge_name>,
9250 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
9251 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
9252 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
9253 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
9254 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
9255 avx512cd_maskb_vec_dup<mode>,
9256 avx512cd_maskw_vec_dup<mode>,
9257 avx512dq_fpclass<mode><mask_scalar_merge_name>,
9258 avx512dq_vmfpclass<mode>,
9259 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
9262 2019-01-03 Martin Sebor <msebor@redhat.com>
9264 PR tree-optimization/88659
9265 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
9267 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9269 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
9270 unaligned vsx and avoid lxvd2x/stxvd2x.
9271 (gen_lvx_v4si_move): New function.
9273 2019-01-03 Tom de Vries <tdevries@suse.de>
9275 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
9276 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
9278 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
9280 2019-01-03 Tom de Vries <tdevries@suse.de>
9282 * config/nvptx/nvptx.c (struct offload_attrs): New.
9283 (populate_offload_attrs): New function. Factor mask extraction out of
9284 nvptx_reorg. Add extraction of dimensions.
9285 (nvptx_reorg): Use populate_offload_attrs.
9287 2019-01-03 Tom de Vries <tdevries@suse.de>
9289 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
9290 cases for oacc_min_dims_p and routine_p. Add asserts for
9291 oacc_default_dims_p and offload_region_p.
9293 2019-01-03 Tom de Vries <tdevries@suse.de>
9295 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
9297 (nvptx_goacc_validate_dims): ... here.
9299 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
9301 PR tree-optimization/85574
9302 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
9304 (struct ssa_equip_hash_traits): Declare.
9305 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
9307 2019-01-03 Jakub Jelinek <jakub@redhat.com>
9310 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
9311 change it to qualified_type.
9313 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
9315 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
9316 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
9318 2019-01-02 Martin Sebor <msebor@redhat.com>
9319 Jeff Law <law@redhat.com>
9321 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
9322 (get_range_strlen_tree): Update appropriately.
9324 * gimple-fold.h (get_range_strlen): Drop unused last argument.
9326 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
9327 rather than set_range_info.
9328 * tree-ssa-strlen.c (set_strlen_range): Extracted from
9329 maybe_set_strlen_range. Handle potentially boundary crossing
9330 cases more conservatively.
9331 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
9332 Call set_strlen_range.
9333 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
9336 * gimple-fold.c (get_range_strlen): Update prototype to no longer
9337 need the flexp argument.
9338 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
9339 from calls to get_range_strlen. Update comments. Just update
9340 VAL for an unterminated const char array and let the reset of the
9341 code handle it normally. No longer try to set *flexp. Adjust
9343 (get_range_strlen): Update for the new get_range_strlen API.
9344 (get_maxval_strlen): Similarly.
9345 (gimple_fold_builtin_strlen): Handle update meaning of return value
9346 from get_range_strlen.
9347 * gimple-ssa-sprintf.c (get_string_length): Update for the new
9348 get_range_strlen API.
9350 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
9353 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
9354 false at WPA time when body was removed.
9356 2019-01-02 Martin Liska <mliska@suse.cz>
9358 PR tree-optimization/88650
9359 * predict.c (set_even_probabilities): Calculate probability
9360 remainer only when really used.
9362 2019-01-02 Richard Biener <rguenther@suse.de>
9365 * tree-data-ref.c (analyze_subscript_affine_affine): Use
9366 widest_ints when mangling max_stmt_execution results.
9368 2019-01-02 Richard Biener <rguenther@suse.de>
9370 PR tree-optimization/88621
9371 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
9372 bitfields when canoncalizing.
9374 2019-01-02 Richard Biener <rguenther@suse.de>
9377 * config/i386/x86-tune-costs.h (intel_cost): Adjust
9378 cost of cheap SSE instruction.
9380 2019-01-02 Richard Biener <rguenther@suse.de>
9383 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
9384 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
9386 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
9387 set after UIDs before splitting them.
9389 2019-01-01 Martin Sebor <msebor@redhat.com>
9390 Jeff Law <law@redhat.com>
9392 * gimple-fold.c (get_range_strlen_tree): Record if the computed
9393 length is optimistic. If it is, then arrange to compute the
9394 conservative length as well.
9396 * gimple-fold.h (get_range_strlen): Update prototype.
9397 * builtins.c (check_access): Update call to get_range_strlen to use
9398 c_strlen_data pointer. Change various variable accesses to instead
9399 pull data from the c_strlen_data structure.
9400 (check_strncat_sizes, expand_builtin_strncat): Likewise.
9401 * calls.c (maybe_warn_nonstring_arg): Likewise.
9402 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
9403 minimum length if maximum lengh is unknown.
9404 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
9405 that used c_strlen, it's no longer needed. Restructure slightly.
9406 (format_string): Set unlikely range appropriately.
9407 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
9409 (get_range_strlen): Accept c_strlen_data pointer for external
9410 call sites as well. Pass through to call to internal get_range_strlen.
9411 Adjust minlen, maxlen and maxbound as needed.
9412 (get_maxval_strlen): Update comments.
9413 (gimple_fold_builtin_strlen): Update call to get_range_strlen
9414 to use c_strlen_data pointer. Change variable accesses to instead
9415 use c_strlen_data data members.
9417 * gimple-fold.c (get_range_strlen): Update prototype.
9418 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
9419 local variables. Use pdata to return information to caller.
9420 Update calls to get_range_strlen. Update pdata->maxbound.
9421 (get_range_strlen -- static version): Similarly.
9422 (get_range_strlen -- extern version): Update for internal
9423 get_range_strlen API change. Convert to external data format.
9424 (get_maxval_strlen): Similarly.
9426 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
9428 * coverage.c (get_coverage_counts): Use current_function_decl.
9429 * profile.c (read_thunk_profile): New function.
9430 (branch_prob): Add THUNK parameter.
9431 * tree-profile.c (tree_profiling): Handle thunks.
9432 * value-prof.c (init_node_map): Handle thunks.
9433 * value-prof.h (branch_prob): Upate prototype.
9434 (read_thunk_profile): Declare.
9436 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9438 Update copyright years.
9440 * gcc.c (process_command): Update copyright notice dates.
9441 * gcov-dump.c (print_version): Ditto.
9442 * gcov.c (print_version): Ditto.
9443 * gcov-tool.c (print_version): Ditto.
9444 * gengtype.c (create_file): Ditto.
9445 * doc/cpp.texi: Bump @copying's copyright year.
9446 * doc/cppinternals.texi: Ditto.
9447 * doc/gcc.texi: Ditto.
9448 * doc/gccint.texi: Ditto.
9449 * doc/gcov.texi: Ditto.
9450 * doc/install.texi: Ditto.
9451 * doc/invoke.texi: Ditto.
9453 Copyright (C) 2019 Free Software Foundation, Inc.
9455 Copying and distribution of this file, with or without modification,
9456 are permitted in any medium without royalty provided the copyright
9457 notice and this notice are preserved.