1 2019-05-22 Jason Merrill <jason@redhat.com>
3 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
5 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
8 * config/i386/i386-options.c (ix86_init_machine_status): Set
9 stack_frame_required to true.
10 * config/i386/i386.c (ix86_get_frame_size): New function.
11 (ix86_frame_pointer_required): Replace get_frame_size with
13 (ix86_compute_frame_layout): Likewise.
14 (ix86_find_max_used_stack_alignment): Changed to void. Set
16 (ix86_finalize_stack_frame_flags): Always call
17 ix86_find_max_used_stack_alignment. Replace get_frame_size with
19 * config/i386/i386.h (machine_function): Add stack_frame_required.
21 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
23 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
25 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
27 * common/config/aarch64/aarch64-common.c
28 (struct aarch64_option_extension, struct processor_name_to_arch,
29 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
31 aarch64_get_extension_string_for_isa_flags): Change type of
32 variables storing flags to uint64_t.
33 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
34 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
35 * config/aarch64/aarch64.c (struct processor,
36 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
37 aarch64_validate_march, aarch64_override_options,
38 aarch64_option_print, aarch64_handle_attr_isa_flags,
39 aarch64_declare_function_name, aarch64_start_file): Make flag
41 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
42 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
43 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
44 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
45 * config/aarch64/driver-aarch64.c
46 (struct aarch64_arch_extension, struct aarch64_core_data,
47 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
48 flag variables uint64_t.
49 * doc/invoke.texi: Add documentation for new arguments.
51 2019-05-22 Richard Biener <rguenther@suse.de>
53 * alias.c (ao_ref_from_mem): Move stack-slot sharing
55 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
57 2019-05-22 Martin Liska <mliska@suse.cz>
60 * doc/extend.texi: Document the change.
62 2019-05-22 Richard Biener <rguenther@suse.de>
64 PR tree-optimization/90450
65 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
66 (mem_ref_hasher::equal): Check it.
67 (mem_ref_alloc): Initialize it.
68 (gather_mem_refs_stmt): Set it.
70 2019-05-22 Richard Biener <rguenther@suse.de>
72 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
74 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
77 2019-05-22 Alan Modra <amodra@gmail.com>
79 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
80 (ASM_CPU_SPEC): Conditionally add -many.
81 * config/rs6000/rs6000.c (rs6000_machine): New static var.
82 (rs6000_machine_from_flags, emit_asm_machine): New functions..
83 (rs6000_file_start): ..extracted from here, and modified to
85 (rs6000_output_function_prologue): Emit .machine as necessary.
86 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
88 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
89 added by check_vect_support_and_set_flags.
90 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
91 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
93 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
96 * ira-lives.c (process_bb_node_lives): Consider defs
97 for a call insn to be die before the call, not after.
99 * function.c (assign_parm_setup_block): Raise alignment of
100 stacked parameter only for STRICT_ALIGNMENT targets.
102 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
104 * config/rs6000/constraints.md (define_register_constraint "wz"):
106 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
107 RS6000_CONSTRAINT_wz.
108 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
109 (rs6000_init_hard_regno_mode_ok): Adjust.
110 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
111 * doc/md.texi (Machine Constraints): Adjust.
113 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
115 * config/rs6000/constraints.md (define_register_constraint "wl"):
117 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
118 RS6000_CONSTRAINT_wl.
119 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
120 (rs6000_init_hard_regno_mode_ok): Adjust.
121 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
122 * doc/md.texi (Machine Constraints): Adjust.
124 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
126 * config/rs6000/constraints.md (define_register_constraint "wm"):
128 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
129 RS6000_CONSTRAINT_wm.
130 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
131 (rs6000_init_hard_regno_mode_ok): Adjust.
132 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
133 * doc/md.texi (Machine Constraints): Adjust.
135 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
137 * config/rs6000/constraints.md (define_register_constraint "wk"):
139 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
140 RS6000_CONSTRAINT_wk.
141 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
142 (rs6000_init_hard_regno_mode_ok): Adjust.
143 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
144 * doc/md.texi (Machine Constraints): Adjust.
146 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
148 * config/rs6000/constraints.md (define_register_constraint "wj"):
150 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
151 RS6000_CONSTRAINT_wj.
152 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
153 (rs6000_init_hard_regno_mode_ok): Adjust.
154 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
156 * config/rs6000/vsx.md: Ditto.
157 * doc/md.texi (Machine Constraints): Adjust.
159 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
161 * config/rs6000/constraints.md (define_register_constraint "wh"):
163 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
164 RS6000_CONSTRAINT_wh.
165 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
166 (rs6000_init_hard_regno_mode_ok): Adjust.
167 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
168 * doc/md.texi (Machine Constraints): Adjust.
170 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
173 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
174 Avoid calling gen_lowpart with CONST operand.
176 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
178 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
179 field template_last_to_copy.
180 (ssa_create_duplicates): Set it, and use it. Attempt to
181 preserve more debug stmts.
183 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
185 * config/i386/sse.md (VF1_AVX2): New mode iterator.
186 (signbit<mode>2): New expander
188 2019-05-21 James Clarke <jrtc27@jrtc27.com>
191 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
192 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
194 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
196 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
197 %ebx and %ecx bafore calling cpuid with leaf 1 or
198 non-constant leaf argument.
200 2019-05-21 Alan Modra <amodra@gmail.com>
203 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
204 power9 direct move cost.
205 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
206 Correct comments and rename functions to suit parameters.
208 2019-05-21 Richard Biener <rguenther@suse.de>
211 * fold-const.c (fold_read_from_vector): New function.
212 * fold-const.h (fold_read_from_vector): Declare.
213 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
214 single-element insert permutations. Canonicalize selector
215 further and fix issue with last commit.
217 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
219 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
220 parameter with default value false to declaration.
221 (split_edges_for_insertion): New inline function. Wrapper for
222 split_critical_edges with for_edge_insertion_p = true.
223 * tree-cfg.c (split_critical_edges): Don't split non-critical
224 edges if for_edge_insertion_p is false. Fix whitespace.
225 * tree-ssa-pre.c (pass_pre::execute): Call
226 split_edges_for_insertion instead of split_critical_edges.
227 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
228 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
229 (pass_data_sink_code): Update function name in the comment.
231 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
233 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
234 around is_value_included_in that knows how to handle BIT_AND_EXPR.
235 (is_pred_expr_subset_of): Use the new function. Handle more cases where
236 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
239 2019-05-21 Martin Liska <mliska@suse.cz>
241 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
243 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
244 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
246 * config/rs6000/rs6000.c (rs6000_option_override_internal):
248 (rs6000_function_arg): Likewise.
249 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
250 (rs6000_expand_ternop_builtin): Use interval syntax.
251 (get_element_number): Likewise.
252 (altivec_expand_builtin): Likewise.
253 (rs6000_get_function_versions_dispatcher): Quote target_clones.
257 2019-05-20 Jakub Jelinek <jakub@redhat.com>
261 * function.h (struct function): Add calls_eh_return member.
262 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
263 gimplifying __builtin_eh_return call.
264 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
266 (expand_call_inline): Or in src_cfun->calls_eh_return into
267 dst_cfun->calls_eh_return.
268 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
269 cfun->calls_eh_return.
270 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
271 * lto-streamer-out.c (output_struct_function_base): Write
274 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
276 PR rtl-optimization/43147
277 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
280 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
282 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
283 (refs_may_alias_p_1): ... here; update stats.
284 (refs_may_alias_p): Do not update stats here.
286 2019-05-20 Richard Biener <rguenther@suse.de>
288 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
289 doesn't produce pointers.
290 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
291 the first operand points to.
293 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
295 * tree-ssa-alias.c (compare_sizes): New function.
296 (sompare_type_sizes): New function
297 (aliasing_component_refs_p): Use it.
298 (indirect_ref_may_alias_decl_p): Likewise.
300 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
302 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
304 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
306 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
307 (LIBLSAN_EARLY_SPEC): Likewise.
308 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
310 2019-05-20 Martin Liska <mliska@suse.cz>
312 * config/i386/i386.c (ix86_libc_has_fast_function):
313 Add ATTRIBUTE_UNUSED for the argument.
315 2019-05-20 Richard Biener <rguenther@suse.de>
317 * gimple-match-head.c: Include vec-perm-indices.h.
318 * generic-match-head.c: Likewise.
319 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
321 * fold-const.c (fold_vec_perm): Export.
322 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
325 2019-05-20 Jakub Jelinek <jakub@redhat.com>
327 * cfgloop.h (struct loop): Add simdlen member.
328 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
329 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
330 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
331 as new argument to autovectorize_vector_sizes target hook. If
332 loop->simdlen, pick up vector size where the vectorization factor
333 is equal to loop->simd, and if there is none, fall back to the first
335 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
337 * omp-low.c (omp_clause_aligned_alignment): Likewise.
338 * omp-general.c (omp_max_vf): Likewise.
339 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
340 * tree-vect-slp.c (vect_slp_bb): Likewise.
341 * target.def (autovectorize_vector_sizes): Add ALL argument and
343 * doc/tm.texi: Adjust documentation.
344 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
345 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
346 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
348 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
349 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
350 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
351 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
352 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
353 preferred vector size is not 512-bit or 256-bit, just put those
354 unpreferred ones last.
356 2019-05-20 Martin Liska <mliska@suse.cz>
358 * targhooks.c (default_libc_has_fast_function): New function.
359 * targhooks.h (default_libc_has_fast_function): Likewise.
361 2019-05-20 Martin Liska <mliska@suse.cz>
364 * builtins.c (expand_builtin_memory_copy_args): When having a
365 target with fast mempcpy implementation do now use memcpy.
366 * config/i386/i386.c (ix86_libc_has_fast_function): New.
367 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
368 * doc/tm.texi: Likewise.
369 * doc/tm.texi.in: Likewise.
371 * expr.c (emit_block_move_hints): Add 2 new arguments.
372 * expr.h (emit_block_move_hints): Bail out when libcall
373 to memcpy would be used.
375 2019-05-20 Martin Liska <mliska@suse.cz>
377 * profile-count.c: Add vertical spacing in order
378 to separate functions.
379 * profile-count.h: Likewise.
381 2019-05-20 Martin Liska <mliska@suse.cz>
383 * profile-count.h: Do not use full qualified
385 * profile-count.c (profile_count::to_frequency): Likewise.
387 2019-05-20 Martin Liska <mliska@suse.cz>
389 * profile-count.h (enum profile_quality): Use capital letters
390 for enum value names. Use the adjusted names.
391 * profile-count.c: Use the adjusted names.
393 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
395 * config/rs6000/constraints.md (define_register_constraint "wH"):
397 (define_register_constraint "wI"): Delete.
398 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
399 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
400 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
401 (rs6000_init_hard_regno_mode_ok): Adjust.
402 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
403 resp. "d", or with "wa" as appropriate, all with "p8v".
404 * config/rs6000/vsx.md: Ditto.
405 * doc/md.texi (Machine Constraints): Adjust.
407 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
409 * config/rs6000/constraints.md (define_register_constraint "wy"):
411 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
412 RS6000_CONSTRAINT_wy.
413 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
414 (rs6000_init_hard_regno_mode_ok): Adjust.
415 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
416 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
417 (define_mode_attr Fisa): New.
418 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
419 * doc/md.texi (Machine Constraints): Adjust.
421 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
423 * config/rs6000/constraints.md (define_register_constraint "wu"):
425 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
426 RS6000_CONSTRAINT_wu.
427 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
428 (rs6000_init_hard_regno_mode_ok): Adjust.
429 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
431 (define_mode_attr Fa): Delete.
432 * config/rs6000/vsx.md: Ditto.
433 * doc/md.texi (Machine Constraints): Adjust.
435 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
437 * config/rs6000/constraints.md (define_register_constraint "wJ"):
439 (define_register_constraint "wK"): Delete.
440 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
441 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
442 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
443 (rs6000_init_hard_regno_mode_ok): Adjust.
444 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
445 Replace "wK" constraint by "wH" with "p9v".
446 * config/rs6000/vsx.md: Ditto.
447 * doc/md.texi (Machine Constraints): Adjust.
449 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
451 * config/rs6000/constraints.md (define_register_constraint "wb"):
453 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
454 RS6000_CONSTRAINT_wb.
455 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
456 (rs6000_init_hard_regno_mode_ok): Adjust.
457 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
458 * config/rs6000/vsx.md: Ditto.
459 * doc/md.texi (Machine Constraints): Adjust.
461 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
463 * config/rs6000/constraints.md (define_register_constraint "wo"):
465 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
466 RS6000_CONSTRAINT_wo.
467 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
468 (rs6000_init_hard_regno_mode_ok): Adjust.
469 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
470 * config/rs6000/altivec.md: Ditto.
471 * doc/md.texi (Machine Constraints): Adjust.
473 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
475 * config/darwin-c.c (darwin_register_objc_includes): Do not
476 prepend the sysroot when building gnu-runtime header search
479 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
481 * config/darwin.c (darwin_file_end): Use switch_to_section ()
482 instead of direct output of the asm.
484 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
486 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
487 argument to be type bool (was int before).
488 (rs6000_emit_epilogue): Simplify some code. Declare some variables
489 at first use. Use type bool for some variables. Fix a theoretical
490 eh_return bug for svr4.
492 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
494 * config/rs6000/rs6000.md (isa): New attribute.
495 (enabled): New attribute.
497 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
499 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
500 assemble_start_function and assemble_end_function.
502 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
505 * omp-general.c (oacc_verify_routine_clauses): Change formal
506 parameters. Add checking if already marked with an OpenACC
507 'routine' directive. Adjust all users.
510 * omp-general.c (oacc_build_routine_dims): Move some of its
512 (oacc_verify_routine_clauses): ... this new function.
513 * omp-general.h (oacc_verify_routine_clauses): New prototype.
515 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
517 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
518 formating of picbase labels to match other ports.
520 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
522 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
523 in the generated code.
525 2019-05-16 Martin Sebor <msebor@redhat.com>
527 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
528 identifiers, keywords, operators, and types in diagnostics. Correct
529 quoting, spelling, and sentence capitalization issues.
530 (expand_builtin_atomic_is_lock_free): Same.
531 (fold_builtin_next_arg): Same.
532 * cfgexpand.c (expand_one_var): Same.
533 (tree_conflicts_with_clobbers_p): Same.
534 (expand_asm_stmt): Same.
535 (verify_loop_structure): Same.
536 * cgraphunit.c (process_function_and_variable_attributes): Same.
537 * collect-utils.c (collect_execute): Same.
538 * collect2.c (maybe_run_lto_and_relink): Same.
539 (is_lto_object_file): Same.
540 (scan_prog_file): Same.
541 * convert.c (convert_to_real_1): Same.
542 * dwarf2out.c (dwarf2out_begin_prologue): Same.
543 * except.c (verify_eh_tree): Same.
544 * gcc.c (execute): Same.
545 (eval_spec_function): Same.
547 (driver::set_up_specs): Same.
548 (compare_debug_auxbase_opt_spec_function): Same.
549 * gcov-tool.c (unlink_gcda_file): Same.
552 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
553 * gimplify.c (gimplify_asm_expr): Same.
554 (gimplify_adjust_omp_clauses): Same.
555 * hsa-gen.c (gen_hsa_addr_insns): Same.
556 (gen_hsa_insns_for_load): Same.
557 (gen_hsa_cmp_insn_from_gimple): Same.
558 (gen_hsa_insns_for_operation_assignment): Same.
559 (gen_get_level): Same.
560 (gen_hsa_alloca): Same.
561 (omp_simple_builtin::generate): Same.
562 (gen_hsa_atomic_for_builtin): Same.
563 (gen_hsa_insns_for_call): Same.
564 * input.c (dump_location_info): Same.
565 * ipa-devirt.c (compare_virtual_tables): Same.
566 * ira.c (ira_setup_eliminable_regset): Same.
567 * lra-assigns.c (lra_assign): Same.
568 * lra-constraints.c (lra_constraints): Same.
569 * lto-streamer-in.c (lto_input_mode_table): Same.
570 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
571 (merge_and_complain): Same.
572 (compile_offload_image): Same.
573 (compile_images_for_offload_targets): Same.
574 (debug_objcopy): Same.
577 * opts.c (print_specific_help): Same.
578 (parse_no_sanitize_attribute): Same.
580 (handle_param): Same.
581 * plugin.c (add_new_plugin): Same.
582 (parse_plugin_arg_opt): Same.
583 (try_init_one_plugin): Same.
584 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
585 operators, and types in diagnostics. Correct quoting and spelling
587 * read-rtl-function.c (parse_edge_flag_token): Same.
588 (function_reader::parse_enum_value): Same.
589 * reg-stack.c (check_asm_stack_operands): Same.
590 * regcprop.c (validate_value_data): Same.
591 * sched-rgn.c (make_pass_sched_fusion): Same.
592 * stmt.c (check_unique_operand_names): Same.
593 * targhooks.c (default_target_option_pragma_parse): Same.
594 * tlink.c (recompile_files): Same.
595 * toplev.c (process_options): Same.
597 * trans-mem.c (diagnose_tm_1): Same.
598 (ipa_tm_scan_irr_block): Same.
599 (ipa_tm_diagnose_transaction): Same.
600 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
601 format a tree code name in a diagnostic.
602 (verify_types_in_gimple_min_lval): Same.
603 (verify_types_in_gimple_reference): Same.
604 (verify_gimple_call): Same.
605 (verify_gimple_assign_unary): Same.
606 (verify_gimple_assign_binary): Same.
607 (verify_gimple_assign_ternary): Same.
608 (verify_gimple_assign_single): Same.
609 (verify_gimple_switch): Same.
610 (verify_gimple_label): Same.
611 (verify_gimple_phi): Same.
612 (verify_gimple_in_seq): Same.
613 (verify_eh_throw_stmt_node): Same.
614 (collect_subblocks): Same.
615 (gimple_verify_flow_info): Same.
616 (do_warn_unused_result): Same.
617 * tree-inline.c (expand_call_inline): Same.
618 * tree-into-ssa.c (update_ssa): Same.
619 * tree.c (tree_int_cst_elt_check_failed): Same.
620 (tree_vec_elt_check_failed): Same.
621 (omp_clause_operand_check_failed): Same.
622 (verify_type_variant): Same.
624 * value-prof.c (verify_histograms): Same.
625 * varasm.c (assemble_start_function): Same.
627 2019-05-16 Martin Sebor <msebor@redhat.com>
629 * config/i386/i386-expand.c (get_element_number): Quote keywords
630 and other internal names in diagnostics. Adjust other diagnostic
631 formatting issues noted by -Wformat-diag.
632 * config/i386/i386-features.c
633 (ix86_mangle_function_version_assembler_name): Same.
634 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
635 * config/i386/i386.c (ix86_function_type_abi): Same.
636 (ix86_function_ms_hook_prologue): Same.
637 (classify_argument): Same.
638 (ix86_expand_prologue): Same.
639 (ix86_md_asm_adjust): Same.
640 (ix86_memmodel_check): Same.
642 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
644 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
645 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
648 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
651 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
652 intrinsics without SSE/SSE2/SSSE3.
653 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
655 (*mmx_uavgv8qi3): Likewise.
657 2019-05-17 Richard Biener <rguenther@suse.de>
659 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
660 VEC_PERM_EXPR as __VEC_PERM with -gimple.
662 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
664 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
665 vec_sldw insn pattern.
667 2019-05-17 Richard Biener <rguenther@suse.de>
669 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
671 2019-05-17 Martin Liska <mliska@suse.cz>
674 * toplev.c (output_stack_usage): With LTO and sanitizer it
675 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
676 has no file location.
678 2019-05-16 Jakub Jelinek <jakub@redhat.com>
681 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
682 sz0 is equal to sz1, instead return false in that case.
684 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
685 has non-constant expression, force sctx.lane and use two
686 argument IFN_GOMP_SIMD_LANE instead of single argument.
687 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
688 two argument IFN_GOMP_SIMD_LANE without lhs.
689 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
691 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
693 (LOOP_REQUIRES_VERSIONING): Or in
694 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
695 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
697 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
698 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
699 from simd if clause if needed.
701 2019-05-16 Richard Biener <rguenther@suse.de>
703 * tree-affine.c (expr_to_aff_combination): New function split
705 (tree_to_aff_combination): ... here.
706 (aff_combination_expand): Avoid building a GENERIC tree.
708 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
710 * cgraphunit.c (cgraph_node::expand_thunk): Remove
711 assemble_start_function and assemble_end_function calls.
712 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
713 assemble_start_function and assemble_end_function.
714 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
715 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
716 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
717 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
718 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
719 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
720 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
721 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
722 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
723 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
724 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
725 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
727 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
728 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
729 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
730 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
731 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
732 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
733 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
734 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
735 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
736 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
737 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
738 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
739 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
740 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
742 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
743 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
744 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
746 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
748 * tree-ssa-alias.c (alias_stats): Add
749 aliasing_component_refs_p_may_alias and
750 aliasing_component_refs_p_no_alias.
751 (dump_alias_stats): Print aliasing_component_refs_p stats.
752 (aliasing_component_refs_p): Update stats.
754 2019-05-16 Martin Liska <mliska@suse.cz>
757 * multiple_target.c (expand_target_clones): Do not allow
758 target_clones being used with a symbol that is an alias.
760 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
762 PR tree-optimization/90394
763 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
764 positives rather than ICE for cases where (code2 == NE_EXPR
765 && code1 == BIT_AND_EXPR).
767 2019-05-16 Jakub Jelinek <jakub@redhat.com>
770 * tree-core.h (struct tree_decl_common): Document
771 decl_nonshareable_flag for PARM_DECLs.
772 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
773 * calls.c (expand_call): Don't try tail call if caller
774 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
775 passed on the stack and callee needs to pass any arguments on the
777 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
778 else if instead of series of mutually exclusive ifs. Handle
779 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
780 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
782 * lto-streamer.h (LTO_major_version): Bump to 9.
784 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
786 PR tree-optimization/90106
787 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
788 new parameter as new internal function call, also move it to new
790 (use_internal_fn): Pass internal function call to
791 shrink_wrap_one_built_in_call_with_conds.
793 2019-05-15 Jakub Jelinek <jakub@redhat.com>
795 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
797 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
798 safelen_int and set loop->dont_vectorize.
800 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
803 * config/i386/i386-builtin.def: Enable MMX intrinsics with
805 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
807 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
808 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
809 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
812 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
815 * config/i386/mmx.md (*vec_dupv2sf): Changed to
816 define_insn_and_split to support SSE emulation.
817 (*vec_extractv2sf_0): Likewise.
818 (*vec_extractv2sf_1): Likewise.
819 (*vec_extractv2si_0): Likewise.
820 (*vec_extractv2si_1): Likewise.
821 (*vec_extractv2si_zext_mem): Likewise.
822 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
823 (vec_extractv2sf_1 splitter): Likewise.
824 (vec_extractv2sfsf): Likewise.
825 (vec_setv2si): Likewise.
826 (vec_extractv2si_1 splitter): Likewise.
827 (vec_extractv2sisi): Likewise.
828 (vec_setv4hi): Likewise.
829 (vec_extractv4hihi): Likewise.
830 (vec_setv8qi): Likewise.
831 (vec_extractv8qiqi): Likewise.
832 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
833 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
834 (vec_extractv2sisi): Likewise.
835 (vec_extractv4hihi): Likewise.
836 (vec_extractv8qiqi): Likewise.
837 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
838 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
839 (vec_initv2sisi): Likewise.
840 (vec_initv4hihi): Likewise.
841 (vec_initv8qiqi): Likewise.
842 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
843 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
844 (vec_setv4hi): Likewise.
845 (vec_setv8qi): Likewise.
847 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
850 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
852 (MMXMODE:*mov<mode>_internal): Likewise.
853 (MMXMODE:movmisalign<mode>): Likewise.
855 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
858 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
859 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
860 (sse2_cvtpd2pi): Ditto.
861 (sse2_cvttpd2pi): Ditto.
862 (*vec_concatv2sf_sse4_1): Ditto.
863 (*vec_concatv2sf_sse): Ditto.
864 (*vec_concatv2si_sse4_1): Ditto.
865 (*vec_concatv2si): Ditto.
866 (*vec_concatv4si_0): Ditto.
867 (*vec_concatv2di_0): Ditto.
869 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
872 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
874 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
877 * config/i386/sse.md (ssse3_palignrdi): Changed to
878 define_insn_and_split to support SSE emulation.
880 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
883 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
885 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
888 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
889 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
892 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
895 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
896 or TARGET_MMX_WITH_SSE.
897 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
899 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
902 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
904 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
907 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
908 Changed to define_insn_and_split to support SSE emulation.
910 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
913 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
914 Changed to define_insn_and_split to support SSE emulation.
916 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
919 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
921 (mmx_<emms>): New expander.
923 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
926 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
928 (*sse2_umulv1siv1di3): Add SSE2 emulation.
930 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
933 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
935 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
938 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
940 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
943 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
945 (*mmx_uavgv4hi3): Add SSE emulation.
947 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
950 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
951 and TARGET_MMX_WITH_SSE.
952 (*mmx_uavgv8qi3): Add SSE emulation.
954 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
957 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
958 maskmovdqu for __MMX_WITH_SSE__.
960 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
963 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
964 TARGET_MMX and TARGET_MMX_WITH_SSE.
965 (*mmx_umulv4hi3_highpart): Add SSE emulation.
967 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
970 * config/i386/mmx.md (mmx_pmovmskb): Changed to
971 define_insn_and_split to support SSE emulation.
973 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
976 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
977 and TARGET_MMX_WITH_SSE.
978 (mmx_<code>v8qi3): Likewise.
979 (smaxmin:<code>v4hi3): New.
980 (umaxmin:<code>v8qi3): Likewise.
981 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
982 (umaxmin:*mmx_<code>v8qi3): Likewise.
984 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
987 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
989 (*mmx_pinsrw): Add SSE emulation.
991 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
994 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
996 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
999 * config/i386/sse.md (sse_cvtpi2ps): Changed to
1000 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
1003 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1006 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
1007 (sse_cvttps2pi): Likewise.
1009 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1012 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
1013 TARGET_MMX_WITH_SSE.
1014 (mmx_pshufw_1): Add SSE emulation.
1015 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
1016 TARGET_MMX_WITH_SSE to support SSE emulation.
1018 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1021 * config/i386/constraints.md (Yw): New constraint.
1022 * config/i386/mmx.md (*vec_dupv2si): Changed to
1023 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
1024 support SSE emulation.
1026 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1029 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
1030 TARGET_MMX_WITH_SSE.
1031 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
1033 (mmx_gt<mode>3): Likewise.
1035 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1038 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
1039 TARGET_MMX_WITH_SSE. Add SSE support.
1041 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1044 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
1045 TARGET_MMX_WITH_SSE.
1046 (any_logic:<code><mode>3): New.
1047 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
1050 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1053 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
1054 TARGET_MMX_WITH_SSE. Add SSE emulation.
1055 (mmx_<shift_insn><mode>3): Likewise.
1057 (<shift_insn><mode>3): Likewise.
1059 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1062 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
1063 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
1065 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1068 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
1069 TARGET_MMX_WITH_SSE.
1070 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
1073 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1076 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
1077 TARGET_MMX_WITH_SSE.
1079 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
1082 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1085 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
1086 (plusminus:mmx_<plusminus_insn><mode>3): Check
1087 TARGET_MMX_WITH_SSE.
1088 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
1089 (<plusminus_insn><mode>3): New.
1090 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
1091 (*mmx_<plusminus_insn><mode>3): Likewise.
1093 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1096 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
1097 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
1099 * config/i386/mmx.m (mmx_punpckhbw): Changed to
1100 define_insn_and_split to support SSE emulation.
1101 (mmx_punpcklbw): Likewise.
1102 (mmx_punpckhwd): Likewise.
1103 (mmx_punpcklwd): Likewise.
1104 (mmx_punpckhdq): Likewise.
1105 (mmx_punpckldq): Likewise.
1107 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1108 Uros Bizjak <ubizjak@gmail.com>
1111 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
1113 (ix86_split_mmx_pack): Likewise.
1114 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
1116 (ix86_split_mmx_pack): Likewise.
1117 * config/i386/i386.md (mmx_isa): New.
1118 (enabled): Also check mmx_isa.
1119 * config/i386/mmx.md (any_s_truncate): New code iterator.
1120 (s_trunsuffix): New code attr.
1121 (mmx_packsswb): Removed.
1122 (mmx_packssdw): Likewise.
1123 (mmx_packuswb): Likewise.
1124 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
1125 MMX packsswb/packuswb with SSE2.
1126 (mmx_packssdw): Likewise.
1127 * config/i386/predicates.md (register_mmxmem_operand): New.
1129 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1132 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1133 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
1134 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
1135 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
1136 (ix86_vector_mode_supported_p): Likewise.
1137 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
1139 2019-05-15 Martin Liska <mliska@suse.cz>
1142 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
1145 2019-05-15 Richard Biener <rguenther@suse.de>
1147 * tree-into-ssa.c (pass_build_ssa::execute): Run
1148 update_address_taken before going into SSA.
1150 2019-05-15 Richard Biener <rguenther@suse.de>
1152 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
1153 as __BIT_FIELD_REF with type with -gimple.
1155 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
1157 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
1158 semantically equivalent branches (left over after prior refactorings).
1160 2019-05-15 Richard Biener <rguenther@suse.de>
1162 PR tree-optimization/88828
1163 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
1166 2019-05-14 Richard Biener <rguenther@suse.de>
1168 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
1169 as __VIEW_CONVERT with -gimple.
1171 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1174 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
1177 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
1179 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
1180 define_split to become a define_insn_and_split.
1182 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
1184 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
1186 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
1187 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
1188 (sibcall_epilogue): Adjust.
1191 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1193 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
1194 to unsupported ones.
1195 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
1196 * config.host: Likewise.
1197 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
1198 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
1199 __svr4__]: Remove "brand" fallback.
1200 [!KSTAT_DATA_STRING]: Remove.
1201 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
1203 (comdat_group): Likewise.
1204 (set_have_as_tls): Likewise.
1205 (gcc_cv_target_dl_iterate_phdr): Likewise.
1206 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
1207 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
1208 * configure: Regenerate.
1209 * doc/install.texi: Simplify Solaris target triplets.
1210 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
1211 (Specific, *-*-solaris2*): Document Solaris 10 removal.
1212 Remove Solaris 10 references.
1213 Remove obsolete Solaris bug reference.
1214 (Specific, sparc-sun-solaris2.10): Remove.
1216 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
1218 * config/i386/i386.md (any_div): New code iterator.
1219 (paired_mod): New code attribute.
1220 (sgnprefix): Handle DIV and UDIV RTXes.
1222 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
1223 and udivmod<mode>4 patterns using any_div code iterator.
1224 (divmod splitters): Macroize splitters using any_div code iterator.
1225 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
1226 (*udivmodsi4_pow2_zext_2): Ditto.
1227 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
1228 and *udivmod<mode>4_noext patterns using any_div code iterator.
1229 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
1230 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
1231 patterns using any_div code iterator.
1232 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
1233 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
1234 patterns using any_div code iterator.
1235 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
1236 udivmodhiqi3 patterns using any_extend code iterator.
1238 2019-05-14 Richard Biener <rguenther@suse.de>
1239 H.J. Lu <hongjiu.lu@intel.com>
1241 PR tree-optimization/88828
1242 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1243 permuting in a single non-constant element not extracted
1246 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1248 * internal-fn.def (SIGNBIT): New.
1249 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
1251 (signbitv4sf2): Likewise.
1253 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
1256 * config/mips/mips.c (mips_split_move): Skip forward SRC into
1257 next insn when the SRC reg is dead.
1259 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
1261 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
1262 (alloc_cand_and_find_basis): Ditto.
1263 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
1264 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
1265 (create_add_imm_cand, slsr_process_cast): Ditto.
1266 (slsr_process_copy, replace_mult_candidate): Ditto.
1267 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
1268 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
1269 (pass_strength_reduction::execute): Init the first NULL element.
1271 2019-05-13 Nathan Sidwell <nathan@acm.org>
1273 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
1274 (run_attempt): Reformat line break.
1276 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
1279 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
1280 data registers in sibcall epilogues.
1281 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
1283 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
1286 * configure.ac (--enable-frame-pointer):
1287 Disable by default for cygwin and mingw.
1288 * configure: Regenerate.
1290 2019-05-13 Nathan Sidwell <nathan@acm.org>
1292 * dwarf2out.c (breakout_comdat_types): Move comment to correct
1294 (const_ok_for_output_1): Balance parens around #if/#else/#endif
1295 (gen_member_die): Move abstract origin check earlier. Only VARs
1296 can be static_inline_p. Simplify splicing control flow.
1298 2019-05-13 Richard Biener <rguenther@suse.de>
1300 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
1302 (vect_build_slp_tree_1): Likewise.
1304 2019-05-13 Richard Biener <rguenther@suse.de>
1306 PR tree-optimization/90402
1307 * tree-if-conv.c (tree_if_conversion): Value number only
1308 the loop body by making the latch an exit of the region
1310 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
1312 (do_rpo_vn): Deal with multiple edges into the entry block
1313 that are not backedges inside the region by skipping PHIs
1316 2019-05-13 Richard Biener <rguenther@suse.de>
1318 PR tree-optimization/90316
1319 * tree-ssa-pre.c (insert_aux): Fold into ...
1320 (insert): ... this function. Use a RPO walk to reduce the
1321 number of required iterations.
1323 2019-05-13 Martin Liska <mliska@suse.cz>
1325 PR tree-optimization/90416
1326 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
1327 string instead of passing the second part as va_arg argument.
1329 2019-05-13 Martin Liska <mliska@suse.cz>
1331 PR gcov-profile/90380
1332 * gcov.c (handle_cycle): Do not support zero cycle count,
1333 it should not be possible.
1334 (path_contains_zero_cycle_arc): New function.
1335 (circuit): Ignore zero cycle arc counts.
1337 2019-05-13 Martin Liska <mliska@suse.cz>
1339 PR gcov-profile/90380
1340 * gcov.c (enum loop_type): Remove the enum and
1342 (handle_cycle): Assert that we should not reach
1344 (circuit): Use loop_found instead of a tri-state loop_type.
1345 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
1348 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1351 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
1352 (ix86_output_indirect_branch_via_reg): Use output mechanism
1353 accounting for __USER_LABEL_PREFIX__.
1354 (ix86_output_indirect_branch_via_push): Likewise.
1355 (ix86_output_function_return): Likewise.
1356 (ix86_output_indirect_function_return): Likewise.
1358 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
1360 * doc/md.texi: Document use of code attributes in rtx patterns.
1361 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
1362 * read-rtl.c (find_code): Split out search loops into...
1363 (maybe_find_code): ...this new function.
1364 (check_code_iterator): Make the error message more informative.
1365 (check_code_attribute): New function.
1366 (rtx_reader::rtx_alloc_for_name): Likewise.
1367 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
1368 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
1369 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
1370 <max_opp> directly as an rtx code instead of via a match_operator.
1371 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
1372 (<su>abd<mode>_3): Update accordingly.
1374 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1376 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
1377 is given, print the state of the EH "save world" computation for
1380 2019-05-11 Jakub Jelinek <jakub@redhat.com>
1383 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
1384 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
1386 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
1388 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
1389 Use pinsrd for TARGET_SSE4_1.
1390 * config/i386/sse.md (movdi_to_sse): Ditto.
1392 2019-05-10 Richard Biener <rguenther@suse.de>
1394 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
1395 (do_rpo_vn): Initialize next_value_id.
1397 2019-05-10 Martin Liska <mliska@suse.cz>
1399 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
1402 2019-05-10 Jakub Jelinek <jakub@redhat.com>
1404 PR tree-optimization/90385
1405 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
1406 arguments of the exit phis.
1409 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
1410 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
1412 (copy_tree_body_r): Likewise.
1413 (copy_fn): Set id.do_not_fold to true.
1415 2019-05-10 Martin Liska <mliska@suse.cz>
1417 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
1418 Reapply changes from r269790.
1420 2019-05-10 Martin Liska <mliska@suse.cz>
1423 * doc/invoke.texi: New params.
1424 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
1425 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
1426 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
1428 * tree-switch-conversion.h (struct jump_table_cluster):
1431 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
1433 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
1435 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
1437 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
1439 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
1441 PR rtl-optimization/88879
1442 * sel-sched.c (sel_target_adjust_priority): Remove assert.
1444 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
1447 * config/arm/arm.c (callee_saved_reg_p): Move before
1448 thumb_find_work_register.
1449 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
1450 thumb_find_work_register. Only call df_get_live_out once.
1451 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
1452 (thumb_find_work_register): Use
1453 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
1454 algorithms to locate a spare call clobbered reg.
1456 2019-05-09 Martin Liska <mliska@suse.cz>
1458 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
1459 and MAX_EXPR in GIMPLE FE format.
1461 2019-05-09 Martin Liska <mliska@suse.cz>
1463 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
1464 * gimple-pretty-print.c (dump_gimple_bb_header):
1466 (pp_cfg_jump): Dump edge probability.
1467 * profile-count.c (profile_quality_as_string): Simplify
1468 with a static array.
1469 (parse_profile_quality): New function.
1470 (profile_count::dump): Simplify with a static array.
1471 (profile_count::from_gcov_type): Add new argument.
1472 * profile-count.h (parse_profile_quality): Likewise.
1473 * predict.h (set_hot_bb_threshold): New.
1474 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
1476 * predict.c (get_hot_bb_threshold): Set from the new param.
1477 (set_hot_bb_threshold): New.
1479 2019-05-09 Richard Biener <rguenther@suse.de>
1481 PR tree-optimization/90395
1482 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
1483 rewrite vector stores that throw internally.
1485 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
1487 * cif-code.def (CHKP): Remove.
1490 * configure.ac (--enable-frame-pointer): Disable by default for
1492 * configure: Regenerate.
1494 2019-05-09 Alan Modra <amodra@gmail.com>
1497 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
1498 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
1499 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
1500 cost for general <-> vsx when direct moves are available.
1501 Cost union classes at minimal cost for any reg in the class.
1502 Correct calculation for moves between vsx, float, and altivec.
1503 Don't return a low cost for moves between special regs. Don't
1504 use hard coded register numbers.
1505 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
1506 (rs6000_ira_change_pseudo_allocno_class): New function.
1507 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
1508 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
1510 (movsi_internal1): Don't disparage vector alternatives.
1511 (mov<mode>_internal): Likewise, excepting alternative that
1513 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
1514 we <- b alternative.
1516 2019-05-08 Jakub Jelinek <jakub@redhat.com>
1519 PR tree-optimization/89060
1520 * tree-ssa-live.h (live_vars_map): New typedef.
1521 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
1522 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
1523 (struct compute_live_vars_data): New type.
1524 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
1525 live_vars_at_stmt, destroy_live_vars): New functions.
1526 * tree-tailcall.c: Include tree-ssa-live.h.
1527 (live_vars, live_vars_vec): New global variables.
1528 (find_tail_calls): Perform variable life analysis before punting.
1529 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
1530 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
1532 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
1533 Perform variable life analysis to select variables that really need
1535 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
1536 instead set id->eh_landing_pad_dest and assert it is the same.
1537 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
1539 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
1540 Richard Earnshaw <rearnsha@arm.com>
1543 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
1545 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
1546 (thumb1_compute_save_core_reg_mask): Don't force a spare work
1547 register if both the epilogue and prologue can use call-clobbered
1549 (thumb1_unexpanded_epilogue): Use
1550 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
1551 picking temporaries for restoring high regs to match that of the
1552 prologue where possible.
1553 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
1554 the list of work registers. Detect if the return address is still live
1555 at the end of the prologue and avoid using it for a work register if so.
1556 If the return address is not live, add LR to the list of pushable regs
1557 after the first pass.
1559 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
1561 PR tree-optimization/90078
1562 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
1563 (INFTY): Increase the value for infinite cost.
1564 (struct comp_cost): Promote type of members to int64_t.
1565 (infinite_cost): Don't set complexity in initialization.
1566 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
1567 overflows to infinite_cost.
1568 (adjust_setup_cost): Promote type of parameter and cost computation
1570 (struct ainc_cost_data, struct iv_ca): Promote type of member to
1572 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
1573 cost computation to int64_t.
1574 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
1575 int64_t's format specifier in dump.
1577 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
1579 PR tree-optimization/90240
1580 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
1581 with respect to scaling factor pre-computed for each basic block.
1582 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
1583 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
1584 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
1585 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
1586 live range for array of loop's basic blocks. Cleanup aux field of
1587 loop's basic blocks.
1589 2019-05-08 Jakub Jelinek <jakub@redhat.com>
1591 PR tree-optimization/90356
1592 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
1594 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
1596 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
1597 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
1598 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
1599 (ix86_handle_option): Handle -mavx512bf16.
1600 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
1602 * config/i386/avx512bf16vlintrin.h: New.
1603 * config/i386/avx512bf16intrin.h: New.
1604 * config/i386/cpuid.h (bit_AVX512BF16): New.
1605 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
1606 * config/i386/i386-builtin-types.def: Add new types.
1607 * config/i386/i386-builtin.def: Add new builtins.
1608 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1610 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
1611 (ix86_option_override_internal): Handle BF16.
1612 (ix86_valid_target_attribute_inner_p): Ditto.
1613 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
1614 * config/i386/i386-builtin.c (enum processor_features): Add
1616 (static const _isa_names_table isa_names_table): Ditto.
1617 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
1618 (PTA_AVX512BF16): Ditto.
1619 * config/i386/i386.opt: Add -mavx512bf16.
1620 * config/i386/immintrin.h: Include avx512bf16intrin.h
1621 and avx512bf16vlintrin.h.
1622 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
1623 avx512f_cvtneps2bf16_<mode><mask_name>,
1624 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
1625 * config/i386/subst.md (mask_half): Add new subst.
1626 * doc/invoke.texi: Document -mavx512bf16.
1628 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
1630 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
1632 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
1633 (rs6000_debug_legitimize_reload_address): Delete.
1634 (rs6000_legitimize_reload_address_ptr): Delete.
1635 (rs6000_option_override_internal): Adjust.
1636 (mem_operand_gpr): Adjust comment.
1637 (legitimate_lo_sum_address_p): Ditto.
1638 (rs6000_legitimize_reload_address): Delete.
1639 (rs6000_debug_legitimize_reload_address): Delete.
1640 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
1642 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
1645 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1646 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
1647 to compute vector element selector for both constant and variable
1650 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
1652 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
1653 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
1654 ashrdi3_cvt using SWI48 mode iterator.
1656 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1658 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
1659 (aarch64_<su>abd<mode>_3): Likewise.
1660 (*aarch64_<su>abd<mode>_3): New define_insn.
1661 (<sur>sad<vsi2qi>): New define_expand.
1662 * config/aarch64/iterators.md: Added MAX_OPP attribute.
1663 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
1664 (build_vect_cond_expr): Likewise.
1666 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
1668 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
1669 clobbers outside of accessible_reg_set.
1670 * config/i386/i386.c (ix86_conditional_register_usage):
1671 Disable register sets by clearing corresponding bits in
1672 accessible_reg_set. Do not set corresponding bits in fixed_regs,
1673 call_used_regs and don't clear corresponding reg_names array members.
1675 2019-05-07 Richard Biener <rguenther@suse.de>
1677 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
1678 not specified still compute a comp_vectype for invariant
1681 2019-05-07 Richard Biener <rguenther@suse.de>
1683 PR tree-optimization/90316
1684 * tree-ssa-pre.c (translate_vuse_through_block): When
1685 same_valid is NULL do not bother to search for a virtual
1687 (phi_translate_1): When operands changed we cannot keep
1688 the same value-number so do not bother to ask whether
1689 that's possible from translate_vuse_through_block.
1691 2019-05-07 Martin Liska <mliska@suse.cz>
1693 * bitmap.c (bitmap_register): Come up with
1694 alloc_descriptor_max_uid and assign it for
1696 (register_overhead): Use get_descriptor as
1698 (release_overhead): New.
1699 (bitmap_elem_to_freelist): Call it.
1700 (bitmap_elt_clear_from): Likewise.
1701 (bitmap_obstack_free): Likewise.
1702 (bitmap_move): Sensitively release memory.
1703 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
1704 (bitmap_initialize): Initialize alloc_descriptor to zero.
1705 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
1707 2019-05-07 Richard Biener <rguenther@suse.de>
1709 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
1710 we build a SLP node. Remove max_size and limiting.
1711 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
1713 2019-05-07 Richard Biener <rguenther@suse.de>
1715 PR tree-optimization/90316
1716 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
1718 (walk_non_aliased_vuses): Take walking limit argument.
1719 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
1720 walking if it is reached instead of just counting.
1721 (get_continuation_for_phi): Likewise.
1722 (walk_non_aliased_vuses): Likewise, instead of leaving counter
1723 limiting to the callback.
1724 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
1725 (vn_reference_lookup_3): Likewise.
1726 (vn_reference_lookup_pieces): Likewise.
1727 (vn_reference_lookup): Likewise.
1728 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
1729 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
1730 (avail_exprs_stack::lookup_avail_expr): Likewise.
1732 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
1734 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
1735 for comparaible types in the second direction even if first one
1736 hits incomparable type.
1738 2019-05-07 Richard Biener <rguenther@suse.de>
1741 * lto-wrapper.c (debug_objcopy): Use the original filename
1742 including archive offset for the filename used for -save-temps.
1744 2019-05-07 Li Jia He <helijia@linux.ibm.com>
1746 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
1749 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1751 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
1752 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
1753 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
1754 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
1755 (FRAME_POINTER_REGNUM): Change numbering.
1756 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
1757 (alt_reg_names): Adjust.
1758 (rs6000_conditional_register_usage): Don't mark hard register 64 as
1760 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
1761 (DWARF_FRAME_REGISTERS): Delete.
1762 (DWARF2_FRAME_REG_OUT): Fix whitespace.
1763 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1765 (REG_ALLOC_ORDER): Adjust.
1766 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
1767 (REG_CLASS_CONTENTS): Adjust.
1768 (RETURN_ADDR_RTX): Change comment.
1769 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
1771 (REGISTER_NAMES): Adjust.
1772 (ADDITIONAL_REGISTER_NAMES): Adjust.
1773 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
1775 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1777 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
1779 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
1780 (DWARF_FRAME_REGISTERS): Adjust.
1781 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1783 (REG_ALLOC_ORDER): Adjust.
1784 (enum reg_class): Delete SPR_REGS.
1785 (REG_CLASS_NAMES): Delete SPR_REGS.
1786 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
1787 (REGISTER_NAMES): Adjust.
1788 (ADDITIONAL_REGISTER_NAMES): Adjust.
1789 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
1790 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
1791 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
1792 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
1793 (htm_spr_regno): Delete.
1794 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
1796 (rs6000_dbx_register_number): Adjust.
1798 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1800 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
1802 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1804 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
1805 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
1807 2019-05-06 Jakub Jelinek <jakub@redhat.com>
1809 PR tree-optimization/88709
1810 PR tree-optimization/90271
1811 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
1812 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
1813 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
1815 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
1816 of the store merging group is larger than
1817 PARAM_STORE_MERGING_MAX_SIZE parameter.
1818 (split_group): Add bzero_first argument. If set, always emit first
1819 the first store which must be = {} of the whole area and then for the
1820 rest of the stores consider all zero bytes as paddings.
1821 (imm_store_chain_info::output_merged_store): Check if first store
1822 is = {} of the whole area and if yes, determine which setting of
1823 bzero_first for split_group gives smaller number of stores. Adjust
1824 split_group callers.
1825 (lhs_valid_for_store_merging_p): Allow decls.
1826 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
1828 (pass_store_merging::process_store): Likewise.
1830 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
1833 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1834 handling of V1TImode.
1836 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
1839 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
1840 and enable_frame_pointer ...
1841 * configure.ac: ... here. Update help strings for
1842 --enable-frame-pointer.
1843 * configure: Regenerate.
1844 * config/i386/i386-options.c (ix86_option_override_internal): Remove
1845 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
1846 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
1847 (USE_X86_64_FRAME_POINTER): Ditto.
1849 2019-05-06 Martin Liska <mliska@suse.cz>
1851 * config.gcc: Append to target_gtfiles and fix indentation.
1853 2019-05-06 Richard Biener <rguenther@suse.de>
1855 PR tree-optimization/90358
1856 * tree-vect-stmts.c (get_group_load_store_type): Properly
1857 detect unused upper half of load.
1858 (vectorizable_load): Likewise.
1860 2019-05-06 Richard Biener <rguenther@suse.de>
1862 PR tree-optimization/88828
1863 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
1864 (simplify_vector_constructor): ...here. Handle constants in
1867 2019-05-06 Richard Biener <rguenther@suse.de>
1869 PR tree-optimization/90328
1870 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
1871 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
1872 is valid in the loop nest before using it.
1873 (initialize_data_dependence_relation): Adjust.
1874 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
1875 loop as loop-nest to dr_may_alias_p.
1877 2019-05-06 Richard Biener <rguenther@suse.de>
1879 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
1881 2019-05-06 Richard Biener <rguenther@suse.de>
1883 PR tree-optimization/90316
1884 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
1885 compute target on demand.
1886 (get_continuation_for_phi): Remove code walking stmts to
1887 get to a target virtual operand which could end up being
1890 2019-05-06 Martin Liska <mliska@suse.cz>
1893 * config/i386/i386-options.c (ix86_option_override_internal): Error only
1894 when -mabi is selected to a non-default version.
1896 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
1897 Martin Liska <mliska@suse.cz>
1899 * Makefile.in: Add lto-dump.texi.
1900 * cgraph.h: Add new functions get_visibility_string and
1901 get_symtab_type_string.
1902 * doc/gcc.texi: Include lto-dump section.
1903 * doc/lto-dump.texi: New file.
1904 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
1905 (parse_dump_option): Factor out this function.
1906 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
1907 (parse_dump_option): Export the function.
1908 * symtab.c (symtab_node::get_visibility_string): New function.
1909 (symtab_node::get_symtab_type_string): Likewise.
1911 2019-05-06 Martin Liska <mliska@suse.cz>
1913 * config/i386/i386-builtins.c: New file.
1914 * config/i386/i386-builtins.h: New file.
1915 * config/i386/i386-expand.c: New file.
1916 * config/i386/i386-expand.h: New file.
1917 * config/i386/i386-features.c: New file.
1918 * config/i386/i386-features.h: New file.
1919 * config/i386/i386-options.c: New file.
1920 * config/i386/i386-options.h: New file.
1921 * config.gcc: Add new files into extra_objs and
1923 * config/i386/i386.c: Split content of the file
1924 into newly introduced files.
1925 * config/i386/i386.h: Declare common variables
1927 * config/i386/t-i386: Define dependencies for new files.
1930 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
1933 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
1934 Restrict 'all' variant to 32-bit configurations.
1935 (unaligned_loadhiu): Likewise.
1936 (unaligned_storehi): Likewise.
1937 (unaligned_storesi): Likewise.
1938 (unaligned_loadhis): Disable when compiling for thumb1.
1940 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
1942 PR tree-optimization/90269
1943 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
1946 2019-05-03 Martin Liska <mliska@suse.cz>
1948 * hash-map.h: Add is_empty function.
1949 * hash-set.h: Likewise.
1950 * hash-table.h: Likewise.
1951 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
1952 elements () == 0 (and similar usages).
1953 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
1954 * gimplify.c (gimplify_bind_expr): Likewise.
1955 (gimplify_switch_expr): Likewise.
1956 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
1957 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
1958 * postreload-gcse.c (dump_hash_table): Likewise.
1959 (gcse_after_reload_main): Likewise.
1960 * predict.c (combine_predictions_for_bb): Likewise.
1961 * tree-parloops.c (reduction_phi): Likewise.
1962 (separate_decls_in_region): Likewise.
1963 (transform_to_exit_first_loop): Likewise.
1964 (gen_parallel_loop): Likewise.
1965 (gather_scalar_reductions): Likewise.
1966 (try_create_reduction_list): Likewise.
1967 * var-tracking.c (dump_vars): Likewise.
1968 (emit_notes_for_changes): Likewise.
1969 (vt_emit_notes): Likewise.
1971 2019-05-03 Richard Biener <rguenther@suse.de>
1973 PR tree-optimization/90316
1974 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
1977 2019-05-03 Richard Biener <rguenther@suse.de>
1979 * tree-vect-stmts.c (get_group_load_store_type): Avoid
1980 peeling for gaps by loading only lower halves of vectors
1982 (vectorizable_load): Likewise.
1984 2019-05-03 Richard Biener <rguenther@suse.de>
1987 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
1989 2019-05-03 Richard Biener <rguenther@suse.de>
1992 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
1993 Handle STRING_CST vs DECL or STRING_CST.
1995 2019-05-03 Richard Biener <rguenther@suse.de>
1997 PR tree-optimization/88963
1998 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
1999 vector loads feeding only BIT_FIELD_REFs to component
2000 loads. Rewrite stores fed by CONSTRUCTORs to component
2003 2019-05-03 Jakub Jelinek <jakub@redhat.com>
2005 * opts.h (finish_options): Remove lang_mask argument.
2006 (print_help, help_option_argument): Declare.
2007 * opts.c (print_help): Remove forward declaration, no longer static.
2008 (finish_options): Remove lang_mask argument, don't call print_help
2010 * opts-global.c (decode_options): Adjust finish_option caller, call
2013 PR tree-optimization/90303
2014 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
2015 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
2017 2019-05-03 Richard Biener <rguenther@suse.de>
2019 PR tree-optimization/89698
2020 * gimple-fold.c (canonicalize_constructor_val): Early out
2021 for constants, handle unfolded INTEGER_CSTs as they appear in
2022 C++ virtual table ctors.
2024 2019-05-03 Richard Biener <rguenther@suse.de>
2026 * passes.c (execute_function_todo): Remove dead code.
2028 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
2030 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
2031 the internal register number, for any "real" register.
2033 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
2035 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
2036 correct numbers for TFHAR, TFIAR, TEXASR.
2038 2019-05-02 Richard Biener <rguenther@suse.de>
2040 PR tree-optimization/89653
2041 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
2042 update-address-taken before the pass.
2043 * passes.def (pass_tree_loop_init): Put comment before it.
2045 2019-05-02 Richard Biener <rguenther@suse.de>
2047 PR tree-optimization/89509
2048 * tree-ssa-structalias.c (compute_dependence_clique): Look
2049 at the first subvar when determining whether it is restrict.
2051 2019-05-02 Richard Biener <rguenther@suse.de>
2053 PR tree-optimization/90273
2054 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
2055 useless debug stmts.
2057 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
2059 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
2061 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
2063 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
2064 VEC_COND_EXPR be inserted to emulate a conditional internal function.
2065 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
2066 (vectorizable_reduction): Use the functions above to vectorize in a
2067 fully masked loop codes that don't have a conditional internal
2070 2019-05-02 Martin Liska <mliska@suse.cz>
2072 * cgraphclones.c: Call valid_attribute_p with 1 for
2074 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
2075 it's for target attribute.
2076 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
2077 Add new boolean argument.
2078 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2080 (ix86_valid_target_attribute_tree): Pass target_clone_attr
2081 to ix86_valid_target_attribute_inner_p.
2082 (ix86_valid_target_attribute_p): Pass flags argument to
2083 ix86_valid_target_attribute_inner_p.
2084 (get_builtin_code_for_version): Use 0 as it's target attribute.
2086 2019-05-02 Martin Liska <mliska@suse.cz>
2088 * gcc.c (process_command): Add dummy file only
2090 * opts-global.c (decode_options): Pass lang_mask.
2091 * opts.c (print_help): New function.
2092 (finish_options): Print --help if help_option_argument
2094 (common_handle_option): Factor out content of OPT__help_
2096 * opts.h (finish_options): Add new argument.
2098 2019-05-02 Martin Liska <mliska@suse.cz>
2101 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
2102 With -minline-all-stringops use inline expansion using 4B loop.
2103 * doc/invoke.texi: Document the change of
2104 -minline-all-stringops.
2106 2019-05-01 Jeff Law <law@redhat.com>
2108 PR tree-optimization/88797
2109 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
2110 PHI feeds a conditional on the RHS of an assignment.
2112 2019-04-30 Andrew Waterman <andrew@sifive.com>
2113 Jim Wilson <jimw@sifive.com>
2115 * config/riscv/constraints.md (L): New.
2116 * config/riscv/predicates.md (lui_operand): New.
2117 (sfb_alu_operand): New.
2118 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
2119 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
2120 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
2121 * config/riscv/risc.md (type): Add sfb_alu.
2122 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
2123 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
2124 (branch_zero<mode>): Delete.
2126 (mov<GPR:mode><X:mode>cc): Likewise.
2127 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
2129 2019-04-30 Nathan Sidwell <nathan@acm.org>
2131 * tree.h (MARK_TS_EXP): New.
2133 2019-04-30 Martin Liska <mliska@suse.cz>
2135 * opts.c (enable_warning_as_error): Provide hints
2136 for unknown options.
2138 2019-04-30 Martin Liska <mliska@suse.cz>
2141 * doc/invoke.texi: Add missing dash for gas-locview-support
2142 and gno-as-locview-support.
2144 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2147 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
2148 whitespace at the start of target attribute string.
2150 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2153 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
2154 Define __ARM_FEATURE_ATOMICS.
2156 2019-04-30 Martin Liska <mliska@suse.cz>
2158 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
2159 into built_in_function enum. Remove code for endp == 2 and
2160 use BUILT_IN_* constants.
2161 (gimple_fold_builtin): Call the function with fcode.
2163 2019-04-30 Martin Liska <mliska@suse.cz>
2165 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
2166 DECL_FUNCTION_CODE into ix86_builtins enum before
2167 the switch statement.
2169 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2171 PR tree-optimization/89475
2172 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
2175 2019-04-30 Martin Liska <mliska@suse.cz>
2177 PR translation/90274
2178 * opts.c (print_filtered_help): Wrap string in _(...).
2180 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
2182 PR tree-optimization/90240
2184 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2186 PR tree-optimization/90078
2187 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
2188 checks for infinite_cost overflow.
2190 2019-04-29 Jeff Law <law@redhat.com>
2192 * passes.def: Move -Wrestrict pass after copy propagation.
2194 2019-04-29 Maya Rashish <coypu@sdf.org>
2196 * config.gcc (default_gnu_indirect_function): Default to yes
2197 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
2198 sparc*-*-netbsd*, x86_64-*-netbsd*.
2200 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
2202 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
2203 where cond2 is NE_EXPR.
2204 (is_value_included_in): Update comment.
2206 2019-04-29 Richard Biener <rguenther@suse.de>
2208 PR tree-optimization/90278
2209 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
2210 EH on comparison simplification.
2212 2019-04-29 Jason Merrill <jason@redhat.com>
2214 PR c++/82081 - tail call optimization breaks noexcept
2215 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
2216 nothrow function to a might-throw function into a tail call.
2218 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
2220 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
2221 (DDR_INNER_LOOP): Likewise.
2222 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
2223 (initialize_data_dependence_relation): Likewise.
2224 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
2226 2019-04-29 Jakub Jelinek <jakub@redhat.com>
2228 PR rtl-optimization/90257
2229 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
2233 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
2237 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
2240 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
2243 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
2245 * lra-spills.c (lra_final_code_change): Remove useless move insns.
2247 2019-04-29 Richard Biener <rguenther@suse.de>
2249 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
2252 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
2254 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
2255 varasm.h, and netbsd-protos.h.
2257 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
2260 * config/i386/i386-protos.h (ix86_data_alignment): Change
2261 the second argument type to unsigned int.
2262 * config/i386/i386.c (ix86_data_alignment): Change "align"
2263 argument type to unsigned int.
2265 2019-04-27 Martin Liska <mliska@suse.cz>
2268 * opt-suggestions.c (option_proposer::build_option_suggestions):
2269 When get_valid_option_values returns empty values, add the
2270 misspelling candidate.
2272 2019-04-26 Jim Wilson <jimw@sifive.com>
2274 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
2276 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
2277 Pass orig_mode to riscv_build_integer.
2278 (riscv_split_integer): Pass mode to riscv_move_integer.
2279 (riscv_legitimize_const_move): Likewise.
2280 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
2281 promoted_mode. Replace force_reg call with code to load constant into
2282 promoted reg and then subreg it for the store.
2283 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
2286 2018-04-26 Eugene Sharygin <eush@ispras.ru>
2288 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
2291 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
2293 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
2294 commentary about the encoding of precision.
2296 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
2298 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
2299 * config/i386/t-freebsd64: New file.
2300 * config.gcc: Add the t-freebsd64 for multilib support.
2302 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
2304 * doc/extend.texi (vector_size): Add missing comma after @xref.
2306 2019-04-25 Jakub Jelinek <jakub@redhat.com>
2308 * BASE-VER: Set to 10.0.0.
2310 2019-04-25 Richard Biener <rguenther@suse.de>
2313 * gimplify.c (gimplify_expr): Avoid turning a lvalue
2314 VIEW_CONVERT_EXPR into one operating on an rvalue.
2316 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
2319 * config/i386/i386.c (feature_priority): Moved to file scope.
2320 (processor_features): Likewise.
2321 (processor_model): Likewise.
2322 (_arch_names_table): Likewise.
2323 (arch_names_table): Likewise.
2324 (_feature_list): Removed.
2325 (feature_list): Likewise.
2326 (_isa_names_table): Moved to file scope. Add priority.
2327 (isa_names_table): Likewise.
2328 (get_builtin_code_for_version): Replace feature_list with
2329 isa_names_table. Update error message for P_ZERO priority.
2331 2019-04-25 Richard Biener <rguenther@suse.de>
2333 * tree-pass.h (make_pass_phi_only_cprop): Remove.
2334 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
2336 2019-04-24 Jeff Law <law@redhat.com>
2338 PR tree-optimization/90037
2339 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
2340 * passes.def: Replace all instance of phi-only cprop with the
2341 lattice propagator. Move propagation pass from after erroneous
2342 path isolation to before erroneous path isolation.
2343 * tree-ssa-phionlycprop.c: Remove.
2345 2019-04-24 Richard Biener <rguenther@suse.de>
2348 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
2349 by size and BITS_PER_UNIT on poly-wide-ints.
2351 2019-04-25 Richard Biener <rguenther@suse.de>
2354 * match.pd: Add pattern to simplify view-conversion of an
2357 2019-04-24 Clement Chigot <clement.chigot@atos.net>
2359 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
2360 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
2361 for Go on 32 bit AIX.
2362 * config/rs6000/aix72.h: Likewise.
2364 2019-04-24 Jakub Jelinek <jakub@redhat.com>
2367 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
2368 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
2370 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
2373 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
2374 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
2375 for restored hard frame pointer.
2376 (s390_sched_dependencies_evaluation): Implement new target hook.
2377 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
2379 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
2381 * config/arc/arc-options.def: Fix typos and spelling mistakes.
2382 * config/arc/arc.c (arc_init): Cleanup warning message.
2383 (arc_override_options): Likewise.
2385 2019-04-24 Jakub Jelinek <jakub@redhat.com>
2388 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
2389 a register if both if_true and if_false are MEMs.
2391 PR tree-optimization/90208
2392 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
2393 after labels of new_bb, not before them.
2395 PR tree-optimization/90211
2396 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
2397 which are not SSA_NAMEs.
2399 2018-04-23 Sudakshina Das <sudi.das@arm.com>
2401 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
2403 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
2405 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
2407 PR rtl-optimization/87979
2408 * modulo-sched.c (sms_schedule): Start ii value "mii" should
2411 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
2413 PR rtl-optimization/84032
2414 * modulo-sched.c (ps_insn_find_column): Change condition so that
2415 branch will always be the last insn in a row inside partial
2418 2019-04-23 Richard Biener <rguenther@suse.de>
2421 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
2422 dest_single_pred_p argument.
2423 (remove_forwarder_block): Adjust.
2424 (remove_forwarder_block_with_phi): Likewise.
2426 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2427 Bernd Edlinger <bernd.edlinger@hotmail.de>
2428 Jakub Jelinek <jakub@redhat.com>
2431 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
2432 if used with general-regs-only.
2433 (arm_conditional_register_usage): Don't add non-general regs if
2435 (arm_valid_target_attribute_rec): Handle general-regs-only.
2436 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
2438 (TARGET_HARD_FLOAT_SUB): Define.
2439 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
2440 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
2441 (TARGET_REALLY_IWMMXT2): Likewise.
2442 * config/arm/arm.opt: Add -mgeneral-regs-only.
2443 * doc/extend.texi: Document ARM general-regs-only target.
2444 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
2446 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2448 PR tree-optimization/90078
2449 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
2450 checks for infinite_cost overflow.
2452 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2454 PR tree-optimization/90021
2455 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
2456 and check univariate against it.
2457 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
2458 * tree-data-ref.c (add_other_self_distances): Pass new argument.
2460 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
2464 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
2467 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
2470 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
2472 * lra-spills.c (lra_final_code_change): Remove useless move insns.
2474 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
2476 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
2477 names using operand format, rather than hard-wired.
2478 (speculation_barrier): Likewise.
2480 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
2482 PR tree-optimization/88055
2483 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
2484 (gen_one_condition): Use it if !HONOR_NANS.
2486 2019-04-19 Jakub Jelinek <jakub@redhat.com>
2489 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
2490 assign_temp instead of gen_reg_rtx.
2492 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
2494 PR translation/90118
2495 * config/aarch64/aarch64.c (aarch64_override_options_internal):
2496 Add missing space before %<.
2498 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
2500 PR rtl-optimization/87871
2501 * ira-lives.c (make_object_dead): Don't add conflicts to
2502 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
2504 2019-04-18 Martin Sebor <msebor@redhat.com>
2507 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
2508 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
2509 assuming type size fits in SHWI.
2511 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
2514 * ipa-inline.c (flatten_function): New parameter UPDATE.
2515 (ipa_inline, early_inliner): Use it.
2517 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
2519 * fold-const.c (int_const_binop): Return early on failure.
2521 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
2524 * combine.c (force_int_to_mode): Cast the argument rather than
2525 the result of known_alignment.
2526 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
2528 2019-04-18 Richard Biener <rguenther@suse.de>
2531 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
2533 (remove_forwarder_block): ... here.
2534 (remove_forwarder_block_with_phi): Also move debug stmts here.
2536 2019-04-18 Jakub Jelinek <jakub@redhat.com>
2538 PR translation/79183
2539 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
2540 inform where appropriate.
2542 2019-04-18 Richard Biener <rguenther@suse.de>
2544 * tree.c (get_qualified_type): Put found type variants at the
2545 head of the variant list.
2547 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2549 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
2551 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
2554 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
2555 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
2556 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
2557 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
2558 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
2560 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
2562 * ira-conflicts.c (print_allocno_conflicts): Always print something,
2563 even for allocno's with no conflicts.
2564 (print_conflicts): Print an extra newline.
2566 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2568 * auto-inc-dec.c (attempt_change): Set the alignment of the
2569 temporary memory to that of the original.
2571 2019-04-17 Joao Moreira <jmoreira@suse.de>
2573 * targhooks.c (default_print_patchable_function_entry): Emit
2574 __patchable_function_entries section with writable flags to allow
2575 relocation resolution.
2577 2019-04-17 Jonny Grant <jg@jguk.org>
2579 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
2581 2019-04-17 Jakub Jelinek <jakub@redhat.com>
2584 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
2587 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
2589 * config/arc/arc.c (arc_init): Format diagnostic string.
2590 (arc_override_options): Likewise.
2591 (check_if_valid_regno_const): Likewise.
2592 (arc_reorg): Likewise.
2594 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2597 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
2599 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
2601 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
2602 (*movdi_update1): Use Pmode.
2603 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
2604 (movdi_<mode>_update_stack): Rename to ...
2605 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
2607 (*movsi_update1): Use Pmode.
2608 (*movsi_update2): Use Pmode.
2609 (movsi_update): Rename to ...
2610 (movsi_<mode>_update): ... this. Use Pmode.
2611 (movsi_update_stack): Fix condition.
2612 (*movhi_update1): Use Pmode. Fix argument to
2613 avoiding_indexed_address_p.
2614 (*movhi_update2): Ditto.
2615 (*movhi_update3): Ditto.
2616 (*movhi_update4): Ditto.
2617 (*movqi_update1): Ditto.
2618 (*movqi_update2): Ditto.
2619 (*movqi_update3): Ditto.
2620 (*movsf_update1, *movdf_update1): Merge, rename to...
2621 (*mov<mode>_update1): This. Use Pmode. Fix argument to
2622 avoiding_indexed_address_p. Add "size" attribute.
2623 (*movsf_update2, *movdf_update2): Merge, rename to...
2624 (*mov<mode>_update2): This. Ditto.
2625 (*movsf_update3): Use Pmode. Fix argument to
2626 avoiding_indexed_address_p.
2627 (*movsf_update4): Ditto.
2628 (allocate_stack): Simplify condition. Adjust pattern names.
2630 2019-04-17 Jakub Jelinek <jakub@redhat.com>
2633 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
2634 whitespace at the start of target attribute string.
2636 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
2639 * config/rs6000/power9.md: Add store forwarding bypass.
2641 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
2644 * valtrack.c (dead_debug_insert_temp): Reset debug references
2645 to the return value of a call being removed.
2647 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2649 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
2650 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
2651 implement target hook.
2652 (arc_memory_move_cost): New function.
2653 (TARGET_REGISTER_MOVE_COST): Define.
2654 (TARGET_MEMORY_MOVE_COST): Likewise.
2655 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
2656 (MEMORY_MOVE_COST): Likewise.
2658 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2660 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
2661 (sibcall_value_insn): Likewise.
2662 * config/arc/constraints.md (Rs5): Remove.
2664 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2666 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
2667 for last two fake registers.
2668 (arc_conditional_register_usage): Make sure fake frame and arg
2669 pointer regs are in general regs class.
2670 (FRAME_POINTER_MASK): Remove.
2671 (RETURN_ADDR_MASK): Remove.
2672 (arc_must_save_register): Use hard frame regnum.
2673 (frame_restore_reg): Use hard_frame_pointer_rtx.
2674 (arc_save_callee_saves): Likewise.
2675 (arc_restore_callee_saves): Likewise.
2676 (arc_save_callee_enter): Likewise.
2677 (arc_restore_callee_leave): Likewise.
2678 (arc_save_callee_milli): Likewise.
2679 (arc_eh_return_address_location): Likewise.
2680 (arc_check_multi): Use hard frame regnum.
2681 (arc_can_eliminate): Likewise.
2682 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
2683 for register allocator.
2684 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
2685 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
2686 (FRAME_POINTER_REGNUM): Change it to a fake register.
2687 (HARD_FRAME_POINTER_REGNUM): Defined.
2688 (ARG_POINTER_REGNUM): Change it to a new fake register.
2689 (ELIMINABLE_REGS): Update.
2690 (REGISTER_NAMES): Update names.
2691 * config/arc/arc.md (LP_START): Remove.
2693 (shift_si3_loop): Update pattern.
2695 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2697 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
2698 to avoid delay slot scheduling.
2699 (arc_must_save_register): Don't save SP.
2700 * config/arc/arc.md (stack_tie): Remove.
2701 (UNSPEC_ARC_STKTIE): Likewise.
2703 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
2704 Shiva Chen <shiva0217@gmail.com>
2706 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
2707 code gen with large shift amount.
2709 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
2711 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
2714 2019-04-16 Jakub Jelinek <jakub@redhat.com>
2717 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
2718 print -m64/-mx32/-m32 if it is true.
2719 (ix86_debug_options, ix86_function_specific_print): Pass true as
2720 ADD_ABI_P to ix86_target_string.
2721 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
2722 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
2723 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
2725 PR rtl-optimization/90082
2726 * dce.c (can_delete_call): New function.
2727 (deletable_insn_p, mark_insn): Use it.
2729 PR tree-optimization/90090
2730 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
2732 (is_division_by_square): Likewise. Formatting fix.
2734 2019-04-16 Richard Biener <rguenther@suse.de>
2736 PR tree-optimization/56049
2737 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
2738 equality check if alias-set zero will prevail.
2740 2019-04-15 Jeff Law <law@redhat.com>
2742 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
2743 size and alignment as unsigned.
2745 2019-04-15 Richard Biener <rguenther@suse.de>
2748 * tree-loop-distribution.c (destroy_loop): Preserve correct
2751 2019-04-15 Richard Biener <rguenther@suse.de>
2753 PR tree-optimization/90071
2754 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
2755 abnormal operands from def stmts.
2757 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
2759 PR rtl-optimization/89794
2760 * combine.c (count_auto_inc): New function.
2761 (try_combine): Count how many auto_inc expressions there were in the
2762 original instructions. Ensure we have the same number in the new
2763 instructions. Remove the code that tried to ensure auto_inc side
2764 effects on i1 and i0 are not lost.
2766 2019-04-15 Richard Biener <rguenther@suse.de>
2769 * tree.h (auto_var_p): Declare.
2770 * tree.c (auto_var_p): New function, split out from ...
2771 (auto_var_in_fn_p): ... here.
2772 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
2774 (new_var_info): Initialize it.
2775 (set_uids_in_ptset): Also set the shadow variable uid if required.
2776 (ipa_pta_execute): Postprocess points-to solutions assigning
2777 shadow variable uids for locals that may reach their containing
2778 function recursively.
2779 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
2780 assert but instead check whether the points-to solution is
2783 2019-04-15 Martin Jambor <mjambor@suse.cz>
2786 * cgraph.c (clone_of_p): Loop over clone chain for each step in
2789 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
2791 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
2793 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
2794 Kito Cheng <kito.cheng@gmail.com>
2795 Shiva Chen <shiva0217@gmail.com>
2797 * config/nds32/nds32-md-auxiliary.c
2798 (nds32_legitimize_pic_address): Use new PIC pattern.
2799 (nds32_legitimize_tls_address): Use new TLS pattern.
2800 (nds32_output_symrel): New.
2801 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
2802 (nds32_alloc_relax_group_id): Ditto.
2803 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
2804 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
2806 (nds32_group_tls_insn): Ditto.
2807 (nds32_group_float_insns): Ditto.
2808 * config/nds32/nds32.md (tls_le): New.
2811 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
2813 * configure: Add nds32 target for dwarf2 debug_line checking.
2814 * configure.ac: Regenerated.
2816 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
2819 * ipa-devirt.c (skip_in_fields_list_p): New.
2820 (odr_types_equivalent_p): Use it.
2822 2019-04-13 Jakub Jelinek <jakub@redhat.com>
2825 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
2826 instead of strncmp when checking for thumb and arm. Formatting fixes.
2828 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
2830 * doc/install.texi: Document --with-target-system-zlib.
2832 2019-04-12 Martin Sebor <msebor@redhat.com>
2838 * targhooks.c (default_vector_alignment): Avoid assuming
2839 argument fits in SHWI.
2840 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
2842 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
2844 2019-04-12 Jakub Jelinek <jakub@redhat.com>
2846 PR rtl-optimization/89965
2847 * dce.c: Include rtl-iter.h.
2848 (struct check_argument_load_data): New type.
2849 (check_argument_load): New function.
2850 (find_call_stack_args): Check for loads from stack slots still tracked
2851 in sp_bytes and punt if any is found.
2853 * config/mips/loongson-mmiintrin.h: Fix up #error message.
2855 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
2857 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
2858 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
2860 2019-04-12 Martin Liska <mliska@suse.cz>
2863 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
2865 (separate_attrs): Handle multiple 'default's.
2866 (expand_target_clones): Rework error handling code.
2868 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
2871 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
2872 mode of vector rather than mode of destination for move instruction.
2873 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
2874 Use QI inner mode with V16QI vector mode.
2876 2019-04-12 Jakub Jelinek <jakub@redhat.com>
2879 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
2880 "invalid %%t operand" in output_operand_lossage message.
2882 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
2884 * config/s390/predicates.md (permute_pattern_operand): New
2886 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
2887 operand for the permute pattern.
2888 ("*vec_perm<mode>"): New insn definition.
2889 ("bswap<mode>"): Generate the permute pattern operand in the
2890 expander and perform the operand reloads for pre arch13 level
2892 ("*bswap<mode>_emu"): Rename to ...
2893 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
2894 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
2895 Add the USE operand for the permute pattern.
2896 ("*vec_set_bswap_vec<mode>"): Likewise.
2898 2019-04-12 Jakub Jelinek <jakub@redhat.com>
2901 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
2902 and gcc_unreachable if it fails, just call tree_to_uhwi which
2903 verifies that too. Test TREE_CHAIN instead of list_length > 1.
2904 Start warning message with a lower-case letter. Formatting fixes.
2906 PR rtl-optimization/90026
2907 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
2908 successors, look for BARRIERs inside of the whole BB_FOOTER chain
2909 rather than just at the start of it. If e->src BB_FOOTER is not NULL
2910 in cfglayout mode, use emit_barrier_after_bb.
2912 2018-04-11 Steve Ellcey <sellcey@marvell.com>
2914 PR rtl-optimization/87763
2915 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
2918 2019-04-11 Tom de Vries <tdevries@suse.de>
2920 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
2921 max macro using statement expression.
2923 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
2925 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
2926 * xcoffout.c (xcoff_private_rodata_section_name): Define.
2927 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
2928 read_only_private_data_section using xcoff_private_rodata_section_name.
2929 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
2931 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
2934 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
2936 2019-04-11 Jakub Jelinek <jakub@redhat.com>
2938 PR rtl-optimization/89965
2939 * dce.c (sp_based_mem_offset): New function.
2940 (find_call_stack_args): Use sp_based_mem_offset.
2942 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
2944 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
2946 2019-04-11 Richard Biener <rguenther@suse.de>
2948 PR tree-optimization/90020
2949 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
2950 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
2951 * tree-ssa-pre.c (compute_avail): Use it to not put
2952 possibly trapping references after a call that might not
2953 return into EXP_GEN.
2954 * gcse.c (compute_hash_table_work): Do not elide
2955 marking a block containing a call if the call might not
2958 2019-04-11 Richard Biener <rguenther@suse.de>
2960 PR tree-optimization/90018
2961 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
2962 Test both SLP and interleaving variants.
2964 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
2966 * config/s390/8561.md: New file.
2967 * config/s390/driver-native.c (s390_host_detect_local_cpu):
2968 Add arch13 cpu model.
2969 * config/s390/s390-opts.h (enum processor_type): Likewise.
2970 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
2971 (s390_get_unit_mask): Likewise.
2972 (s390_is_fpd): Likewise.
2973 (s390_is_fxd): Likewise.
2974 * config/s390/s390.h (s390_tune_attr): Likewise.
2975 * config/s390/s390.md: Include arch13 pipeline description.
2976 * config/s390/s390.opt: Add arch13.
2978 2018-04-10 Steve Ellcey <sellcey@marvell.com>
2980 PR rtl-optimization/87763
2981 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
2983 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
2985 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
2987 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
2988 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
2989 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
2990 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
2992 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
2994 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
2995 "Although" in -fipa-icf documentation.
2997 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
2998 of using multiple -g options.
3000 2019-04-10 Martin Liska <mliska@suse.cz>
3002 PR gcov-profile/89959
3003 * doc/gcov.texi: Make documentation of -x option
3006 2019-04-10 Richard Biener <rguenther@suse.de>
3008 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
3010 (DR_GROUP_SAME_DR_STMT): Remove.
3011 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
3012 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
3013 replace with assert.
3014 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
3015 (vect_record_grouped_load_vectors): Remove unreachable code.
3017 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
3020 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
3021 obsolete reference to N.
3023 2019-04-10 Jakub Jelinek <jakub@redhat.com>
3026 * expr.c (store_expr): Set properly size on the MEM passed to
3030 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
3031 with strlen in between hostsz-3 and hostsz-1 inclusive when no
3032 translation is needed, and when translation is needed, only append
3033 ... if the string length is hostsz or more bytes long. Avoid using
3036 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
3039 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
3040 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
3042 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
3043 differences directly.
3044 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
3046 2019-04-09 Jakub Jelinek <jakub@redhat.com>
3048 PR translation/90011
3049 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
3051 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
3053 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
3054 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
3055 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
3056 trailing space from -gsplit-dwarf diagnostics.
3058 PR tree-optimization/89998
3059 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
3060 instead of integer_type_node if possible, don't add ranges if return
3061 type is not compatible with int.
3062 * gimple-fold.c (gimple_fold_builtin_sprintf,
3063 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
3066 2019-04-09 Martin Liska <mliska@suse.cz>
3068 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
3069 * doc/install.texi: Document the new config.
3071 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
3073 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
3074 use gimple_expr_type for load and store calls. Skip over the
3075 condition argument in a conditional internal function.
3076 Protect use of TREE_INT_CST_LOW.
3078 2019-04-09 Jakub Jelinek <jakub@redhat.com>
3081 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
3082 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
3083 trailing period from it too.
3085 2019-04-08 wu yuan <wuyuan5@huawei.com>
3087 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
3088 * config/aarch64/aarch64.md : Add "tsv110.md"
3089 * config/aarch64/tsv110.md: New file.
3091 2019-04-08 Richard Biener <rguenther@suse.de>
3093 PR tree-optimization/90006
3094 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
3097 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
3100 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
3102 (fma_root_node): Likewise.
3103 (func_fma_steering): Likewise.
3105 2019-04-08 Jakub Jelinek <jakub@redhat.com>
3107 PR rtl-optimization/89865
3108 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
3110 PR rtl-optimization/89865
3111 * config/i386/i386.md
3112 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
3113 numbers not to clash with the additional operands[4].
3114 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
3115 with extra register copy in the middle.
3117 2019-04-08 Martin Liska <mliska@suse.cz>
3119 PR gcov-profile/89961
3120 * doc/gcov.texi: Document data_file.
3121 * gcov.c (generate_results): Add data_info into JSON output.
3123 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
3125 PR tree-optimization/89725
3126 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
3127 loop's chrec as invariant symbol.
3128 * tree-chrec.h (chrec_contains_symbols): New parameter.
3129 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
3130 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
3131 function of loops not in DDR's loop_nest.
3132 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
3134 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
3137 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
3140 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
3143 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
3144 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
3146 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
3148 * sched-deps.c (sched_macro_fuse_insns): Check return value of
3149 targetm.fixed_condition_code_regs.
3151 2019-04-05 Richard Biener <rguenther@suse.de>
3155 * tree-cfgcleanup.c (remove_forwarder_block): Always move
3156 debug bind stmts but reset them if they are not valid at the
3159 2019-04-05 Martin Liska <mliska@suse.cz>
3161 PR translation/89936
3162 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
3163 order to wrap keywords or arguments.
3164 * collect2.c (main): Likewise.
3165 (scan_prog_file): Likewise.
3166 (scan_libraries): Likewise.
3167 * common/config/riscv/riscv-common.c
3168 (riscv_subset_list::parsing_subset_version): Likewise.
3169 (riscv_subset_list::parse_std_ext): Likewise.
3170 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3172 * config/arm/arm.c (arm_option_override): Likewise.
3173 * config/cris/cris.c (cris_print_operand): Likewise.
3174 * config/darwin-c.c (darwin_pragma_options): Likewise.
3175 (darwin_pragma_unused): Likewise.
3176 (darwin_pragma_ms_struct): Likewise.
3177 * config/ft32/ft32.c (ft32_print_operand): Likewise.
3178 * config/i386/i386.c (print_reg): Likewise.
3179 (ix86_print_operand): Likewise.
3180 * config/i386/xm-djgpp.h: Likewise.
3181 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
3182 * config/m32c/m32c.c (m32c_option_override): Likewise.
3183 * config/msp430/msp430.c (msp430_option_override): Likewise.
3184 * config/nds32/nds32.c (nds32_option_override): Likewise.
3185 * config/nvptx/mkoffload.c (main): Likewise.
3186 * config/rx/rx.c (rx_print_operand): Likewise.
3187 (valid_psw_flag): Likewise.
3188 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
3189 (vms_pragma_nomember_alignment): Likewise.
3190 (vms_pragma_extern_model): Likewise.
3191 * lto-wrapper.c (compile_offload_image): Likewise.
3192 * omp-offload.c (oacc_parse_default_dims): Likewise.
3193 * symtab.c (symtab_node::verify_base): Likewise.
3194 * tlink.c (recompile_files): Likewise.
3195 (start_tweaking): Likewise.
3196 * tree-profile.c (parse_profile_filter): Likewise.
3198 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
3200 PR tree-optimization/89956
3201 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
3202 multiple negates of the same value.
3204 2019-04-04 Martin Sebor <msebor@redhat.com>
3208 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
3209 have the same precision since the function crashes otherwise.
3210 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
3211 has non-zero arguments.
3213 2019-04-04 Martin Sebor <msebor@redhat.com>
3216 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
3217 out if the number of arguments is less than expected.
3219 2019-04-04 Jeff Law <law@redhat.com>
3221 PR rtl-optimization/89399
3222 * ree.c (combine_set_extension): Use single_set rather than
3223 digging into PATTERN for items on the candidate list.
3224 (combine_reaching_defs): Likewise.
3226 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
3228 PR rtl-optimization/46590
3229 * loop-invariant.c (find_defs): Move df_remove_problem and
3230 df_process_deferred_rescans to move_invariants.
3231 Move df_live_add_problem and df_live_set_all_dirty calls
3233 (move_invariants): Likewise.
3234 (move_loop_invariants): Likewise, making the df_live calls
3235 conditional on -O. Remove the problem again if we added it
3238 2019-04-03 qing zhao <qing.zhao@oracle.com>
3240 PR tree-optimization/89730
3241 * ipa-inline.c (can_inline_edge_p): Delete the checking for
3242 -flive-patching=inline-only-static.
3243 (can_inline_edge_by_limits_p): Add the checking for
3244 -flive-patching=inline-only-static and grant always_inline
3245 even when -flive-patching=inline-only-static is specified.
3247 2019-04-03 Jeff Law <law@redhat.com>
3249 PR rtl-optimization/81025
3250 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
3252 2019-04-03 Richard Biener <rguenther@suse.de>
3254 PR tree-optimization/84101
3255 * tree-vect-stmts.c: Include explow.h for hard_function_value,
3256 regs.h for hard_regno_nregs.
3257 (cfun_returns): New helper.
3258 (vect_model_store_cost): When vectorizing a store to a decl
3259 we return and the function ABI returns in a multi-reg location
3260 account for the possible spilling that will happen.
3262 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
3264 * config/s390/s390.c (s390_legitimate_address_p): Reject long
3265 displacement addresses for vector mode operands.
3267 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
3269 * config/arc/arc.c (GMASK_LEN): Define.
3270 (arc_restore_callee_saves): Restore first blink when
3273 2019-04-03 Sudakshina Das <sudi.das@arm.com>
3275 * doc/extend.texi: Add deprecated comment on sign-return-address
3276 function attribute and add mbranch-protection.
3277 * doc/invoke.texi: Add bti to the options for mbranch-protection.
3279 2019-04-03 Richard Biener <rguenther@suse.de>
3282 * lto-wrapper.c (run_gcc): Avoid implicit rules making
3283 the all target phony.
3285 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
3289 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
3290 Return false for variable DImode shifts.
3291 (dimode_scalar_chain::compute_convert_gain): Do not handle
3292 register count operand in variable DImode shifts.
3293 (dimode_scalar_chain::make_vector_copies): Remove support to copy
3294 count argument of a variable shift instruction to a vector register.
3295 (dimode_scalar_chain::convert_reg): Remove support to convert
3296 count argument of a variable shift instruction.
3298 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
3300 PR rtl-optimization/84206
3301 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
3302 iterating over loop headers.
3304 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
3306 PR rtl-optimization/85876
3307 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
3308 beyond the original fence.
3310 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
3312 * config.gcc: Mark spu* targets as deprecated/obsolete.
3314 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3316 * config/s390/s390-builtin-types.def: New builtin function type
3317 definitions. Remove unused types.
3318 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
3319 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
3320 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
3321 overloaded builtins.
3322 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
3323 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
3324 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
3325 (vec_double, vec_signed, vec_unsigned): Define to use the new
3326 overloaded builtins.
3327 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
3330 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3332 * config/s390/s390-builtin-types.def: New builtin function type
3334 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
3335 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
3336 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
3337 (s390_vstrszh, s390_vstrszf): New low-level builtins.
3338 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
3339 constant definitions.
3340 * config/s390/vecintrin.h (vec_search_string_cc)
3341 (vec_search_string_until_zero_cc): New builtin name definitions.
3342 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
3344 ("vec_vstrs<mode>"): New insn definition.
3346 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3348 * config/s390/s390-builtin-types.def: Add new builtin function
3350 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
3351 New overloaded builtins.
3352 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
3354 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
3355 (UNSPEC_VEC_SLDBYTE): ... this.
3356 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
3357 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
3359 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
3360 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
3361 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
3363 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3365 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
3366 New insn definition.
3367 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
3368 * config/s390/vector.md (V_HW_HSD): ... here.
3370 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3372 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
3373 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
3374 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
3375 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
3376 New insn definitions.
3378 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3380 * config/s390/s390-builtin-types.def: Add new builtin function type.
3381 * config/s390/s390-builtins.def: Add overloaded builtin
3382 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
3383 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
3384 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
3385 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
3386 ("eltswap<mode>"): New expander.
3387 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
3390 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3392 * config/s390/s390-builtin-types.def: Add new builtin function types.
3393 * config/s390/s390-builtins.def: Add overloaded builtin
3394 s390_vec_revb. Add low-level builtins for vlbr and vstbr
3396 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
3397 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
3398 ("bswap<mode>"): New expander.
3399 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
3401 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3403 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
3404 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
3405 vector builtin version number in __VEC__.
3407 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3409 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
3411 (SFSI): New mode attribute.
3412 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
3413 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
3415 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
3416 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
3417 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
3418 ("floatsi<mode>2"): Add wcefb instruction.
3420 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3422 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
3423 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
3425 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
3426 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
3427 support 32 bit fp-int conversions. Rename to ...
3428 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
3429 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
3430 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
3431 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
3434 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3436 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
3437 if-then-else constructs if we can use the select instruction.
3438 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
3440 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3442 * config/s390/s390.md ("*popcountdi_arch13_cc")
3443 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
3445 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
3446 Append _z196 to make it ...
3447 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
3448 ("popcounthi2_z196"): ... this.
3449 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
3450 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
3452 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3454 * config/s390/s390.c (s390_canonicalize_comparison): Convert
3455 certain compares for arch13 in order to make use of the condition
3456 code result produced by the new instructions.
3457 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
3458 nxrk, and nxgrk instruction patterns.
3459 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
3460 (inv_no): Add new code iterator together with some attributes.
3461 ("*andc_split_<mode>"): Disable splitter for arch13.
3462 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
3463 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
3464 ("*<ANDOR:bitops_name>c<GPR:mode>")
3465 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
3466 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
3467 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
3468 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
3470 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3472 * common/config/s390/s390-common.c (processor_flags_table): New
3474 * config.gcc: Support arch13 with the --with-arch= configure flag.
3475 * config/s390/driver-native.c (s390_host_detect_local_cpu):
3476 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
3477 * config/s390/s390.c (s390_get_sched_attrmask)
3478 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
3479 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
3480 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
3481 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
3482 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
3484 * config/s390/s390.opt: Support arch13 as processor type in
3485 command line options.
3487 2019-04-02 Martin Liska <mliska@suse.cz>
3489 PR translation/89912
3490 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
3491 Fix param description of graphite-max-arrays-per-scop.
3493 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
3495 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
3496 (ASAN_CC1_SPEC): Use it in 64-bit mode.
3497 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
3499 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
3501 PR rtl-optimization/85412
3502 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
3503 sel_sched_region_1, not after.
3505 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
3507 PR rtl-optimization/86928
3508 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
3509 compute_live if necessary.
3510 (sel_redirect_edge_and_branch): Likewise.
3512 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
3514 PR rtl-optimization/89865
3515 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
3516 register if it is a part of small class.
3518 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
3520 PR rtl-optimization/87273
3521 * sel-sched-ir.c (merge_fences): Remove assert.
3523 2019-04-01 Richard Biener <rguenther@suse.de>
3525 PR tree-optimization/46590
3526 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
3527 (dom_walker::m_reachability): Add in place of...
3528 (dom_walker::m_skip_unreachable_blocks): ...this.
3529 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
3530 Move complex initialization ...
3531 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
3532 lazily and initialize edge flags on each invocation.
3533 (dom_walker::bb_reachable): Use m_reachability.
3535 2019-04-01 Martin Liska <mliska@suse.cz>
3538 * opt-suggestions.c (option_proposer::build_option_suggestions):
3539 Add variant without any argument in order to provide better
3542 2019-04-01 Richard Biener <rguenther@suse.de>
3545 * gimple.c: Include langhooks.h.
3546 (gimple_get_alias_set): Treat enumeral types as the underlying
3549 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
3550 Eric Botcazou <ebotcazou@adacore.com>
3552 PR rtl-optimization/89862
3553 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
3554 that operates on the full registers for WORD_REGISTER_OPERATIONS
3557 2019-03-29 Jim Wilson <jimw@sifive.com>
3559 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
3560 Clear MASK_RVC and then set if C subset supported.
3562 2019-03-29 Jakub Jelinek <jakub@redhat.com>
3565 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
3566 non-addressable complit into its initializer if it is volatile.
3568 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
3570 * opts-common.c (integral_argument): Set errno properly in one case.
3572 2019-03-29 Martin Liska <mliska@suse.cz>
3574 * doc/invoke.texi: Remove -Wchkp from documentation.
3576 2019-03-29 Martin Liska <mliska@suse.cz>
3578 * dbgcnt.c (print_limit_reach): New function.
3581 2019-03-29 Martin Liska <mliska@suse.cz>
3583 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
3584 (dbg_cnt_process_opt): Parse first tokens aas
3585 dbg_cnt_process_single_pair is also using strtok.
3587 2019-03-29 Jakub Jelinek <jakub@redhat.com>
3589 PR rtl-optimization/87485
3590 * function.c (expand_function_end): Move stack_protect_epilogue
3591 before loading of return value into hard register(s).
3593 2019-03-28 Jakub Jelinek <jakub@redhat.com>
3596 * tree-inline.h (struct copy_body_data): Add
3597 dont_remap_vla_if_no_change flag.
3598 * tree-inline.c (remap_type_3, remap_type_2): New functions.
3599 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
3600 and remap_type_2 returns false.
3601 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
3602 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
3603 only from where it is copied to nested contexts.
3605 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
3608 * config/i386/i386.md (RMW operation with LEA peephole):
3609 Use LEAMODE mode attribute instead of SWI mode iterator for
3612 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
3615 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
3616 Also process XEXP (src, 0) of a shift insn.
3618 2019-03-28 David Malcolm <dmalcolm@redhat.com>
3621 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
3622 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
3624 2019-03-28 Jakub Jelinek <jakub@redhat.com>
3626 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
3628 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
3629 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
3630 immediately after first one with df_analyze in between, but rather
3631 process all bbs, queueing ones that need second pass in a worklist,
3632 df_analyze, process queued debug insn changes and if second pass is
3633 needed, process bbs from worklist, df_analyze, process queued debug
3636 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
3637 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
3638 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
3640 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
3643 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
3646 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
3649 * config/i386/i386.c (ix86_function_value_1): Call the newly added
3650 function for 32-bit MS_ABI.
3651 (function_value_ms_32): New function.
3653 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
3655 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
3656 (movdi): Call gen_movdi_symbol_save_scc.
3657 (gen_movdi_symbol_save_scc): New insn and split.
3659 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
3661 PR rtl-optimization/89313
3662 * function.c (matching_constraint_num): New static function.
3663 (match_asm_constraints_1): Use it. Fixup white space and comment.
3664 Don't replace inputs with non-matching constraints which conflict
3665 with early clobber outputs.
3667 2019-03-27 Jeff Law <law@redhat.com>
3670 PR rtl-optimization/87761
3671 PR rtl-optimization/89826
3672 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
3674 (pass_cprop_hardreg::execute): Call df_analyze after adding the
3675 note problem to get REG_DEAD/REG_UNUSED notes updated.
3677 2019-03-27 Richard Biener <rguenther@suse.de>
3679 PR tree-optimization/89463
3680 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
3681 queue edges to remove.
3682 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
3683 dead stmts. Delay edge removal until PHIs are removed to
3684 make debug-stmt creation not confused by seemingly degenerate
3687 2019-03-27 Alan Modra <amodra@gmail.com>
3689 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
3691 * config/rs6000/darwin.h: Likewise.
3692 * config/rs6000/rs6000.c: Likewise.
3694 2019-03-27 Alan Modra <amodra@gmail.com>
3696 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
3697 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
3699 2019-03-26 Andrew Waterman <andrew@sifive.com>
3700 Jim Wilson <jimw@sifive.com>
3702 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
3703 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
3704 (generic_idivdi, generic_fmul_single, generic_fmul_double)
3705 (generic_fdiv, generic_fsqrt): Add check for generic tune.
3706 (generic_alu): Add auipc to type list.
3707 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
3708 (riscv_microarchitecture): Declare.
3709 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
3710 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
3712 (riscv_microarchitecture): New.
3713 (sifive_7_tune_info): New.
3714 (riscv_cpu_info_table): Add microarchitecture value for rocket and
3715 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
3717 (riscv_store_data_bypass_p): New.
3718 (riscv_option_override): Set riscv_microarchitecture from
3719 cpu->microarchitecture.
3720 * config/riscv/riscv.md: Include sifive-7.md.
3723 (auipc<mode>): Change type to auipc.
3724 (restore_stack_nonlocal): New.
3725 * config/riscv/sifive-7.md: New.
3726 * doc/invoke.texi (RISC-V Options): Update mtune docs.
3728 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
3731 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
3732 Also process XEXP (src, 0) of a shift insn.
3734 2019-03-26 Richard Biener <rguenther@suse.de>
3736 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
3737 (copy_debug_stmt): Likewise.
3738 (expand_call_inline): Likewise.
3739 (copy_bb): Avoid redundant lookup & set of gimple_block.
3740 * gimple-low.c (lower_gimple_return): Likewise.
3741 (lower_builtin_setjmp): Likewise.
3743 2019-03-26 Jakub Jelinek <jakub@redhat.com>
3745 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
3746 is constant 0, turn into static const data member initialized to false.
3747 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
3748 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
3750 2019-03-26 Jason Merrill <jason@redhat.com>
3751 Jakub Jelinek <jakub@redhat.com>
3753 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
3755 (mem_alloc_description::release_object_overhead): Fix comment typos.
3756 * hash-table.h (hash_table::~hash_table): Call
3757 release_instance_overhead only if m_entries is non-NULL, otherwise
3758 call unregister_descriptor.
3760 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
3762 PR tree-optimization/81740
3763 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3764 In case of outer loop vectorization, check for backward dependence
3765 at the inner loop if outer loop dependence is reversed.
3767 2019-03-26 Alan Modra <amodra@gmail.com>
3769 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
3770 rs6000_vector_mem init. Correct wI and wJ comment.
3772 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
3774 PR rtl-optimization/88347
3775 PR rtl-optimization/88423
3776 * sched-deps.c (sched_analyze_insn): Take into account that for
3777 tablejumps the barrier appears after a label and a jump_table_data.
3779 2019-03-25 Martin Sebor <msebor@redhat.com>
3782 * c-common.c (check_user_alignment): Rename local. Correct maximum
3783 alignment in diagnostic. Avoid assuming argument fits in SHWI,
3784 convert it to UHWI when it fits.
3786 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
3789 * dwarf2out.c (premark_used_variables): New function.
3790 (prune_unused_types_walk): Do not mark not premarked external
3792 (prune_unused_types): Call premark_used_variables.
3794 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
3796 PR rtl-optimization/89676
3797 * lra-constraints.c (curr_insn_transform): Do match reload for
3798 early clobbers when the match was successful only for different
3801 2019-03-25 Martin Sebor <msebor@redhat.com>
3803 * doc/extend.texi (Common Type Attributes): Document vector_size.
3804 (Common Variable Attributes): Mention size constraint. Correct
3806 (Vector Extensions): Use @dfn when defining bas type. Clarify
3807 base type and size constraints.
3809 2019-03-25 Richard Biener <rguenther@suse.de>
3811 PR tree-optimization/89789
3812 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
3813 changes from non-undefined back to undefined.
3815 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
3817 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
3818 heap string and a gc string, but since this variable is unknown to
3819 ggc the gc string might get reused and corrupted. Fixed by always
3820 using a heap string.
3822 2019-03-25 Richard Biener <rguenther@suse.de>
3824 PR tree-optimization/89779
3825 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
3826 to remove IV defs, delay actual removal.
3827 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
3828 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
3829 very end, properly also reset loop control IV information.
3831 2019-03-25 Richard Biener <rguenther@suse.de>
3833 PR tree-optimization/89802
3834 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
3835 move EH data to folded stmt.
3837 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
3839 * config/s390/s390-builtin-types.def: Remove few unused types and
3840 fix sort order for others.
3842 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
3844 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
3845 expected and found types with -mdebug during builtin matching.
3847 2019-03-25 Richard Biener <rguenther@suse.de>
3850 * fold-const.c (operand_equal_p): Revert last change with
3853 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
3855 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
3856 notes for the result of the __tls_get_addr calls.
3857 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
3859 2019-03-24 Jeff Law <law@redhat.com>
3861 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
3863 PR rtl-optimization/87761
3864 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
3865 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
3867 (pass_cprop_hardreg::execute): Add df note problem and defer insn
3868 rescans. Reprocess blocks as needed, calling df_analyze before
3869 reprocessing. Always call df_analyze before fixing up debug bind
3872 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
3874 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
3877 2019-03-22 Andrew Pinski <apinski@marvell.com>
3879 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
3880 attrribute for uxtw.
3882 2019-03-26 Jeff Law <law@redhat.com>
3884 PR rtl-optimization/87761
3885 * config/mips/mips-protos.h (mips_split_move): Add new argument.
3886 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
3887 (mips_split_move): Accept new INSN argument. Try to forward SRC
3888 into the next instruction.
3889 (mips_split_move_insn): Pass INSN through to mips_split_move.
3891 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
3893 PR rtl-optimization/89676
3894 * lra-constraints.c (curr_insn_transform): Do match reload for
3895 early clobbers even if the match was successful.
3897 2019-03-22 Jakub Jelinek <jakub@redhat.com>
3900 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
3902 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
3904 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
3906 2019-03-22 Jakub Jelinek <jakub@redhat.com>
3908 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
3909 <avx512>_fmsub_<mode>_mask3<round_name>,
3910 <avx512>_fnmadd_<mode>_mask3<round_name>,
3911 <avx512>_fnmsub_<mode>_mask3<round_name>,
3912 avx512f_vmfmadd_<mode>_mask3<round_name>,
3913 avx512f_vmfmsub_<mode>_mask3<round_name>,
3914 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
3915 instead of register_operand and %v instead of v for match_operand 1.
3916 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
3917 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
3918 <round_nimm_predicate> instead of register_operand and %v instead of v
3919 for match_operand 1.
3921 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
3922 <avx512>_fmadd_<mode>_mask3<round_name>,
3923 <avx512>_fmsub_<mode>_mask<round_name>,
3924 <avx512>_fmsub_<mode>_mask3<round_name>,
3925 <avx512>_fnmadd_<mode>_mask<round_name>,
3926 <avx512>_fnmadd_<mode>_mask3<round_name>,
3927 <avx512>_fnmsub_<mode>_mask<round_name>,
3928 <avx512>_fnmsub_<mode>_mask3<round_name>,
3929 <avx512>_fmaddsub_<mode>_mask<round_name>,
3930 <avx512>_fmaddsub_<mode>_mask3<round_name>,
3931 <avx512>_fmsubadd_<mode>_mask<round_name>,
3932 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
3933 <round_nimm_predicate> instead of nonimmediate_operand.
3934 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
3935 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
3936 Use register_operand instead of <round_nimm_predicate> for the
3937 operand that needs to match output.
3938 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
3939 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
3940 Likewise. Formatting fixes.
3943 * config/i386/i386.c (enum ix86_builtins): Remove
3944 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
3945 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
3946 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
3947 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
3948 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
3949 __builtin_ia32_vfmsubss3_mask3): New builtins.
3950 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
3951 avx512f_vmfmadd_<mode>_mask3<round_name>,
3952 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
3953 *avx512f_vmfmsub_<mode>_mask<round_name>,
3954 avx512f_vmfmsub_<mode>_mask3<round_name>,
3955 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
3956 *avx512f_vmfnmadd_<mode>_mask<round_name>,
3957 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
3958 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
3959 *avx512f_vmfnmsub_<mode>_mask<round_name>,
3960 avx512f_vmfnmsub_<mode>_mask3<round_name>,
3961 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
3962 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
3963 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
3964 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
3965 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
3966 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
3967 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
3968 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
3969 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
3970 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
3971 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
3972 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
3973 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
3974 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
3975 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
3976 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
3977 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
3978 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
3979 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
3980 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
3981 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
3982 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
3984 2019-03-21 Martin Sebor <msebor@redhat.com>
3986 PR tree-optimization/89350
3987 * builtins.c (compute_objsize): Also ignore offsets whose upper
3989 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
3990 (builtin_memref::builtin_memref): Initialize new member.
3991 Allow EXPR to be null.
3992 (builtin_memref::extend_offset_range): Replace local with a member.
3993 Avoid assuming pointer offsets are unsigned.
3994 (builtin_memref::set_base_and_offset): Determine base object
3995 before computing offset range.
3996 (builtin_access::builtin_access): Handle memset.
3997 (builtin_access::generic_overlap): Replace local with a member.
3998 (builtin_access::strcat_overlap): Same.
3999 (builtin_access::overlap): Same.
4000 (maybe_diag_overlap): Same.
4001 (maybe_diag_access_bounds): Same.
4002 (wrestrict_dom_walker::check_call): Handle memset.
4003 (check_bounds_or_overlap): Same.
4005 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
4006 Jakub Jelinek <jakub@redhat.com>
4009 * tree.c (fld_type_variant, fld_incomplete_type_of,
4010 fld_process_array_type): Call fld->pset.add and don't call
4011 add_tree_to_fld_list if it returns true.
4012 (free_lang_data_in_type): Similarly with self-recursive call. Purge
4013 non-marked types from TYPE_NEXT_VARIANT list.
4014 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
4016 2019-03-21 Jakub Jelinek <jakub@redhat.com>
4018 * hash-table.h (hash_table): Add Lazy template parameter defaulted
4019 to false, if true, don't alloc_entries during construction, but defer
4020 it to the first method that needs m_entries allocated.
4021 (hash_table::hash_table, hash_table::~hash_table,
4022 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
4023 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
4024 hash_table::clear_slot, hash_table::traverse_noresize,
4025 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
4026 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
4028 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
4029 NO_INSERT instead of find_with_hash.
4030 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
4031 hash_set::m_table): Add Lazy to template params of hash_table.
4032 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
4033 * attribs.c (test_attribute_exclusions): Likewise.
4034 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
4035 hash_set. Add tests for hash_set with Lazy = true.
4037 2019-03-21 Richard Biener <rguenther@suse.de>
4039 PR tree-optimization/89779
4040 * tree.c (tree_nop_conversion): Consolidate and fix defensive
4041 checks with respect to released SSA names now having error_mark_node
4043 * fold-const.c (operand_equal_p): Likewise.
4045 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
4048 * config/s390/s390.c (global_not_special_regno_p): Move to make it
4050 (s390_optimize_register_info): Use global_not_special_regno_p to
4051 check for global regs.
4053 2019-03-20 Jakub Jelinek <jakub@redhat.com>
4056 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
4057 update this_alternative nor this_alternative_set.
4059 2019-03-19 Jim Wilson <jimw@sifive.com>
4062 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
4063 align, size, offset. Use them to handle a BLKmode reference. Update
4065 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
4067 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4069 PR rtl-optimization/89768
4070 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
4072 (unroll_loop_runtime_iterations): Likewise.
4074 2019-03-19 Martin Sebor <msebor@redhat.com>
4076 PR tree-optimization/89644
4077 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
4078 rather than endptr as an indicator of nul-termination.
4080 PR tree-optimization/89644
4081 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
4082 arrays in determining sequence sizes in strncpy and stpncpy.
4084 2019-03-19 Martin Liska <mliska@suse.cz>
4087 * predict.c (combine_predictions_for_bb): Empty likely_edges and
4088 unlikely_edges if there's an edge that belongs to both these sets.
4090 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
4093 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
4094 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
4095 go via a stack temporary.
4097 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4100 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
4101 instead of gen_rtx_SUBREG.
4102 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
4104 2019-03-19 Richard Biener <rguenther@suse.de>
4107 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
4109 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
4113 * tree.c (free_lang_data_in_decl): Do not free context of C++
4116 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4119 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
4120 subs for the first alternative except when operands[3] is 1.
4123 * gimplify.c (gimplify_asm_expr): For output argument with
4124 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
4127 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
4129 PR rtl-optimization/89753
4130 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
4131 explicit unrolling factor even more robust.
4133 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4136 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
4137 compensation use x2 += 1 instead of x2 -= -1 and when honoring
4138 signed zeros, do another copysign after the compensation.
4140 2019-03-18 Martin Sebor <msebor@redhat.com>
4142 PR tree-optimization/89720
4143 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
4144 more conservatively, the same as anti-range.
4146 2019-03-18 Richard Biener <rguenther@suse.de>
4149 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
4150 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
4151 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
4152 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
4154 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
4156 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
4157 Extend queue to 1024 entries.
4158 Add "consumed" field.
4159 (gomp_print_output): Remove print_index parameter.
4160 Add final parameter.
4161 Change limit to unsigned.
4162 Use consumed field to implement circular buffer.
4163 Detect interrupted print in final pass.
4164 Flush output at the end.
4165 (run): Update gomp_print_output usage.
4166 (main): Initialize kernargs->output_data.consumed.
4168 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
4170 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
4171 calculation of the minimum number of scalar iterations for
4172 fully-predicated loops.
4174 2019-03-18 Martin Jambor <mjambor@suse.cz>
4176 PR tree-optimization/89546
4177 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
4178 any propagation to its children took place.
4180 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
4183 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
4184 parameter, and make use of it.
4185 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
4187 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4189 * config/arc/arc.opt (mcode-density-frame): Get the inital value
4190 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
4191 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
4192 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
4193 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
4194 match what the ops is doing.
4195 (push_multi_fp_blink): Likewise.
4196 * config/arc/arc.c (arc_override_options): Enable enter/leave when
4197 compiling for size and elf target.
4198 (arc_save_callee_enter): Adjust note to match what enter/leave
4201 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4203 * config/arc/arc.md (tst_movb): Fix constraint.
4205 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4207 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
4209 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4211 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
4212 * config/arc/arc.c (arc_conditional_register_usage): Remove all
4213 reg_alloc_order references.
4214 (size_alloc_order): Define.
4215 (arc_adjust_reg_alloc_order): New function.
4216 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
4218 (ADJUST_REG_ALLOC_ORDER): Define.
4219 (HONOR_REG_ALLOC_ORDER): Likewise.
4221 2019-03-18 Richard Biener <rguenther@suse.de>
4224 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
4225 loads and stores a bit more.
4227 2019-03-18 Richard Biener <rguenther@suse.de>
4230 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
4231 load pessimization to stores as well.
4233 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
4236 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
4237 successor, use NULL as its av set.
4239 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
4241 PR rtl-optimization/89721
4242 * lra-constraints (invariant_p): Return false if side_effects_p holds.
4244 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
4247 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4248 When handling vec_extract, use modular arithmetic to allow
4249 constant selectors greater than vector length.
4250 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
4251 V1TImode vectors to have constant selector values greater than 0.
4252 Use modular arithmetic to compute vector index.
4253 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
4254 index for in-memory vectors. Correct code generation for
4255 in-register vectors.
4256 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
4259 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
4263 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
4266 2019-03-15 Jakub Jelinek <jakub@redhat.com>
4269 * tree.c (inchash::add_expr): Strip any location wrappers.
4270 * fold-const.c (operand_equal_p): Move stripping of location wrapper
4271 after hash verification.
4274 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
4275 SIGN_EXTEND and ZERO_EXTEND.
4277 2019-03-14 Jason Merrill <jason@redhat.com>
4278 Jakub Jelinek <jakub@redhat.com>
4280 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
4281 than if is_empty (*slot).
4282 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
4283 existing elt and for elt removal.
4284 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
4285 of already removed elt.
4287 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
4290 * config/i386/i386.c (remove_partial_avx_dependency): Handle
4293 2019-03-14 Martin Liska <mliska@suse.cz>
4296 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
4298 2019-03-14 Richard Biener <rguenther@suse.de>
4301 * config/i386/i386.c (make_resolver_func): Properly set
4302 DECL_CONTEXT on the RESULT_DECL.
4303 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
4305 2019-03-14 Richard Biener <rguenther@suse.de>
4307 * gimple-pretty-print.c: Include cfgloop.h.
4308 (dump_gimple_phi): Adjust.
4309 (dump_gimple_bb_header): Dump loop header for GIMPLE.
4310 (pp_cfg_jump): Adjust.
4311 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
4312 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
4313 (lower_phi_internal_fn): Remove.
4314 (verify_gimple_call): Remove IFN_PHI special-casing.
4315 (dump_function_to_file): Dump IL state.
4316 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
4317 done to deal with PHI nodes being present in non-SSA state.
4319 2019-03-14 Jakub Jelinek <jakub@redhat.com>
4322 * multiple_target.c (create_dispatcher_calls): Change
4323 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
4324 In the node->iterate_referring loop, push *ref rather than ref, call
4325 ref->remove_reference () and always pass 0 to iterate_referring.
4327 PR rtl-optimization/89679
4328 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
4329 would contain a paradoxical SUBREG.
4331 2019-03-14 Richard Biener <rguenther@suse.de>
4333 PR tree-optimization/89710
4334 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
4337 2019-03-14 Martin Liska <mliska@suse.cz>
4339 * coverage.c (coverage_begin_function): Stream also
4341 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
4342 documentation about function declaration location.
4343 * gcov-dump.c (tag_function): Print whole range
4344 of function declaration.
4345 * gcov.c (struct function_info): Add end_column field.
4346 (function_info::function_info): Initialize it.
4347 (output_json_intermediate_file): Output {start,end}_column
4349 (read_graph_file): Read end_column.
4351 2019-03-14 Richard Biener <rguenther@suse.de>
4354 * fold-const.c (operand_equal_p): For INDIRECT_REF check
4355 that the access types are similar.
4357 2019-03-14 Jakub Jelinek <jakub@redhat.com>
4359 PR tree-optimization/89703
4360 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
4361 aren't compatible also with builtin_decl_explicit. Check pure
4362 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
4363 and BUILT_IN_STPNCPY{,_CHK}.
4365 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
4368 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
4369 addr32 prefix to VSIB address for X32.
4370 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
4372 (*avx512pf_gatherpf<mode>df_mask): Likewise.
4373 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
4374 (*avx512pf_scatterpf<mode>df_mask): Likewise.
4375 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
4376 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
4377 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
4378 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
4379 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
4380 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
4381 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
4382 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
4383 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
4384 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
4385 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
4386 (*avx512f_scatterdi<mode>): Likewise.
4388 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
4391 * lra-constraints.c (inherit_in_ebb): Update
4392 potential_reload_hard_regs along with live_hard_regs.
4394 2019-03-13 Jakub Jelinek <jakub@redhat.com>
4397 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
4399 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
4401 2019-03-13 Martin Sebor <msebor@redhat.com>
4403 PR tree-optimization/89662
4404 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
4407 2019-03-13 Richard Biener <rguenther@suse.de>
4410 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
4411 throw FP expressions at tree-affine.
4413 2019-03-14 Richard Biener <rguenther@suse.de>
4415 * tree-pretty-print.c (dump_generic_node): For -gimple properly
4416 dump negative integer constants using _Literal (type) -num.
4418 2019-03-13 Jakub Jelinek <jakub@redhat.com>
4420 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
4421 nonlocal_value member.
4424 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
4425 (ipa_simd_modify_function_body): Handle PHIs.
4427 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4429 * config/s390/s390.c (s390_option_override_internal): Use more
4430 aggressive inlining parameters.
4432 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4434 * config/s390/3906.md: New file.
4435 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
4436 (LONGRUNNING_THRESHOLD): Remove.
4437 (MAX_SCHED_MIX_SCORE): Decrease.
4438 (MAX_SCHED_MIX_DISTANCE): Decrease.
4439 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
4440 (struct s390_sched_state): New struct to hold scheduling state.
4441 (S390_SCHED_STATE_NORMAL): Remove.
4442 (S390_SCHED_STATE_CRACKED): Remove.
4443 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
4444 (s390_get_sched_attrmask): Use new attribute.
4445 (s390_get_unit_mask): Use new units.
4446 (s390_is_fpd): New function.
4447 (s390_is_fxd): New function.
4448 (s390_is_longrunning): New function.
4449 (s390_sched_score): Use new functions.
4450 (s390_sched_reorder): Likewise.
4451 (s390_sched_variable_issue): Rework and use new functions.
4452 (s390_sched_init): Use new functions.
4453 * config/s390/s390.h (s390_tune_attr): Add z14.
4454 * config/s390/s390.md: Add z14.
4456 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4458 * config/s390/2964.md: Update pipeline description.
4459 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
4460 (LONGRUNNING_THRESHOLD): Remove.
4461 (LATENCY_FACTOR): Remove.
4462 (s390_get_unit_mask): Add unit.
4463 (s390_sched_score): Use fxd/fpd.
4464 (s390_sched_variable_issue): Use fxd/fpd.
4466 2019-03-12 Martin Liska <mliska@suse.cz>
4468 * config/i386/i386.c: Reword an error message.
4470 2019-03-12 Martin Jambor <mjambor@suse.cz>
4472 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
4473 terminate with newline.
4475 2019-03-12 Jakub Jelinek <jakub@redhat.com>
4478 * config/s390/s390.md (tabort): Use %wd instead of
4479 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
4480 letters and periods.
4481 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
4482 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
4486 * builtins.c (expand_builtin_int_roundingfn,
4487 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
4488 gcc_unreachable if validate_arglist fails.
4490 2019-03-12 Richard Biener <rguenther@suse.de>
4492 PR tree-optimization/89664
4493 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
4494 free the occurance tree after the early out.
4496 2019-03-11 Jakub Jelinek <jakub@redhat.com>
4500 * vr-values.c (vr_values::update_value_range): If
4501 old_vr->varying_p (), don't update it, make new_vr also VARYING
4504 2019-03-11 Martin Liska <mliska@suse.cz>
4506 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4507 Fix double string quoting.
4509 2019-03-11 Martin Liska <mliska@suse.cz>
4511 * collect-utils.c (collect_wait): Wrap apostrophes
4512 in gcc internal format with %'.
4513 * collect2.c (main): Likewise.
4514 (scan_prog_file): Likewise.
4515 (scan_libraries): Likewise.
4516 * config/i386/i386.c (ix86_expand_call): Likewise.
4517 (ix86_handle_interrupt_attribute): Likewise.
4518 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
4519 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
4520 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
4521 * lto-wrapper.c (find_crtoffloadtable): Likewise.
4522 * symtab.c (symtab_node::verify_base): Likewise.
4523 * tree-cfg.c (verify_gimple_label): Likewise.
4524 * tree.c (verify_type_variant): Likewise.
4526 2019-03-11 Martin Liska <mliska@suse.cz>
4528 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
4529 in a string format message and fix GNU coding style.
4530 (expand_builtin_set_thread_pointer): Likewise.
4531 * common/config/aarch64/aarch64-common.c
4532 (aarch64_rewrite_selected_cpu): Likewise.
4533 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
4534 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
4535 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
4536 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
4537 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
4538 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
4539 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
4540 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
4541 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
4542 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
4544 * common/config/riscv/riscv-common.c
4545 (riscv_subset_list::parsing_subset_version): Likewise.
4546 (riscv_subset_list::parse_std_ext): Likewise.
4547 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
4548 (riscv_subset_list::parse): Likewise.
4549 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
4550 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
4551 (aarch64_override_options_internal): Likewise.
4552 (aarch64_validate_mcpu): Likewise.
4553 (aarch64_validate_march): Likewise.
4554 (aarch64_validate_mtune): Likewise.
4555 (aarch64_override_options): Likewise.
4556 * config/alpha/alpha.c (alpha_option_override): Likewise.
4557 * config/arc/arc.c (arc_init): Likewise.
4558 (parse_mrgf_banked_regs_option): Likewise.
4559 (arc_override_options): Likewise.
4560 (arc_expand_builtin_aligned): Likewise.
4561 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
4562 (arm_expand_builtin): Likewise.
4563 * config/arm/arm.c (arm_option_check_internal): Likewise.
4564 (arm_configure_build_target): Likewise.
4565 (arm_option_override): Likewise.
4566 (arm_options_perform_arch_sanity_checks): Likewise.
4567 (arm_handle_cmse_nonsecure_entry): Likewise.
4568 (arm_handle_cmse_nonsecure_call): Likewise.
4569 (arm_tls_referenced_p): Likewise.
4570 (thumb1_expand_prologue): Likewise.
4571 * config/avr/avr.c (avr_option_override): Likewise.
4572 * config/bfin/bfin.c (bfin_option_override): Likewise.
4573 * config/c6x/c6x.c (c6x_option_override): Likewise.
4574 * config/cr16/cr16.c (cr16_override_options): Likewise.
4575 * config/cris/cris.c (cris_option_override): Likewise.
4576 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
4577 * config/darwin-c.c (macosx_version_as_macro): Likewise.
4578 * config/darwin.c (darwin_override_options): Likewise.
4579 * config/frv/frv.c (frv_expand_builtin): Likewise.
4580 * config/h8300/h8300.c (h8300_option_override): Likewise.
4581 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
4582 (ix86_option_override_internal): Likewise.
4583 (warn_once_call_ms2sysv_xlogues): Likewise.
4584 (ix86_expand_prologue): Likewise.
4585 (split_stack_prologue_scratch_regno): Likewise.
4586 (ix86_warn_parameter_passing_abi): Likewise.
4587 * config/ia64/ia64.c (fix_range): Likewise.
4588 * config/m68k/m68k.c (m68k_option_override): Likewise.
4589 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
4590 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
4591 (mips_set_compression_mode): Likewise.
4592 * config/mmix/mmix.c (mmix_option_override): Likewise.
4593 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
4594 * config/msp430/msp430.c (msp430_option_override): Likewise.
4595 * config/nds32/nds32.c (nds32_option_override): Likewise.
4596 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
4597 (nios2_option_override): Likewise.
4598 (nios2_expand_custom_builtin): Likewise.
4599 * config/nvptx/mkoffload.c (main): Likewise.
4600 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
4601 * config/pa/pa.c (fix_range): Likewise.
4602 (pa_option_override): Likewise.
4603 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
4604 (riscv_option_override): Likewise.
4605 * config/rl78/rl78.c (rl78_option_override): Likewise.
4606 * config/rs6000/aix61.h: Likewise.
4607 * config/rs6000/aix71.h: Likewise.
4608 * config/rs6000/aix72.h: Likewise.
4609 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
4610 * config/rs6000/freebsd64.h: Likewise.
4611 * config/rs6000/linux64.h: Likewise.
4612 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4613 (rs6000_expand_zeroop_builtin): Likewise.
4614 (rs6000_expand_mtfsb_builtin): Likewise.
4615 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
4616 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
4617 (rs6000_invalid_builtin): Likewise.
4618 (rs6000_expand_split_stack_prologue): Likewise.
4619 * config/rs6000/rtems.h: Likewise.
4620 * config/rx/rx.c (valid_psw_flag): Likewise.
4621 (rx_expand_builtin): Likewise.
4622 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
4623 * config/s390/s390.c (s390_expand_builtin): Likewise.
4624 (s390_function_profiler): Likewise.
4625 (s390_option_override_internal): Likewise.
4626 (s390_option_override): Likewise.
4627 * config/sh/sh.c (sh_option_override): Likewise.
4628 (sh_builtin_saveregs): Likewise.
4629 (sh_fix_range): Likewise.
4630 * config/sh/vxworks.h: Likewise.
4631 * config/sparc/sparc.c (sparc_option_override): Likewise.
4632 * config/spu/spu.c (spu_option_override): Likewise.
4633 (fix_range): Likewise.
4634 * config/visium/visium.c (visium_option_override): Likewise.
4635 (visium_handle_interrupt_attr): Likewise.
4636 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
4637 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
4638 (dbg_cnt_process_opt): Likewise.
4639 * dwarf2out.c (output_dwarf_version): Likewise.
4640 * except.c (expand_eh_return): Likewise.
4641 * gcc.c (defined): Likewise.
4642 (driver_handle_option): Likewise.
4643 (process_command): Likewise.
4644 (compare_files): Likewise.
4645 (driver::prepare_infiles): Likewise.
4646 (driver::do_spec_on_infiles): Likewise.
4647 (driver::maybe_run_linker): Likewise.
4648 * omp-offload.c (oacc_parse_default_dims): Likewise.
4649 * opts-global.c (handle_common_deferred_options): Likewise.
4650 * opts.c (parse_sanitizer_options): Likewise.
4651 (common_handle_option): Likewise.
4652 (enable_warning_as_error): Likewise.
4653 * passes.c (enable_disable_pass): Likewise.
4654 * plugin.c (parse_plugin_arg_opt): Likewise.
4655 (default_plugin_dir_name): Likewise.
4656 * targhooks.c (default_expand_builtin_saveregs): Likewise.
4657 (default_pch_valid_p): Likewise.
4658 * toplev.c (init_asm_output): Likewise.
4659 (process_options): Likewise.
4660 (toplev::run_self_tests): Likewise.
4661 * tree-cfg.c (verify_gimple_call): Likewise.
4662 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
4663 (tree_inlinable_function_p): Likewise.
4664 * var-tracking.c (vt_find_locations): Likewise.
4666 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
4668 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
4669 only on the else branch.
4671 2019-03-11 Martin Liska <mliska@suse.cz>
4673 * gcov.c (output_intermediate_json_line): Print function
4675 (output_json_intermediate_file): Add new argument.
4676 * doc/gcov.texi: Document the change.
4678 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
4680 PR rtl-optimization/89588
4681 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
4682 explicit unrolling factor more robust.
4684 2019-03-11 Richard Biener <rguenther@suse.de>
4686 PR tree-optimization/89649
4687 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
4688 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
4689 on the prolog and epilog loops.
4690 (vect_loop_versioning): Return copy of loop.
4691 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
4692 on the non-vectorized version of the loop.
4694 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
4697 * config/i386/sse.md (*vec_extractv2di_0_sse):
4698 Add (=r,x) alternative and corresponding splitter.
4700 2019-03-10 Martin Jambor <mjambor@suse.cz>
4702 PR tree-optimization/85762
4703 PR tree-optimization/87008
4704 PR tree-optimization/85459
4705 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
4706 it points to if there is a type changing MEM_REF. Adjust all callers.
4707 (build_accesses_from_assign): Disable total scalarization if
4708 contains_vce_or_bfcref_p returns true through the new parameter, for
4711 2019-03-09 Jakub Jelinek <jakub@redhat.com>
4714 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
4715 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
4718 * common.opt (fdiagnostics-show-labels,
4719 fdiagnostics-show-line-numbers, fdiagnostics-format=,
4720 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
4721 gas-locview-support, ginline-points, ginternal-reset-location-views):
4722 Terminate description text with a dot.
4723 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
4724 * config/mcore/mcore.opt (m210, m340): Likewise.
4725 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
4726 mnops=): Start description text with a capital letter.
4727 * config/arc/arc.opt (msize-level=): Likewise.
4728 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
4729 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
4731 * config/ft32/ft32.opt (msim): Likewise.
4732 (mft32b, mcompress): Likewise. Terminate description text with a dot.
4733 (mnodiv, mnopm): Terminate description text with a dot.
4734 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
4736 * config/i386/i386.opt (prefer_vector_width, instrument_return):
4738 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
4741 PR rtl-optimization/89634
4742 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
4743 are modified in BB_END (e->src) instruction.
4745 2019-03-08 David Malcolm <dmalcolm@redhat.com>
4748 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
4749 messages more amenable to translation, and improve wording.
4751 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
4753 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
4754 ud- and du-chains between phases.
4756 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
4759 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
4760 instead of POLY_INT_CST.
4762 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4764 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
4767 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
4772 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
4773 (_mm_storeu_si64): Ditto.
4775 2019-03-08 Martin Liska <mliska@suse.cz>
4778 * config/i386/i386.c (ix86_option_override_internal): Disable
4779 jump tables when retpolines are used.
4781 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
4784 * ipa-split.c (execute_split_functions): Do not split
4785 'noinline' or 'section' function.
4787 2019-03-08 Jakub Jelinek <jakub@redhat.com>
4790 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
4791 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
4792 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
4795 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
4796 from diagnostics. Formatting fixes.
4799 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
4800 warn_odr diagnostics.
4803 * lra-constraints.c (process_alt_operands): Avoid one space before
4804 " at the end of line and another after " on another line in a string
4806 * attribs.c (handle_dll_attribute): Likewise.
4807 * config/avr/avr-devices.c (avr_texinfo): Likewise.
4809 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
4810 warning_at or inform messages in G_() if there is no ?:.
4812 PR tree-optimization/89550
4813 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
4814 returned true. Formatting fixes.
4815 (expand_builtin_strnlen): Formatting fixes.
4816 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
4817 if warning_at returned true.
4818 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
4820 2019-03-08 Richard Biener <rguenther@suse.de>
4823 * cfgloop.h (struct loop): Add owned_clique field.
4824 * cfgloopmanip.c (copy_loop_info): Copy it.
4825 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
4827 * tree-inline.c (copy_loops): Remap owned_clique.
4828 * lto-streamer-in.c (input_cfg): Stream owned_clique.
4829 * lto-streamer-out.c (output_cfg): Likewise.
4831 2019-03-08 Jakub Jelinek <jakub@redhat.com>
4834 * config/darwin.c: Include intl.h.
4835 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
4836 composing the message out of two separate parts.
4838 2019-03-07 Jakub Jelinek <jakub@redhat.com>
4841 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
4842 doesn't start with a capital letter and doesn't end with a dot.
4843 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
4844 with a capital letter.
4845 (ix86_mangle_function_version_assembler_name): Likewise.
4846 (ix86_generate_version_dispatcher_body): Likewise.
4847 (fold_builtin_cpu): Likewise.
4848 (get_builtin_code_for_version): Likewise. Remove extraneous space.
4849 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
4850 translators, wrap full type name in %qs.
4852 PR translation/79999
4853 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
4854 depend clause with source (or sink) modifier.
4855 * omp-expand.c (expand_omp_ordered_sink): Likewise.
4858 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
4859 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
4860 (avx512f_load<mode>_mask): New define_expand.
4861 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
4862 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
4863 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
4864 __builtin_ia32_movess_mask): New builtins.
4865 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
4866 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
4867 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
4868 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
4870 2019-03-07 Martin Jambor <mjambor@suse.cz>
4873 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
4874 for extern inline functions.
4876 2019-03-07 Martin Jambor <mjambor@suse.cz>
4879 * cgraph.h (cgraph_node): New inline method former_thunk_p.
4880 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
4881 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
4882 have multiple callees. At the end check if declarations match as
4883 opposed to cgraph_nodes.
4885 2019-03-07 Martin Liska <mliska@suse.cz>
4887 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
4888 which is equivalent to searching for this in clones chain.
4889 * symtab.c (symtab_node::verify_base): Similarly compare ASM
4890 names with a neighbour and special case first node in a chain.
4892 2019-01-25 Jason Merrill <jason@redhat.com>
4894 PR c++/80916 - spurious "static but not defined" warning.
4895 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
4896 for an internal symbol with DECL_EXTERNAL.
4898 2019-04-07 Richard Biener <rguenther@suse.de>
4901 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
4902 * tree-inline.c (copy_loops): Simplify.
4904 2019-03-07 Martin Liska <mliska@suse.cz>
4906 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
4908 2019-03-07 Richard Biener <rguenther@suse.de>
4910 PR tree-optimization/89595
4911 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
4912 stmt iterator as reference, take boolean output parameter to
4913 indicate whether the stmt was removed and thus the iterator
4915 (dom_opt_dom_walker::before_dom_children): Re-iterate over
4916 stmts created by folding.
4918 2019-03-07 Jakub Jelinek <jakub@redhat.com>
4921 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
4924 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
4926 PR rtl-optimization/88845
4927 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
4929 * lra.c (remove_scratches_1): New function.
4930 (remove_scratches): Use it.
4931 (lra_emit_move): Likewise.
4933 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
4935 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
4936 unaligned_access variable.
4937 * config/arc/arc.c (arc_override_options): Set unaligned access
4938 default on for HS CPUs.
4939 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
4941 2019-03-06 Martin Liska <mliska@suse.cz>
4943 PR gcov-profile/89577
4944 * doc/gcov.texi: Prefer to use --coverage.
4945 * doc/sourcebuild.texi: Likewise.
4947 2019-03-02 Jason Merrill <jason@redhat.com>
4949 PR c++/86485 - -Wmaybe-unused with empty class ?:
4950 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
4952 2019-03-05 Jakub Jelinek <jakub@redhat.com>
4955 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
4959 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
4960 exactly one argument.
4962 2019-03-05 Jakub Jelinek <jakub@redhat.com>
4963 Richard Sandiford <richard.sandiford@arm.com>
4965 PR tree-optimization/89570
4966 * match.pd (vec_cond into cond_op simplification): Don't use
4967 get_conditional_internal_fn, use as_internal_fn (cond_op).
4969 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
4972 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
4973 to decide when to split off a non-zero offset from a symbol.
4974 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
4975 in function symbols.
4977 2019-03-05 Richard Biener <rguenther@suse.de>
4979 PR tree-optimization/89594
4980 * tree-if-conv.c (pass_if_conversion::execute): Handle
4981 case where .LOOP_VECTORIZED_FUNCTION was removed.
4983 2019-03-05 Jakub Jelinek <jakub@redhat.com>
4986 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
4987 instead alloca it only when needed with the needed size.
4989 PR tree-optimization/89570
4990 * match.pd (vec_cond into cond_op simplification): Guard with
4991 vectorized_internal_fn_supported_p test and #if GIMPLE.
4993 PR tree-optimization/89566
4994 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
4995 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
4996 Punt if get_user_idx_format succeeds, but idx_format argument is
4997 not provided or doesn't have pointer type, or if idx_args is above
4998 number of provided arguments.
5000 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
5002 PR tree-optimization/89437
5003 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
5005 2019-03-04 Richard Biener <rguenther@suse.de>
5008 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
5011 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
5013 PR tree-optimization/89487
5014 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
5015 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
5016 (distribute_loop): Don't do runtime alias check if there is non-
5017 addressable data reference.
5018 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
5019 is a register variable.
5021 2019-03-02 Jakub Jelinek <jakub@redhat.com>
5024 * config/arm/arm.md (cmpsi2_addneg): Use
5025 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
5026 If operands[2] is 0 or INT_MIN, force use of subs.
5027 (*compare_scc splitter): Use gen_int_mode.
5028 (*negscc): Likewise.
5029 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
5031 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
5032 Monk Chiang <sh.chiang04@gmail.com>
5034 * common/config/riscv/riscv-common.c: Include sstream.
5035 (riscv_subset_list::to_string): New.
5036 (riscv_arch_str): Likewise.
5037 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
5039 * config/riscv/riscv-protos.h (riscv_arch_str): New.
5040 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
5041 (riscv_emit_attribute): New.
5042 (riscv_file_start): Emit attribute if needed.
5043 (riscv_option_override): Init riscv_emit_attribute_p.
5044 * config/riscv/riscv.opt (mriscv-attribute): New option.
5045 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
5047 * doc/install.texi: Document --with-riscv-attribute.
5048 * doc/invoke.texi: Document -mriscv-attribute.
5050 * common/config/riscv/riscv-common.c:
5051 Include config/riscv/riscv-protos.h.
5052 (INCLUDE_STRING): Defined.
5053 (RISCV_DONT_CARE_VERSION): Defined.
5054 (riscv_subset_t): Declare.
5055 (riscv_subset_t::riscv_subset_t): New.
5056 (riscv_subset_list): Declare.
5057 (riscv_subset_list::riscv_subset_list): New.
5058 (riscv_subset_list::~riscv_subset_list): Likewise.
5059 (riscv_subset_list::parsing_subset_version): Likewise.
5060 (riscv_subset_list::parse_std_ext): Likewise.
5061 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
5062 (riscv_subset_list::add): Likewise.
5063 (riscv_subset_list::lookup): Likewise.
5064 (riscv_subset_list::xlen): Likewise.
5065 (riscv_subset_list::parse): Likewise.
5066 (riscv_supported_std_ext): Likewise.
5067 (current_subset_list): Likewise.
5068 (riscv_parse_arch_string): Using riscv_subset_list::parse to
5071 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
5073 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
5074 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
5075 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
5077 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
5079 PR rtl-optimization/85899
5080 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
5081 fallthru edges leading to the exit block.
5083 2019-03-01 Tamar Christina <tamar.christina@arm.com>
5086 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
5087 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
5089 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
5091 PR tree-optimization/89535
5092 * tree-vect-stmts.c (vectorizable_call): Record the vector types
5093 for each operand. Calculate the fallback choice for mask operands
5094 and pass it to vect_get_vec_def_for_operand.
5096 2019-03-01 Richard Biener <rguenther@suse.de>
5099 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
5100 get virtual operands.
5101 (get_expr_operands): Handle CONST_DECL like other decls.
5103 2019-03-01 Jakub Jelinek <jakub@redhat.com>
5106 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
5107 on DECL_P and EXPR_P.
5109 2019-03-01 Richard Biener <rguenther@suse.de>
5112 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
5113 argument, defaulted to zero.
5114 * passes.c (execute_function_todo): Pass down SSA update flags
5115 to cleanup_tree_cfg.
5116 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
5117 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
5119 (cleanup_tree_cfg): Get and pass down SSA update flags.
5121 2019-03-01 Jakub Jelinek <jakub@redhat.com>
5124 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
5125 early_lto_debug argument.
5127 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
5129 PR tree-optimization/89536
5130 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
5131 only whether bit #0 of the value is 0 instead of the entire value.
5133 2019-02-28 Marek Polacek <polacek@redhat.com>
5135 PR c++/87068 - missing diagnostic with fallthrough statement.
5136 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
5137 at the end of a seq, save its location to walk_stmt_info.
5138 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
5141 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
5144 * tree.c (find_atomic_core_type): Move ahead in file.
5145 (check_base_type): Correctly compare alignments of atomic types.
5147 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
5150 * config/i386/i386.c (get_builtin_code_for_version): Identify
5151 Westmere from PCLMUL, instead of AES.
5153 2019-02-28 Jakub Jelinek <jakub@redhat.com>
5156 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
5157 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
5160 2019-02-28 Tamar Christina <tamar.christina@arm.com>
5163 * config/aarch64/aarch64-option-extensions.def: Document it.
5164 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
5167 2019-02-28 Jakub Jelinek <jakub@redhat.com>
5170 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
5171 builtins if they don't have a single scalar floating point argument.
5174 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
5176 PR rtl-optimization/89490
5177 * varasm.c (get_block_for_section): Bail out for mergeable sections.
5178 (default_use_anchors_for_symbol_p, output_object_block): Assert the
5179 block section is not mergeable.
5181 2019-02-27 Jakub Jelinek <jakub@redhat.com>
5184 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
5185 old define_insn to ...
5186 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
5187 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
5188 Rename old define_insn to ...
5189 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
5190 (thumb2_casesi_internal_pic): New define_expand. Rename old
5192 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
5193 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
5194 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
5196 2019-02-27 Richard Biener <rguenther@suse.de>
5199 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
5201 2019-02-27 Richard Biener <rguenther@suse.de>
5203 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
5206 2019-02-27 Richard Biener <rguenther@suse.de>
5209 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
5210 parameter, prefix section name with .gnu.debuglto_ if true.
5211 (dwarf2out_finish): Pass false to output_comdat_type_unit.
5212 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
5214 2019-02-27 Richard Biener <rguenther@suse.de>
5217 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
5218 rather than on use_debug_types, doing what output_die does.
5219 (value_format): Likewise.
5221 2019-02-27 Martin Jambor <mjambor@suse.cz>
5222 Martin Sebor <msebor@redhat.com>
5224 * doc/invoke.texi (Warning Options): Reword description of
5225 -Wno-absolute-value.
5227 2019-02-27 Jakub Jelinek <jakub@redhat.com>
5229 PR tree-optimization/89280
5230 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
5231 builtin_setjmp_setup_bb): New functions.
5232 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
5233 When visiting __builtin_setjmp_setup block, queue in special
5234 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
5235 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
5236 from visited after the loop if they don't have any visited successor
5239 2018-02-26 Steve Ellcey <sellcey@marvell.com>
5241 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
5243 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
5245 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5248 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
5249 with types other than sizetype/ssizetype.
5251 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
5253 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
5254 (enum sparc_processor_type): ...this.
5255 (enum sparc_code_model_type): New enumeration type.
5256 (enum sparc_memory_model_type): Tweak comments.
5257 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
5259 (mcmodel): Use sparc_code_model enumeration and variable.
5260 (sparc_code_model): New enumeration.
5261 (mdebug): Add Undocumented marker.
5262 * config/sparc/sparc.h (enum cmodel): Delete.
5263 (sparc_cmodel): Likewise.
5264 (TARGET_CM_MEDLOW): Adjust to above renaming.
5265 (TARGET_CM_MEDMID): Likewise.
5266 (TARGET_CM_MEDANY): Likewise.
5267 (TARGET_CM_EMBMEDANY): Likewise.
5268 * config/sparc/sparc.c (sparc_cmodel): Delete.
5269 (sparc_option_override): Remove string/value mapping support for the
5270 code model. Move code and memory model support to after the handling
5271 of target flags. Do private machine setup last.
5272 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
5273 (sparc_legitimize_reload_address): Likewise.
5274 (sparc_output_mi_thunk): Likewise.
5275 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
5277 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5279 PR tree-optimization/89500
5280 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
5281 (handle_builtin_strlen): Remove noncst_bound variable. Always
5282 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
5283 cst if the first cst bytes starting at x are known to be non-zero,
5284 even if the string is not zero terminated. Don't try to modify
5285 *si for strnlen. Update strlen_to_stridx only for strlen or if
5286 we can prove strnlen returns the same value as strlen would.
5288 2019-02-26 Martin Liska <mliska@suse.cz>
5290 * alloc-pool.h (struct pool_usage): Remove extra
5292 * bitmap.h (struct bitmap_usage): Likewise.
5293 * ggc-common.c (struct ggc_usage): Likewise.
5294 * mem-stats.h (struct mem_usage): Likewise.
5295 (mem_alloc_description::dump): Print dash lines
5296 here and repeat header at the end of a table report.
5297 It's then more readable.
5298 * tree-phinodes.c (phinodes_print_statistics): Make
5299 horizontal alignment.
5300 * tree-ssanames.c (ssanames_print_statistics): Likewise.
5301 * vec.c (struct vec_usage): Remove extra print_dash_line.
5302 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
5304 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
5306 * doc/extend.texi (__builtin_object_size):
5307 Use @pxref instead of @xref inside parenthesis.
5308 (__builtin_has_attribute): Add missing comma after @xref.
5309 (__builtin_object_size): Ditto.
5310 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
5311 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
5314 2019-02-26 Jeff Law <law@redhat.com>
5316 PR rtl-optimization/87761
5317 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
5318 detect obviously dead insns and delete them.
5320 2019-02-26 Richard Biener <rguenther@suse.de>
5322 PR tree-optimization/89505
5323 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
5324 to handle restrict pointed-to vars with multiple subvars
5327 2019-02-26 Richard Biener <rguenther@suse.de>
5329 PR tree-optimization/89489
5330 * tree-parloops.c (create_loop_fn): Copy over last_clique.
5332 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
5334 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
5335 and move around comment.
5336 <BIT_AND_EXPR>: Likewise.
5337 <BIT_NOT_EXPR>: Add specific handling for boolean types.
5339 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5342 * config/i386/i386.c (remove_partial_avx_dependency): Call
5343 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
5344 after changing possibly many instructions to use that pseudo. Fix up
5345 insertion of v4sf_const0 setter at the start of bb.
5347 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
5350 * doc/extend.texi (Variadic Pointer Args): New section.
5352 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
5353 Martin Sebor <msebor@gmail.com>
5355 * common.opt (Wattribute-alias): Likewise.
5356 * doc/invoke.texi (Option Summary): List general form of
5357 -Wattribute-alias=. List positive form of -Wmissing-attributes.
5358 (-Wmissing-attributes): Invert entry, rewrite and correct default.
5359 Add cross-references.
5360 (-Wattribute-alias): Rewrite and correct default. Mention
5361 considered attributes (same as for -Wmissing-attributes).
5363 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
5365 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
5366 (_mm_cvtpd_ps): Likewise.
5367 (_mm_cvttpd_epi32): Likewise.
5370 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
5371 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
5374 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
5376 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5379 * common/config/aarch64/aarch64-common.c
5380 (struct aarch64_option_extension): Add is_synthetic.
5381 (all_extensions): Use it.
5382 (TARGET_OPTION_INIT_STRUCT): Define hook.
5383 (struct gcc_targetm_common): Moved to end.
5384 (all_extensions_by_on): New.
5385 (opt_ext_cmp, typedef opt_ext): New.
5386 (aarch64_option_init_struct): New.
5387 (aarch64_contains_opt): New.
5388 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
5389 * config/aarch64/aarch64-option-extensions.def
5390 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
5391 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
5392 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
5393 Set is_synthetic to false.
5394 (crypto): Set is_synthetic to true.
5395 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
5398 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5400 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
5401 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
5402 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
5403 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
5404 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
5405 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
5406 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
5407 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
5409 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
5410 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
5411 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
5412 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
5413 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
5414 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
5415 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
5416 vfmlsl_laneq_high_f16): ... To this.
5417 * config/arm/neon.md: Update comments.
5419 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5421 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
5422 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
5423 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
5424 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
5425 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
5426 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
5427 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
5428 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
5430 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
5431 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
5432 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
5433 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
5434 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
5435 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
5436 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
5437 vfmlslq_laneq_high_f16): ... To this.
5439 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
5441 PR rtl-optimization/86096
5442 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
5443 comparing mw_order values.
5445 2019-02-25 Jakub Jelinek <jakub@redhat.com>
5448 * config/arm/arm.md (*subsi3_carryin_const): Use
5449 arm_neg_immediate_operand predicate instead of
5450 arm_not_immediate_operand, "L" constraint instead of "K" and
5451 print it using %n2 instead of %B2.
5452 (*subsi3_carryin_const0): New define_insn.
5453 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
5454 instead of arm_not_operand and "I" constraint instead of "K" and
5455 print it using %n3 instead of %B2. Instead of using match_dup 2 add
5456 another match_operand and in the condition check that it is negation
5458 (*subsi3_carryin_compare_const0): New define_ins.
5459 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
5460 *subsi3_carryin_const.
5461 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
5462 split into *subsi3_carryin_compare_const0 if the highpart is zero.
5465 * config/arm.vfp.md (*negdf2_vfp): Use
5466 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
5467 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
5469 2019-02-24 Jakub Jelinek <jakub@redhat.com>
5471 PR rtl-optimization/89445
5472 * simplify-rtx.c (simplify_ternary_operation): Don't use
5473 simplify_merge_mask on operands that may trap.
5474 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
5475 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
5476 second operand is CONST_VECTOR, check if any element could be zero.
5477 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
5478 their operands can trap.
5480 2019-02-23 Martin Sebor <msebor@redhat.com>
5482 * gimple-ssa-sprintf.c (target_strtol): Rename...
5483 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
5484 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
5485 check for range error.
5487 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
5490 * opts-common.c (prune_options): Also prune joined switches
5491 with Negative and RejectNegative.
5492 * config/i386/i386.opt (march=): Add Negative(march=).
5493 (mtune=): Add Negative(mtune=).
5494 * doc/options.texi: Document Negative used together with Joined
5497 2019-02-22 Martin Sebor <msebor@redhat.com>
5499 * doc/extend.texi (Other Builtins): Add
5500 __builtin_is_constant_evaluated.
5502 2019-02-22 Richard Biener <rguenther@suse.de>
5504 PR tree-optimization/87609
5505 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
5507 2019-02-22 Jeff Law <law@redhat.com>
5509 PR rtl-optimization/87761
5510 * config/mips/mips.md: Add new combiner pattern to recognize
5511 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
5513 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
5516 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
5517 destination register in peepholes generating patterns for ADDS/SUBS.
5518 (add<mode>3_compare0,
5519 *addsi3_compare0_uxtw, add<mode>3_compareC,
5520 add<mode>3_compareV_imm, add<mode>3_compareV,
5521 *adds_<optab><ALLX:mode>_<GPI:mode>,
5522 *subs_<optab><ALLX:mode>_<GPI:mode>,
5523 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
5524 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
5525 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
5526 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
5527 sub<mode>3_compare1): Allow stack pointer for source register.
5528 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
5530 2019-02-22 Martin Sebor <msebor@redhat.com>
5532 PR tree-optimization/88993
5533 PR tree-optimization/88853
5534 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
5536 (sprintf_dom_walker::call_info::is_string_func): New helper.
5537 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
5538 for formatted string functions.
5539 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
5541 2019-02-22 Martin Sebor <msebor@redhat.com>
5544 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
5545 unreachable subexpressions.
5547 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
5548 Hongtao Liu <hongtao.liu@intel.com>
5549 Sunil K Pandey <sunil.k.pandey@intel.com>
5552 * config/i386/i386-passes.def: Add
5553 pass_remove_partial_avx_dependency.
5554 * config/i386/i386-protos.h
5555 (make_pass_remove_partial_avx_dependency): New.
5556 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
5558 (pass_data_remove_partial_avx_dependency): New.
5559 (pass_remove_partial_avx_dependency): Likewise.
5560 (make_pass_remove_partial_avx_dependency): Likewise.
5561 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
5562 (*extendsfdf2): Add avx_partial_xmm_update.
5563 (truncdfsf2): Likewise.
5564 (*float<SWI48:mode><MODEF:mode>2): Likewise.
5565 (SF/DF conversion splitters): Disabled for TARGET_AVX.
5567 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
5570 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
5573 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
5576 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
5577 (PTA_SKYLAKE): Add PTA_AES.
5578 (PTA_GOLDMONT): Likewise.
5580 2019-02-22 Sudakshina Das <sudi.das@arm.com>
5582 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
5583 instruction if enabled.
5584 (aarch64_override_options): Remove reference to return address key.
5586 2019-02-22 Richard Biener <rguenther@suse.de>
5588 PR tree-optimization/89440
5589 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
5590 not necessary assert.
5592 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
5595 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
5596 (oacc_replace_fn_attrib_attr): ... this new function.
5597 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
5598 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
5600 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5602 * config/arm/arm-cpus.in (ares): Rename to...
5603 (neoverse-n1): ... This. Add ares as alias.
5604 * config/arm/arm-tables.opt: Regenerate.
5605 * config/arm/arm-tune.md: Likewise.
5606 * doc/invoke.txt (ARM Options): Document neoverse-n1.
5608 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5610 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
5611 * config/aarch64/aarch64-tune.md: Regenerate.
5612 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
5614 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5616 * config/aarch64/aarch64.c (ares_tunings): Rename to...
5617 (neoversen1_tunings): ... This.
5618 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
5619 (neoverse-n1): New CPU.
5620 * config/aarch64/aarch64-tune.md: Regenerate.
5621 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
5623 2019-02-22 Richard Biener <rguenther@suse.de>
5626 * cfghooks.h (dependence_hash): New typedef.
5627 (struct copy_bb_data): New type.
5628 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
5629 (duplicate_block): Likewise.
5630 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
5631 (copy_bbs): Create and pass down copy_bb_data.
5632 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
5633 (rtl_duplicate_bb): Likewise.
5634 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
5635 remap dependence info.
5637 2019-02-22 Richard Biener <rguenther@suse.de>
5639 PR tree-optimization/87609
5640 * tree-core.h (tree_base): Document special clique values.
5641 * tree-inline.c (remap_dependence_clique): Do not use the
5642 special clique value of one.
5643 (maybe_set_dependence_info): Use clique one.
5644 (clear_dependence_clique): New callback.
5645 (compute_dependence_clique): Clear clique one from all refs
5646 before assigning it (again).
5648 2019-02-21 Martin Sebor <msebor@redhat.com>
5650 * doc/extend.texi (__clear_cache): Correct signature.
5652 2019-02-21 Ian Lance Taylor <iant@golang.org>
5655 * varasm.c (decode_addr_const): Call lookup_constant_def rather
5656 than output_constant_def.
5657 (add_constant_to_table): New static function.
5658 (output_constant_def): Call add_constant_to_table.
5659 (tree_output_constant_def): Likewise.
5661 2019-02-21 Jakub Jelinek <jakub@redhat.com>
5664 * builtins.c (fold_builtin_arith_overflow): If first two args are
5665 INTEGER_CSTs, set intres and ovfres to constants rather than calls
5668 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
5671 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
5672 error for -mindirect-branch/-mfunction-return with incompatible
5675 2019-02-21 Jakub Jelinek <jakub@redhat.com>
5678 * constraints.md (q): Remove.
5679 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
5682 2019-02-21 Martin Jambor <mjambor@suse.cz>
5685 * omp-general.c (omp_extract_for_data): Removed a duplicate call
5686 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
5687 (omp_adjust_for_condition): ...here. Added necessary parameters.
5688 * omp-general.h (omp_adjust_for_condition): Updated declaration.
5689 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
5690 proper values to new parameters of omp_adjust_for_condition.
5692 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5695 * expr.c (expand_assignment): If result is a MEM, use change_address
5696 instead of simplify_gen_subreg.
5698 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5699 David Malcolm <dmalcolm@redhat.com>
5702 * fold-const.c (decode_field_reference): Return NULL_TREE if
5703 lang_hooks.types.type_for_size returns NULL. Check it before
5704 overwriting *exp_. Use return NULL_TREE instead of return 0.
5706 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5710 * toplev.c (do_compile): Double the emin/emax exponents to workaround
5713 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
5716 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
5717 TARGET_SSE in addition to TARGET_SSE_MATH.
5719 (ix86_excess_precision): Ditto.
5720 (ix86_float_exceptions_rounding_supported_p): Ditto.
5721 (use_rsqrt_p): Ditto.
5722 * config/i386/sse.md (rsqrt<mode>2): Ditto.
5724 2019-02-20 David Malcolm <dmalcolm@redhat.com>
5727 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
5728 linenum_arith_t when determining if two adjacent line spans are
5729 close enough to merge.
5730 (diagnostic_show_locus): Use linenum_arith_t when iterating over
5731 lines within each line_span.
5733 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
5736 * lra-constraints.c(uses_hard_regs_p): Fix handling of
5737 paradoxical SUBREGS.
5739 2019-02-20 Li Jia He <helijia@linux.ibm.com>
5742 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
5743 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
5744 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
5747 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
5749 * config/gcn/gcn.c (print_operand): Fix typo.
5751 2019-02-19 Richard Biener <rguenther@suse.de>
5754 * toplev.c (do_compile): Initialize mpfr's exponent range
5755 based on available float modes.
5757 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
5759 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
5760 as long as the epilogue isn't completed.
5762 2019-02-18 Martin Sebor <msebor@redhat.com>
5764 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
5765 __has_cpp_attribute, and __has_include.
5767 2019-02-18 Martin Sebor <msebor@redhat.com>
5769 * doc/invoke.texi (-Wreturn-type): Correct and expand.
5771 2019-02-18 Martin Sebor <msebor@redhat.com>
5774 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
5776 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
5778 2019-02-18 Richard Biener <rguenther@suse.de>
5780 PR tree-optimization/89296
5781 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
5782 of no-warning flag to cases that might emit the bogus warning.
5784 2019-02-18 Jakub Jelinek <jakub@redhat.com>
5787 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
5789 * config/arm/vfp.md (*movdi_vfp): Likewise.
5790 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
5791 "q" constraint for operands[0].
5794 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
5795 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
5796 pattern in a temporary buffer.
5797 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
5798 than 64-operands[2].
5801 * config/s390/s390.c (s390_indirect_branch_attrvalue,
5802 s390_indirect_branch_settings): Define unconditionally.
5803 (s390_set_current_function): Likewise, but guard the whole body except
5804 the s390_indirect_branch_settings call with
5805 #if S390_USE_TARGET_ATTRIBUTE.
5806 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
5808 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
5809 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
5810 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
5811 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
5812 HOST_WIDE_INT_1U instead of 1ULL.
5813 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
5814 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
5815 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
5816 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
5818 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
5821 2019-02-18 Martin Jambor <mjambor@suse.cz>
5823 PR tree-optimization/89209
5824 * tree-sra.c (create_access_replacement): New optional parameter
5825 reg_tree. Use it as a type if non-NULL and access type is not of
5827 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
5828 to create_access_replacement.
5829 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
5830 Check lacc is non-NULL before attempting to re-create it on the RHS.
5832 2019-02-18 Martin Liska <mliska@suse.cz>
5835 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
5837 (symbol_table::free_edge): Recycle m_summary_id.
5838 * cgraph.h (get_summary_id): New.
5839 (symbol_table::release_symbol): Set m_summary_id to -1
5841 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
5842 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
5843 function_summary to fast_function_summary.
5844 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
5845 * ipa-pure-const.c (class funct_state_summary_t):
5846 Switch from function_summary to fast_function_summary.
5847 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
5848 (class ipa_ref_opt_summary_t): Switch from function_summary
5849 to fast_function_summary.
5850 * symbol-summary.h (class function_summary_base): New class
5851 that is created from base of former function_summary.
5852 (function_summary_base::unregister_hooks): New.
5853 (class function_summary): Inherit from function_summary_base.
5854 (class call_summary_base): New class
5855 that is created from base of former call_summary.
5856 (class call_summary): Inherit from call_summary_base.
5857 (struct is_same): New.
5858 (class fast_function_summary): New summary class.
5859 (class fast_call_summary): New summary class.
5860 * vec.h (vec_safe_grow_cleared): New function.
5862 2019-02-18 Martin Liska <mliska@suse.cz>
5864 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
5865 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
5866 * doc/tm.texi: Document new target hook.
5867 * doc/tm.texi.in: Likewise.
5868 * target.def: Add new target macro.
5869 * gcc.c (find_fortran_preinclude_file): Do not search multilib
5872 2019-02-17 Alan Modra <amodra@gmail.com>
5875 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
5876 output reg on add insn.
5877 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
5879 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
5882 * config/i386/sse.md (ssedoublemode): Remove V4HI.
5883 (PMULHRSW): Likewise.
5884 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
5886 (ssse3_pmulhrswv4hi3): New expander.
5888 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
5890 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
5891 MMX. Add isa attribute.
5893 2019-02-16 Jakub Jelinek <jakub@redhat.com>
5895 PR rtl-optimization/66152
5896 * builtins.h (c_readstr): Declare.
5897 * builtins.c (c_readstr): Remove forward declaration. Add
5898 null_terminated_p argument, if false, read all bytes from the
5899 string instead of stopping after '\0'.
5900 * expr.c (string_cst_read_str): New function.
5901 (store_expr): Use string_cst_read_str instead of
5902 builtin_strncpy_read_str. Try to store by pieces the whole
5903 exp_len first, and only if that fails, split it up into
5904 store by pieces followed by clear_storage. Formatting fix.
5906 * config/i386/i386.md (*movqi_internal): Remove static from
5907 buf variable. Use output_asm_insn (buf, operands); return "";
5908 instead of return buf;.
5909 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
5910 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
5911 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
5913 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
5915 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
5916 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
5917 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
5918 (CC1_SPEC): Likewise.
5919 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
5921 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
5923 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
5924 the base address on 64-bit strict-alignment platforms.
5926 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
5928 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
5930 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
5932 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
5934 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
5936 PR rtl-optimization/88308
5937 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
5938 on copied instruction.
5940 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
5942 * final.c (insn_current_reference_address): Replace test on JUMP_P
5943 with test on jump_to_label_p.
5944 * config/visium/visium-passes.def: New file.
5945 * config/visium/t-visium (PASSES_EXTRA): Define.
5946 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
5947 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
5948 (TRAMPOLINE_ALIGNMENT): Define.
5949 * config/visium/visium.c (visium_option_override): Do not register
5950 the machine-specific reorg pass here.
5951 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
5953 (output_branch): Adjust threshold for long branch instruction.
5954 * config/visium/visium.md (cpu): Move around.
5955 (length): Adjust for the GR6.
5957 2019-02-15 Richard Biener <rguenther@suse.de>
5958 Jakub Jelinek <jakub@redhat.com>
5960 PR tree-optimization/89278
5961 * tree-loop-distribution.c: Include tree-eh.h.
5962 (generate_memset_builtin, generate_memcpy_builtin): Call
5963 rewrite_to_non_trapping_overflow on builtin->size before passing it
5964 to force_gimple_operand_gsi.
5966 2019-02-15 Jakub Jelinek <jakub@redhat.com>
5969 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
5971 * opth-gen.awk: Likewise.
5973 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
5975 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
5976 Enable MMX, SSE and SSE2 by default.
5977 * config/i386/i386.c (ix86_option_override_internal): Do not
5978 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
5980 2019-02-14 Jakub Jelinek <jakub@redhat.com>
5982 PR rtl-optimization/89354
5983 * combine.c (make_extraction): Punt if extraction_mode is narrower
5986 2019-02-14 Maya Rashish <coypu@sdf.org>
5988 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
5989 * config/netbsd-d.c: New file.
5990 * config/t-netbsd: Add netbsd-d.o
5992 2018-02-14 Steve Ellcey <sellcey@marvell.com>
5994 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
5995 affects_type_identity to true for aarch64_vector_pcs.
5996 (aarch64_comp_type_attributes): New function.
5997 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
5999 2019-02-14 Tamar Christina <tamar.christina@arm.com>
6002 * config/arm/iterators.md (ANY64): Add V4HF.
6004 2019-02-14 Martin Liska <mliska@suse.cz>
6006 PR rtl-optimization/89242
6007 * dce.c (delete_unmarked_insns): Call free_dominance_info we
6008 process a transformation.
6010 2019-02-14 Jakub Jelinek <jakub@redhat.com>
6012 PR tree-optimization/89314
6013 * fold-const.c (fold_binary_loc): Cast strlen argument to
6014 const char * before dereferencing it. Formatting fixes.
6017 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
6019 2019-02-13 Ian Lance Taylor <iant@golang.org>
6021 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
6022 and set current index for other optimizations.
6024 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
6026 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
6027 nonimmediate_operand as operand 2 predicate.
6028 (vec_set<VF2_512_256:mode>_0): Ditto.
6029 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
6030 (*vec_concatv2si): Remove alternative 2.
6031 (*vec_concatv4si_0): Use vm constraint for alternative 0.
6032 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
6033 (vec_concatv2di): Split alternatives 4,5,6 to ...
6034 (*vec_concatv2di_0) ... new pattern.
6036 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
6039 * config/arm/arm.c (ldm_stm_operation_p) Set
6040 addr_reg_in_reglist correctly for first register.
6041 (load_multiple_sequence): Remove dead base check.
6042 (gen_ldm_seq): Correctly set write_back for Thumb-1.
6044 2019-02-13 Tamar Christina <tamar.christina@arm.com>
6047 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
6048 Expose as @aarch64_pred_mov.
6049 * config/aarch64/aarch64.c (aarch64_classify_address):
6050 Use expand_insn which legitimizes operands.
6052 2019-02-13 Martin Liska <mliska@suse.cz>
6054 * builtins.h (expand_builtin_with_bounds): Remove declaration.
6055 * calls.c (struct arg_data): Remove special_slot, pointer_arg
6056 and pointer_offset fields.
6057 (initialize_argument_information): Remove usage of dead
6059 * cgraph.h (struct cgraph_thunk_info): Remove
6060 add_pointer_bounds_args.
6061 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
6063 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
6065 * config/i386/i386.c (ix86_function_arg_advance): Remove
6067 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
6068 (def_builtin): Remove usage of dead
6070 (ix86_add_new_builtins): Likewise.
6071 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6072 * ipa-icf.c (sem_function::equals_wpa): Likewise.
6073 (sem_function::init): Likewise.
6074 (sem_variable::merge): Likewise.
6075 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6076 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6077 * lto-cgraph.c (lto_output_node): Likewise.
6078 (lto_output_varpool_node): Likewise.
6079 (input_node): Likewise.
6080 (input_varpool_node): Likewise.
6081 * lto-streamer-out.c (lto_output): Likewise.
6082 * tree-inline.c (expand_call_inline): Remove usage of
6084 * tree-inline.h (struct copy_body_data): Likewise.
6085 * varpool.c (varpool_node::dump): Likewise.
6087 2019-02-13 Jakub Jelinek <jakub@redhat.com>
6090 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
6091 into pt->vars_contains_escaped_heap instead of setting
6092 pt->vars_contains_escaped_heap to it.
6095 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
6096 INTVAL (size), compare it to GET_MODE_MASK instead of
6097 1 << GET_MODE_BITSIZE.
6100 * config/i386/predicates.md (x86_64_immediate_operand): Allow
6101 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
6104 2019-02-13 Martin Liska <mliska@suse.cz>
6107 * cfgrtl.c (remove_barriers_from_footer): New function.
6108 (try_redirect_by_replacing_jump): Use it.
6109 (cfg_layout_redirect_edge_and_branch): Likewise.
6111 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
6113 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
6114 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
6115 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
6116 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
6117 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
6118 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
6120 * config/rs6000/rs6000.c (builtin_function_type)
6121 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
6122 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
6123 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
6124 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
6125 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
6127 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
6129 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
6130 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
6132 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
6135 * config/i386/i386.md (*movoi_internal_avx): Revert revision
6136 268678 and revision 268657.
6137 (*movti_internal): Likewise.
6139 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
6142 * config/s390/s390.c (s390_decompose_address): Update comment.
6143 (s390_check_qrst_address): Reject invalid address forms after
6146 2019-02-12 Martin Liska <mliska@suse.cz>
6149 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
6150 we need default values of funct_state for a function that
6153 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
6155 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
6156 the object to pick the size of stores on strict-alignment platforms.
6158 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
6159 (*movdi_insn_sp32): Likewise.
6160 (*movdi_insn_sp64): Likewise.
6162 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
6165 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
6166 types that needs constructiong.
6167 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
6169 2019-02-12 Richard Biener <rguenther@suse.de>
6171 PR tree-optimization/89253
6172 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
6175 2019-02-11 David Malcolm <dmalcolm@redhat.com>
6178 * input.c (selftest::test_line_offset_overflow): New selftest.
6179 (selftest::input_c_tests): Call it.
6181 2019-02-11 Martin Sebor <msebor@redhat.com>
6183 PR tree-optimization/88771
6184 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
6185 when -Wstringop-overflow is set.
6186 (builtin_memref::builtin_memref): Adjust excessive upper bound
6187 only when lower bound is not excessive.
6188 (maybe_diag_overlap): Detect and diagnose excessive bounds via
6189 -Wstringop-ovefflow.
6190 (maybe_diag_offset_bounds): Rename...
6191 (maybe_diag_access_bounds): ...to this.
6192 (check_bounds_or_overlap): Adjust for name change above.
6194 2019-02-11 Martin Sebor <msebor@redhat.com>
6197 * builtins.c (max_object_size): Move from here...
6198 * builtins.h (max_object_size): ...and here...
6199 * tree.c (max_object_size): ...to here...
6200 * tree.h (max_object_size): ...and here.
6202 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
6204 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
6205 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
6206 for correct semantics.
6208 2019-02-11 Alan Modra <amodra@gmail.com>
6210 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
6211 -mlongcall and -mpltseq.
6212 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
6213 (RS/6000 and PowerPC Options <-mpltseq>): Document.
6214 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
6215 * config/rs6000/sysv4.opt (mpltseq): New option.
6216 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
6217 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
6218 support is lacking. Don't allow -mpltseq with -mbss-plt.
6219 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
6220 -mpltseq given for ELFv1.
6221 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
6222 Only use UNSPEC_PLTSEQ for inline PLT calls.
6223 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
6224 use UNSPEC_PLTSEQ for inline PLT calls.
6225 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
6226 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
6227 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
6228 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
6229 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
6230 (pltseq_mtctr_<mode>): Likewise.
6232 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6234 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
6236 * configure: Regenerate.
6238 2019-02-11 Jakub Jelinek <jakub@redhat.com>
6241 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
6244 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
6246 * function.c (assign_parm_setup_block): Use the stored
6247 size, not the passed size, when allocating stack-space,
6248 also for a parameter with alignment larger than
6249 MAX_SUPPORTED_STACK_ALIGNMENT.
6251 2019-02-11 Martin Liska <mliska@suse.cz>
6254 * ipa-cp.c (build_toporder_info): Remove usage of a param.
6255 * ipa-inline.c (inline_small_functions): Likewise.
6256 * ipa-pure-const.c (propagate_pure_const): Likewise.
6257 (propagate_nothrow): Likewise.
6258 * ipa-reference.c (propagate): Likewise.
6259 * ipa-utils.c (struct searchc_env): Remove unused field.
6260 (searchc): Always search across AVAIL_INTERPOSABLE.
6261 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
6262 the only called IPA pure const can properly not propagate
6263 across interposable boundary.
6264 * ipa-utils.h (ipa_reduced_postorder): Remove param.
6266 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
6268 * config/nds32/nds32.md (call_internal, call_value_internal,
6269 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
6271 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
6273 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
6276 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
6278 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
6281 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
6283 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
6285 2019-02-10 Jakub Jelinek <jakub@redhat.com>
6287 PR tree-optimization/89268
6288 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
6289 if preds is non-NULL.
6291 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6294 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
6297 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
6299 * config/nds32/nds32.md (trap): New pattern.
6301 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
6303 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
6306 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
6308 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
6311 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6313 * ipa-visibility.c (localize_node): Also do not localize
6314 LDPR_PREVAILING_DEF_IRONLY_EXP.
6316 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6319 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
6320 instead of type_with_linkage.
6322 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6325 * params.def (uninlined-function-insns, uninlined-function-time,
6326 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
6327 bound so we don't get overflows.
6329 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
6331 * config/rs6000/rs6000-string.c (expand_compare_loop,
6332 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
6335 2019-02-09 Jakub Jelinek <jakub@redhat.com>
6338 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6339 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
6340 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
6342 2019-02-09 Alan Modra <amodra@gmail.com>
6345 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
6346 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
6349 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
6352 * lra-constraints.c (process_alt_operands): Don't increase reject
6353 for memory when offset memory is required.
6355 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
6357 * config/s390/vector.md: Implement vector copysign.
6359 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
6361 * expr.c (expand_constructor): Correct indentations.
6363 2019-02-08 Richard Biener <rguenther@suse.de>
6365 PR tree-optimization/89247
6366 * tree-if-conv.c: Include tree-cfgcleanup.h.
6367 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
6368 (tree_if_conversion): Pass through predicate vector.
6369 (pass_if_conversion::execute): Do CFG cleanup and SSA update
6370 inline, see if any if-converted loops we refrece in
6371 LOOP_VECTORIZED calls vanished and fixup.
6372 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
6374 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
6376 * config/s390/constraints.md (jdd): New constraint.
6378 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
6381 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
6382 upper 16 vector registers without TARGET_AVX512VL.
6383 (*movti_internal): Likewise.
6385 2019-02-08 Jakub Jelinek <jakub@redhat.com>
6387 PR rtl-optimization/89234
6388 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
6389 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
6390 (copy_reg_eh_region_note_backward): Likewise.
6392 2019-02-08 Richard Biener <rguenther@suse.de>
6395 * tree-data-ref.c (initialize_matrix_A): Fail if constant
6397 (analyze_subscript_affine_affine): Handle failure from
6398 initialize_matrix_A.
6400 2019-02-08 Jakub Jelinek <jakub@redhat.com>
6402 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
6405 2019-02-07 David Malcolm <dmalcolm@redhat.com>
6407 PR tree-optimization/86637
6408 PR tree-optimization/89235
6409 * tree-vect-loop.c (optimize_mask_stores): Add an
6410 auto_purge_vect_location sentinel to ensure that vect_location is
6413 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
6414 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
6415 to ensure that vect_location is purged on exit.
6416 (pass_slp_vectorize::execute): Likewise, replacing the manual
6418 * tree-vectorizer.h (class auto_purge_vect_location): New class.
6420 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6422 * config/aarch64/iterators.md (max_opp): New code_attr.
6423 (USMAX): New code iterator.
6424 * config/aarch64/predicates.md (aarch64_smin): New predicate.
6425 (aarch64_smax): Likewise.
6426 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
6427 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
6430 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
6433 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
6434 for TARGET_AVX512VL.
6435 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
6437 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
6439 * config/s390/s390-builtin-types.def: Add new types.
6440 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
6441 (s390_vec_xlw4): Make the memory operand into a const pointer.
6442 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
6444 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
6445 a new vector type with the alignment of the scalar memory operand.
6447 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
6448 Jakub Jelinek <jakub@redhat.com>
6451 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
6452 arm_count_ldrdstrd_insns): New declarations.
6453 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
6455 (valid_operands_ldrd_strd): New function.
6456 (arm_count_ldrdstrd_insns): New function.
6457 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
6458 sets instead of single DImode set and define new insns to match this.
6460 2019-02-07 Tamar Christina <tamar.christina@arm.com>
6462 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
6463 Make it a C initializer.
6465 2019-02-07 Tamar Christina <tamar.christina@arm.com>
6468 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
6470 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6472 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
6473 Use neon_dot<q> for type.
6474 (neon_<sup>dot_lane<vsi2qi>): Likewise.
6476 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6478 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
6479 Use neon_dot<q> for type.
6480 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
6481 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
6483 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
6485 PR rtl-optimization/89225
6486 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
6489 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
6491 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
6492 after restoring registers saved to allocate the frame on Windows.
6494 2019-02-06 Richard Biener <rguenther@suse.de>
6496 PR tree-optimization/89182
6497 * graphite.h (cached_scalar_evolution_in_region): Declare.
6498 * graphite.c (struct seir_cache_key): New.
6499 (struct sese_scev_hash): Likewise.
6500 (seir_cache): New global.
6501 (cached_scalar_evolution_in_region): New function.
6502 (graphite_transform_loops): Allocate and release seir_cache.
6503 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
6504 cached_scalar_evolution_in_region.
6505 * graphite-scop-detection.c (scop_detection::can_represent_loop):
6507 (scop_detection::graphite_can_represent_expr: Use
6508 cached_scalar_evolution_in_region.
6509 (scop_detection::stmt_simple_for_scop_p): Likewise.
6510 (find_params_in_bb): Likewise.
6511 (gather_bbs::before_dom_children): Likewise.
6512 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
6513 (add_loop_constraints): Likewise.
6515 2019-02-06 Jakub Jelinek <jakub@redhat.com>
6518 * fold-const-call.c (fold_const_vec_convert): Pass true as last
6519 operand to new_unary_operation only if both element types are integral
6520 and it isn't a widening conversion. Return NULL_TREE if
6521 new_unary_operation failed.
6523 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
6526 * config/s390/s390.md: Remove load and test FP splitter.
6528 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
6531 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
6532 expand_compare_loop, expand_block_compare_gpr,
6533 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
6534 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
6535 #include "profile-count.h" and "predict.h" for types and functions
6536 needed to work with REG_BR_PROB notes.
6538 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
6541 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
6542 for the long branch case.
6544 2019-02-05 Jakub Jelinek <jakub@redhat.com>
6547 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
6548 can throw, non-call exceptions are enabled and we can't delete
6549 dead exceptions or alter cfg. Set must_clean if
6550 delete_insn_and_edges returns true, don't set it blindly for calls.
6551 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
6553 PR rtl-optimization/89195
6554 * combine.c (make_extraction): For MEMs, don't extract bytes outside
6555 of the original MEM.
6557 2019-02-05 Martin Liska <mliska@suse.cz>
6559 PR gcov-profile/89000
6560 * gcov.c (function_summary): Remove argument.
6561 (file_summary): New function.
6562 (print_usage): Replace tabs with spaces.
6563 (generate_results): Use new function file_summary.
6565 2019-02-05 Jakub Jelinek <jakub@redhat.com>
6568 * optabs.c (prepare_cmp_insn): Pass x and y to
6569 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
6571 2019-02-05 Richard Biener <rguenther@suse.de>
6574 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
6575 (struct bitmap_element): Drop chain_prev so we properly recurse on
6576 the prev member, supporting tree views.
6577 (struct bitmap_head): GTY skip the obstack member.
6579 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
6582 * doc/extend.texi (Vector Extensions): Add an example of using vector
6583 types together with x86 intrinsics.
6585 2019-02-04 Alan Modra <amodra@gmail.com>
6587 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
6588 str[] size to 160, and comment.
6590 2019-02-04 Alan Modra <amodra@gmail.com>
6592 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
6593 (rs6000_pltseq_template): Guard output of TLS markers with
6595 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
6596 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
6597 to use inline PLT sequences.
6598 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
6599 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
6600 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
6602 2019-02-04 Martin Liska <mliska@suse.cz>
6605 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
6606 out when ipa_fn_summaries does not contain entry for callee.
6608 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
6610 * config/sparc/sparc.h: Remove superfluous blank lines.
6611 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
6612 (got_register_rtx): ...this.
6613 (sparc_got): Adjust to above renaming.
6614 (sparc_tls_got): Likewise.
6615 (sparc_delegitimize_address): Likewise.
6616 (sparc_output_mi_thunk): Likewise.
6617 (sparc_init_pic_reg): Likewise.
6618 (save_local_or_in_reg_p): Fix test on the GOT register.
6619 (USE_HIDDEN_LINKONCE): Move around.
6620 (get_pc_thunk_name): Likewise.
6621 (gen_load_pcrel_sym): Likewise.
6622 (load_got_register): Likewise.
6624 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
6626 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
6627 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
6629 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
6631 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
6634 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
6636 * config.gcc (with_nds32_lib, glibc):
6637 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
6638 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
6639 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
6641 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
6644 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
6645 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
6646 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
6647 (*rcpsf2_sse): Ditto.
6648 (*rsqrtsf2_sse): Ditto.
6649 (sse4_1_round<mode<2): Ditto.
6651 2019-02-03 Richard Biener <rguenther@suse.de>
6654 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
6657 2019-02-02 Jakub Jelinek <jakub@redhat.com>
6660 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6661 Punt with warning on aggregate return or argument types. Ignore
6662 type/mode checking for uniform arguments.
6664 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
6666 * combine.c (try_combine): Do not print "Can't combine" messages unless
6667 printing failed combination attempts.
6669 2019-02-01 Martin Jambor <mjambor@suse.cz>
6672 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
6673 segment and global segment variables before making them static.
6675 2019-02-01 Martin Jambor <mjambor@suse.cz>
6677 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
6678 missed optimization dump with dump_enabled_p.
6680 2019-02-01 Richard Biener <rguenther@suse.de>
6683 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
6684 the instantiate cache.
6685 (instantiate_scev_binary): Elide second operand procesing
6686 if equal to the first.
6687 * tree-chrec.c (chrec_contains_symbols): Add visited set.
6688 (chrec_contains_undetermined): Likewise.
6689 (tree_contains_chrecs): Likewise.
6691 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
6693 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
6695 2019-02-01 Jakub Jelinek <jakub@redhat.com>
6697 PR tree-optimization/89143
6698 * wide-int-range.h (wide_int_range_absu): Declare.
6699 * wide-int-range.cc (wide_int_range_absu): New function.
6700 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
6702 PR tree-optimization/88107
6703 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
6704 instead of assertion that eh_region_outermost is non-NULL, if it
6705 is NULL, set *ALL to true and return NULL.
6706 (move_sese_region_to_fn): Adjust caller, if all is set, call
6707 duplicate_eh_regions with NULL region.
6709 2019-02-01 Richard Biener <rguenth@suse.de>
6711 PR rtl-optimization/88593
6712 * mode-switching.c (optimize_mode_switching): Free dominators before
6713 calling cleanup_cfg.
6715 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
6717 PR tree-optimization/88932
6718 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
6720 2019-01-31 Jakub Jelinek <jakub@redhat.com>
6723 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
6724 bogus clang warning.
6726 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
6729 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
6730 alternative to avoid partial SSE register stall for TARGET_AVX.
6731 (truncdfsf2): Ditto.
6732 (sse4_1_round<mode>2): Ditto.
6734 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
6736 PR tree-optimization/89008
6737 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
6738 process anything of the form X * 0.
6740 2019-01-31 Richard Biener <rguenther@suse.de>
6742 PR tree-optimization/89135
6743 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
6744 with abnormal preds.
6746 2019-01-31 Jakub Jelinek <jakub@redhat.com>
6749 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
6750 always_inline callees into no_sanitize_address callers.
6752 2019-01-31 Richard Biener <rguenther@suse.de>
6754 PR rtl-optimization/89115
6755 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
6757 2019-01-30 Martin Sebor <msebor@redhat.com>
6760 * doc/extend.texi (cast to a union): Correct and expand.
6762 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
6764 PR rtl-optimization/87246
6765 * lra-constraints.c (simplify_operand_subreg): Reload memory
6766 in subreg if the address became invalid.
6768 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
6771 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
6772 Disable for little-endian.
6774 2019-01-30 Richard Biener <rguenther@suse.de>
6776 PR rtl-optimization/89115
6777 * opts.c (default_options_optimization): Reduce
6778 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
6779 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
6782 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
6784 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
6785 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
6786 type of vector element when vec_extract is implemented by direct
6789 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
6791 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
6793 2019-01-30 Richard Biener <rguenther@suse.de>
6795 PR tree-optimization/89111
6796 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
6797 canonicalization to appropriately sized access types.
6799 2019-01-30 Jakub Jelinek <jakub@redhat.com>
6802 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
6803 for arguments to functions that are TU-local and shouldn't be
6804 referenced by assembly.
6806 2019-01-30 Ulrich Drepper <drepper@redhat.com>
6808 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
6811 2019-01-29 Martin Sebor <msebor@redhat.com>
6814 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
6816 2019-01-29 Jakub Jelinek <jakub@redhat.com>
6820 * omp-simd-clone.c (simd_clone_clauses_extract)
6821 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
6822 OMP_CLAUSE_ALIGNED_ALIGNMENT.
6824 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
6826 * config.gcc: Force .init_array for ARC.
6828 2019-01-29 Richard Biener <rguenther@suse.de>
6831 * dwarf2out.c (collect_skeleton_dies): New helper.
6832 (copy_decls_for_unworthy_types): Call it.
6833 (build_abbrev_table): Assert we do not try to replace
6834 DW_AT_signature refs with local refs.
6836 2019-01-28 Jakub Jelinek <jakub@redhat.com>
6839 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
6840 for lastprivate/linear IV, push gimplify context around gimplify_assign
6841 and, if it needed any temporaries, pop it into a gimple bind around the
6844 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
6846 * common.opt (-Wattribute-alias): Remove "no-" from name.
6847 Make -Wattribute-alias command line option and
6848 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
6850 2019-01-28 Jakub Jelinek <jakub@redhat.com>
6853 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
6854 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
6856 (bmi2): Add missing @opindex.
6857 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
6858 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
6859 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
6860 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
6861 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
6862 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
6863 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
6864 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
6865 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
6866 xsavec, xsaveopt and xsaves options.
6868 2019-01-28 Richard Biener <rguenther@suse.de>
6871 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
6874 2019-01-28 Richard Biener <rguenther@suse.de>
6876 PR tree-optimization/88739
6877 * tree-cfg.c (verify_types_in_gimple_reference): Verify
6878 BIT_FIELD_REFs only are applied to mode-precision operands
6879 when they are integral.
6880 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
6881 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
6882 BIT_FIELD_REFs of non-mode-precision integral operands.
6884 2019-01-27 Jakub Jelinek <jakub@redhat.com>
6887 * config/i386/sse.md
6888 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
6889 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
6890 first constants in pairs are multiples of 2. Formatting fixes.
6891 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
6892 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
6893 first constants in each quadruple are multiples of 4. Formatting fixes.
6895 2019-01-26 Martin Jambor <mjambor@suse.cz>
6898 * tree-inline.c: Include tree-cfgcleanup.h.
6899 (delete_unreachable_blocks_update_callgraph): Move...
6900 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
6901 ...here, make externally visible, make second argument bool, adjust
6903 * tree-cfgcleanup.c: Include cgraph.h.
6904 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
6906 * ipa-prop.c: Include tree-cfgcleanup.h.
6907 (ipcp_transform_function): Call
6908 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
6910 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
6912 PR rtl-optimization/88846
6913 * ira.c (process_set_for_memref_referenced_p): New.
6914 (memref_referenced_p): Add new param. Use
6915 process_set_for_memref_referenced_p. Add new switch cases.
6916 (memref_used_between_p): Pass new arg to memref_referenced_p.
6918 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
6921 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
6922 argument ABI_BREAK. Set to true if the calculated alignment has
6923 changed in gcc-9. Check bit-fields for their base type alignment.
6924 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
6925 (aarch64_function_arg_boundary): Likewise.
6926 (aarch64_gimplify_va_arg_expr): Likewise.
6928 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
6931 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
6932 instead of accessing TREE_INT_CST_ELT directly.
6934 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
6936 * doc/sourcebuild.texi (Environment attributes): Add fenv and
6937 fenv_exceptions description.
6939 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
6941 PR rtl-optimization/87763
6942 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
6943 Allow SUBREG when matching CC_NZmode compare.
6945 2019-01-25 Richard Biener <rguenther@suse.de>
6947 PR tree-optimization/89049
6948 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
6949 Look at the pattern stmt to determine if the stmt is vectorized.
6951 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
6953 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
6954 (pred_mov<mode>): Handle all-register forms using both a new
6955 alternative and a split.
6957 2019-01-25 Richard Biener <rguenther@suse.de>
6959 PR tree-optimization/86865
6960 * graphite-scop-detection.c (scop_detection::can_represent_loop):
6961 Reject non-do-while loops.
6963 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
6965 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
6966 * config/rs6000/constraints.md (Q constraint): Use REG_P.
6967 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
6968 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
6969 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
6970 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6971 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
6972 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
6973 vlogical_operand, gpc_reg_operand, int_reg_operand,
6974 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
6975 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
6976 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
6977 (save_world_operation, restore_world_operation, lmw_operation,
6978 stmw_operation): Use MEM_P and REG_P.
6979 (tie_operand): Use MEM_P.
6980 (vrsave_operation, crsave_operation): Use REG_P.
6981 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
6982 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
6983 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
6984 (call_operand): Use HARD_REGISTER_P.
6985 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
6987 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
6988 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
6989 quad_aligned_load_p, replace_swapped_aligned_store,
6990 recombine_lvx_pattern, replace_swapped_aligned_load,
6991 recombine_stvx_pattern): Use MEM_P.
6992 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
6993 Use MEM_P and SYMBOL_REF_P.
6994 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
6995 (insn_is_swappable_p): Use REG_P and MEM_P.
6996 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
6997 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
6999 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
7001 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
7003 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
7004 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
7005 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
7006 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
7008 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
7009 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
7010 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
7011 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
7012 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
7013 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
7014 rs6000_split_logical_di): Use CONST_INT_P.
7015 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
7016 REG_P and SYMBOL_REF_P.
7017 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
7018 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
7019 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
7020 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
7021 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
7022 (small_data_operand, print_operand_address): Use CONST_INT_P and
7024 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
7025 (rs6000_init_hard_regno_mode_ok, direct_move_p):
7026 Use HARD_REGISTER_NUM_P.
7027 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
7028 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
7029 SUBREG_P and SYMBOL_REF_P.
7030 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
7031 and HARD_REGISTER_NUM_P.
7032 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
7034 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
7035 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
7037 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
7038 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
7039 find_addr_reg): Use REG_P.
7040 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
7041 (rs6000_emit_le_vsx_move): Use SUBREG_P.
7042 (offsettable_ok_by_alignment, constant_pool_expr_p,
7043 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
7044 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
7045 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
7046 rs6000_assemble_integer, create_TOC_reference,
7047 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
7048 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
7049 (rs6000_split_vec_extract_var): Use reg_or_subregno.
7050 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
7051 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
7052 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7053 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7054 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
7055 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
7056 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
7057 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
7058 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
7059 and cbranch<mode>4): Use CONST_INT_P.
7060 (multiple define_splits): Use REG_P and SUBREG_P.
7061 (define_expands call, call_value): Use MEM_P.
7062 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
7063 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
7064 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
7065 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
7066 and HARD_REGISTER_NUM_P.
7067 (multiple define_splits): Use HARD_REGISTER_NUM_P.
7069 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
7071 PR rtl-optimization/88948
7072 * rtl.h (prepare_copy_insn): New prototype.
7073 * gcse.c (prepare_copy_insn): New function, split out from
7074 process_insert_insn.
7075 (process_insert_insn): Use prepare_copy_insn.
7076 * store-motion.c (replace_store_insn): Use prepare_copy_insn
7077 instead of gen_move_insn.
7079 2019-01-24 Jakub Jelinek <jakub@redhat.com>
7082 * config/i386/i386.c (ix86_pic_register_p): Return true for
7085 PR tree-optimization/88964
7086 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
7087 punt if HONOR_SNANS (chrec).
7090 * tree-nested.c (convert_nonlocal_reference_stmt,
7091 convert_local_reference_stmt, convert_tramp_reference_stmt,
7092 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
7093 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
7096 PR tree-optimization/89027
7097 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
7098 for "omp simd array" variables.
7100 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
7103 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
7104 force the alignment of m_val.
7106 2019-01-24 Richard Biener <rguenther@suse.de>
7109 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
7110 When in "legacy" debug mode make sure to reset self-origins.
7112 2019-01-24 Martin Liska <mliska@suse.cz>
7114 PR gcov-profile/88994
7115 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
7116 result will be always smaller or equal to the original.
7117 * gcov.c (mangle_name): Fix else branch where we should
7118 also copy to PTR and shift the pointer.
7120 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
7122 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
7123 * vr-values.c (find_case_label_ranges): Fix a comment typo.
7125 2019-01-23 Bin Cheng <bin.cheng@arm.com>
7126 Steve Ellcey <sellcey@marvell.com>
7129 * recog.c (address_operand): Return false on wrong mode for address.
7130 (constrain_operands): Check for mode with 'p' constraint.
7132 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
7135 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
7136 Disparage MMX alternative.
7137 (sse2_cvtpd2pi): Ditto.
7138 (sse2_cvttpd2pi): Ditto.
7140 2019-01-23 David Malcolm <dmalcolm@redhat.com>
7143 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
7144 use-after-free of the result of
7145 aarch64_get_extension_string_for_isa_flags.
7147 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7150 * doc/extend.texi: Document break and continue behavior in
7151 statement expressions.
7153 2019-01-23 Richard Biener <rguenther@suse.de>
7155 PR tree-optimization/89008
7156 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
7157 not leave another stray operand.
7159 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7161 * BASE-VER: Bump to 9.0.1.
7163 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
7165 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
7166 thunk that returns by reference, use the type of the return object
7167 of the thunk instead of that of the alias to build the dereference.
7169 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
7171 * config/arc/atomic.md: Add operand to DMB instruction.
7173 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7175 PR tree-optimization/88964
7176 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
7177 build_zero_cst instead of build_int_cst. Return false for loop
7178 invariants which honor signed zeros.
7180 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
7182 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
7184 2019-01-22 Jakub Jelinek <jakub@redhat.com>
7187 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
7188 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
7189 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
7192 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
7193 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
7196 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
7197 Disable for little endian.
7199 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
7202 * config/arm/arm.c (arm_needs_double_word_align): Check
7203 DECL_BIT_FIELD_TYPE.
7205 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
7206 H.J. Lu <hongjiu.lu@intel.com>
7209 * config/i386/i386-builtin.def: Add mask2 to all builtin
7210 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
7212 * config/i386/i386.c (BDESC): Add mask2 to the definition.
7213 (BDESC_FIRST): Likewise.
7214 (define_builtin): Add an argument for mask2. Updated to handle
7215 both ix86_isa_flags and ix86_isa_flags2.
7216 (define_builtin_const): Likewise.
7217 (define_builtin_pure): Likewise.
7218 (define_builtin2): Deleted.
7219 (define_builtin_const2): Likewise.
7220 (builtin_description): Add a member, mask2.
7221 (bdesc_*): Add mask2 to builtin initializations.
7222 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
7223 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
7225 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
7227 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
7230 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
7233 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
7236 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
7237 alignment is dominated by a bitfield with 64-bit aligned base type.
7238 (arm_function_arg): Emit a warning if the alignment has changed since
7239 earlier GCC releases.
7240 (arm_function_arg_boundary): Likewise.
7241 (arm_setup_incoming_varargs): Likewise.
7243 2019-01-22 Richard Biener <rguenther@suse.de>
7245 PR tree-optimization/88862
7246 * graphite-scop-detection.c
7247 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
7249 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
7251 * doc/extend.tex (AMD GCN Function Attributes): New section.
7252 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
7253 * doc/invoke.texi (AMD GCN Options): New section.
7254 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
7256 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
7258 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
7259 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
7261 2019-01-22 Jakub Jelinek <jakub@redhat.com>
7263 PR tree-optimization/88044
7264 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
7265 is false in the first iteration, but !every_iteration, return false
7266 instead of true with niter->niter zero.
7268 PR rtl-optimization/88904
7269 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
7270 any nonequal registers before processing BB_END (b).
7273 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
7275 (expand_binop_directly, expand_doubleword_clz,
7276 expand_doubleword_popcount, expand_ctz, expand_ffs,
7277 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
7279 PR rtl-optimization/49429
7281 PR rtl-optimization/86334
7283 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
7284 addressable from here...
7285 (emit_block_op_via_libcall): ... to here.
7287 2019-01-22 Richard Biener <rguenther@suse.de>
7289 * tree-vect-loop.c (vect_analyze_loop_operations): Use
7290 auto_vec for cost vector to fix memleak.
7291 (vectorize_fold_left_reduction): Properly gather SLP defs.
7292 (vectorizable_comparison): Do not swap operands to properly
7295 2019-01-22 Alan Modra <amodra@gmail.com>
7298 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
7299 stays a reg. Allow a const_int.
7300 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
7301 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
7302 (IS_NOMARK_TLSGETADDR): Define.
7303 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
7304 (rs6000_output_tlsargs): New function.
7305 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
7306 __tls_get_addr call takes an arg.
7307 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
7308 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
7310 (call_value_nonlocal_sysv): ..or here, delete split.
7311 (tls_gdld_nomark): Delete.
7312 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
7313 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
7314 (call_value_nonlocal_sysv): Likewise.
7315 (call_value_nonlocal_sysv_secure): Likewise.
7316 (call_value_nonlocal_aix): Likewise.
7317 (call_value_indirect_aix): Likewise.
7318 (call_value_indirect_elfv2): Likewise.
7319 (call_value_local32, call_value_local64): Disable for no-mark tls.
7320 (call_value_local_aix): Likewise.
7322 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
7325 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
7326 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
7328 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
7330 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
7331 string contents as hash_map keys.
7333 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7336 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
7337 for rvalue context. Handle rvalues correctly. Use min_align_of_type
7338 instead of TYPE_ALIGN.
7339 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
7340 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
7341 pointer from TYPE_STUB_DECL.
7343 2019-01-21 Richard Biener <rguenther@suse.de>
7345 PR tree-optimization/88934
7346 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
7347 at the possibly non-constant operand.
7348 (vect_get_constant_vectors): Adjust.
7350 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7353 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
7354 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
7355 instead of _X86INTRIN_H_INCLUDED.
7356 * onfig/i386/clwbintrin.h: Likewise.
7357 * config/i386/pkuintrin.h: Likewise.
7358 * config/i386/prfchwintrin.h: Likewise.
7359 * config/i386/rdseedintrin.h: Likewise.
7360 * config/i386/wbnoinvdintrin.h: Likewise.
7361 * config/i386/xsavecintrin.h: Likewise.
7362 * config/i386/xsavesintrin.h: Likewise.
7363 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
7364 * config/i386/xsaveintrin.h: Likewise.
7365 * config/i386/xsaveoptintrin.h: Likewise.
7366 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
7367 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
7368 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
7369 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
7370 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
7371 * config/i386/immintrin.h: Here.
7373 2019-01-20 Martin Jambor <mjambor@suse.cz>
7376 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
7377 with aa_walk_budget.
7378 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
7379 aa_walk_budget_p parameter.
7380 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
7381 walk. Updated all callers.
7382 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
7383 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
7385 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
7386 parameter info. Extract info from fbi. Pass fbi to recursive calls
7387 and to unmodified_parm.
7388 (phi_result_unknown_predicate): New parameter fbi, removed parameter
7389 info, updated call to will_be_nonconstant_expr_predicate.
7390 (param_change_prob): New parameter fbi, limit AA walking.
7391 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
7392 calls to various above functions.
7393 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
7394 parameter. Use it to limit AA walking.
7395 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
7397 (detect_type_change): New parameter fbi, pass it on to
7398 detect_type_change_from_memory_writes.
7399 (detect_type_change_ssa): Likewise.
7400 (aa_overwalked): Removed.
7401 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
7402 accordingly, adjust to the neew AA limiting scheme.
7403 (parm_ref_data_preserved_p): Likewise.
7404 (ipa_compute_jump_functions_for_edge): Adjust call to
7406 (ipa_analyze_call_uses): Likewise.
7407 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
7408 (ipa_analyze_node): Initialize aa_walk_budget.
7409 (ipcp_transform_function): Likewise.
7410 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
7411 to get_dynamic_type.
7413 2019-01-19 Jakub Jelinek <jakub@redhat.com>
7415 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
7416 outside of #if CHECKING_P code.
7418 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
7420 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
7421 New function, split out from...
7422 (loop_versioning::analyze_stride): ...here.
7423 (loop_versioning::find_per_loop_multiplication): Use gassign.
7424 (loop_versioning::analyze_term_using_scevs): Return a success code.
7425 (loop_versioning::analyze_arbitrary_term): New function.
7426 (loop_versioning::analyze_address_fragment): Use
7427 analyze_arbitrary_term if all else fails.
7429 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
7432 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
7435 2019-01-18 Richard Biener <rguenther@suse.de>
7437 PR tree-optimization/88903
7438 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
7439 scalar stmts a SLP shift amount is composed of when detecting
7442 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
7445 * config/arm/arm-cpus.in (mp): New feature.
7447 (fgroup ARMv7ve): Add mp and sec features.
7448 (arch armv7-a): Add options to allow mp and sec extensions.
7449 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
7450 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
7451 extenstions to the base architecture.
7452 (cpu cortex-a8): Add sec extension to the base architecture.
7453 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
7454 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
7455 variants down to the base v7-a varaint.
7456 * config/arm/t-multilib (v7_a_arch_variants): New variable.
7457 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
7458 of permitted extensions for -march=armv7-a and for
7459 -mcpu=generic-armv7-a.
7461 2019-01-18 Martin Liska <mliska@suse.cz>
7463 * params.def: Fix comment.
7464 * tree-profile.c (gimple_init_gcov_profiler): Bump function
7466 (gimple_gen_ic_func_profiler): Likewise.
7468 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7470 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
7471 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
7472 and put in error checks for stack protector guard options.
7473 (aarch64_stack_protect_guard): New.
7474 (TARGET_STACK_PROTECT_GUARD): Define.
7475 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
7476 (reg_stack_protect_address<mode>): New.
7477 (stack_protect_set): Adjust for SSP_GLOBAL.
7478 (stack_protect_test): Likewise.
7479 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
7480 (-mstack-protector-guard): Likewise.
7481 (-mstack-protector-guard-offset): Likewise.
7483 2019-01-18 Jakub Jelinek <jakub@redhat.com>
7485 PR tree-optimization/86214
7486 * tree-inline.h (struct copy_body_data): Add
7487 add_clobbers_to_eh_landing_pads member.
7488 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
7489 (copy_edges_for_bb): Call it if EH edge destination is <
7490 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
7491 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
7492 if flag_stack_reuse != SR_NONE and clear it afterwards.
7494 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
7497 * doc/install.texi (with-multilib-list): Document for aarch64.
7499 2019-01-18 Jakub Jelinek <jakub@redhat.com>
7502 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
7503 (("..."))) with ("...").
7505 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
7507 * doc/extend.texi (Built-in Functions for Memory Model Aware
7508 Atomic Operations): Document atomic fetch and nand.
7510 2019-01-18 Martin Liska <mliska@suse.cz>
7511 Richard Biener <rguenther@suse.de>
7514 * cgraph.h (create_version_clone_with_body): Add new argument
7516 * cgraphclones.c (cgraph_node::create_version_clone): Add
7517 DECL_ATTRIBUTES to a newly created decl. And call
7518 valid_attribute_p so that proper cl_target_optimization_node
7519 is set for the newly created declaration.
7520 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
7522 (expand_target_clones): Do not call valid_attribute_p, it must
7524 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
7527 2019-01-17 Jakub Jelinek <jakub@redhat.com>
7530 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
7531 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
7532 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
7534 2019-01-17 Martin Sebor <msebor@redhat.com>
7537 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
7538 Handle anti-ranges the same as no range at all.
7540 2018-01-17 Steve Ellcey <sellcey@cavium.com>
7542 * config/aarch64/aarch64.c (cgraph.h): New include.
7543 (intl.h): New include.
7544 (supported_simd_type): New function.
7545 (currently_supported_simd_type): Ditto.
7546 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
7547 (aarch64_simd_clone_adjust): Ditto.
7548 (aarch64_simd_clone_usable): Ditto.
7549 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
7550 (TARGET_SIMD_CLONE_ADJUST): Ditto.
7551 (TARGET_SIMD_CLONE_USABLE): Ditto.
7552 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
7553 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
7556 2019-01-17 Martin Sebor <msebor@redhat.com>
7558 PR tree-optimization/88800
7559 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
7560 NO_WARNING bit here. Avoid folding out-of-bounds calls.
7561 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
7562 redundant argument. Add new argument and issue diagnostics under
7563 its control. Detect out-of-bounds access even with warnings
7565 (check_bounds_or_overlap): Change return type. Add argument.
7566 (wrestrict_dom_walker::check_call): Adjust.
7567 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
7568 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
7569 check_bounds_or_overlap's return value.
7570 (handle_builtin_stxncpy): Same.
7571 (handle_builtin_strcat): Same.
7573 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7574 Kwok Cheung Yeung <kcy@codesourcery.com>
7575 Julian Brown <julian@codesourcery.com>
7576 Tom de Vries <tom@codesourcery.com>
7578 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
7580 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7582 * doc/sourcebuild.texi: Document dg-require-effective-target
7583 llvm_binutils and offload_gcn.
7585 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7586 Kwok Cheung Yeung <kcy@codesourcery.com>
7587 Julian Brown <julian@codesourcery.com>
7588 Tom de Vries <tom@codesourcery.com>
7590 * doc/sourcebuild.texi: Document dg-required-effective-target
7593 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7594 Kwok Cheung Yeung <kcy@codesourcery.com>
7595 Julian Brown <julian@codesourcery.com>
7596 Tom de Vries <tom@codesourcery.com>
7597 Jan Hubicka <hubicka@ucw.cz>
7598 Martin Jambor <mjambor@suse.cz>
7600 * config.gcc: Add amdgcn*-*-amdhsa configuration.
7601 * configure.ac: Check for dlopen.
7602 * configure: Regenerate.
7604 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7605 Kwok Cheung Yeung <kcy@codesourcery.com>
7606 Julian Brown <julian@codesourcery.com>
7607 Tom de Vries <tom@codesourcery.com>
7608 Jan Hubicka <hubicka@ucw.cz>
7609 Martin Jambor <mjambor@suse.cz>
7611 * common/config/gcn/gcn-common.c: New file.
7612 * config/gcn/driver-gcn.c: New file.
7613 * config/gcn/gcn-builtins.def: New file.
7614 * config/gcn/gcn-hsa.h: New file.
7615 * config/gcn/gcn-modes.def: New file.
7616 * config/gcn/gcn-opts.h: New file.
7617 * config/gcn/gcn-passes.def: New file.
7618 * config/gcn/gcn-protos.h: New file.
7619 * config/gcn/gcn-run.c: New file.
7620 * config/gcn/gcn-tree.c: New file.
7621 * config/gcn/gcn.c: New file.
7622 * config/gcn/gcn.h: New file.
7623 * config/gcn/gcn.opt: New file.
7624 * config/gcn/t-gcn-hsa: New file.
7626 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7627 Kwok Cheung Yeung <kcy@codesourcery.com>
7628 Julian Brown <julian@codesourcery.com>
7629 Tom de Vries <tom@codesourcery.com>
7630 Jan Hubicka <hubicka@ucw.cz>
7631 Martin Jambor <mjambor@suse.cz>
7633 * config/gcn/constraints.md: New file.
7634 * config/gcn/gcn-valu.md: New file.
7635 * config/gcn/gcn.md: New file.
7636 * config/gcn/predicates.md: New file.
7638 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
7640 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
7641 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
7642 (stmt_uses_0_or_null_in_undefined_way): Likewise.
7643 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
7645 2019-01-17 Tamar Christina <tamar.christina@arm.com>
7648 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
7649 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
7650 it and document registers.
7652 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7654 * config/aarch64/aarch64.c (ares_tunings): Define.
7655 * config/aarch64/aarch64-cores.def (ares): Use the above.
7657 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7661 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
7663 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
7664 (_mm512_fixupimm_round_pd): Update parameters and builtin.
7665 (_mm512_maskz_fixupimm_round_pd): Ditto.
7666 (_mm512_fixupimm_round_ps): Ditto.
7667 (_mm512_maskz_fixupimm_round_ps): Ditto.
7668 (_mm_fixupimm_round_sd): Ditto.
7669 (_mm_maskz_fixupimm_round_sd): Ditto.
7670 (_mm_fixupimm_round_ss): Ditto.
7671 (_mm_maskz_fixupimm_round_ss): Ditto.
7672 (_mm512_fixupimm_pd): Ditto.
7673 (_mm512_maskz_fixupimm_pd): Ditto.
7674 (_mm512_fixupimm_ps): Ditto.
7675 (_mm512_maskz_fixupimm_ps): Ditto.
7676 (_mm_fixupimm_sd): Ditto.
7677 (_mm_maskz_fixupimm_sd): Ditto.
7678 (_mm_fixupimm_ss): Ditto.
7679 (_mm_maskz_fixupimm_ss): Ditto.
7680 (_mm512_mask_fixupimm_round_pd): Update builtin.
7681 (_mm512_mask_fixupimm_round_ps): Ditto.
7682 (_mm_mask_fixupimm_round_sd): Ditto.
7683 (_mm_mask_fixupimm_round_ss): Ditto.
7684 (_mm512_mask_fixupimm_pd): Ditto.
7685 (_mm512_mask_fixupimm_ps): Ditto.
7686 (_mm_mask_fixupimm_sd): Ditto.
7687 (_mm_mask_fixupimm_ss): Ditto.
7688 * config/i386/avx512vlintrin.h:
7689 (_mm256_fixupimm_pd): Update parameters and builtin.
7690 (_mm256_maskz_fixupimm_pd): Ditto.
7691 (_mm256_fixupimm_ps): Ditto.
7692 (_mm256_maskz_fixupimm_ps): Ditto.
7693 (_mm_fixupimm_pd): Ditto.
7694 (_mm_maskz_fixupimm_pd): Ditto.
7695 (_mm_fixupimm_ps): Ditto.
7696 (_mm_maskz_fixupimm_ps): Ditto.
7697 (_mm256_mask_fixupimm_pd): Update builtin.
7698 (_mm256_mask_fixupimm_ps): Ditto.
7699 (_mm_mask_fixupimm_pd): Ditto.
7700 (_mm_mask_fixupimm_ps): Ditto.
7701 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
7702 * config/i386/i386-builtin.def: Update builtin definitions.
7703 * config/i386/i386.c: Handle new builtin types and remove useless ones.
7704 * config/i386/sse.md: Update VFIXUPIMM* patterns.
7705 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7706 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7707 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
7708 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7709 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7710 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
7711 * config/i386/subst.md:
7712 (round_saeonly_sd_mask_operand4): Add new subst_attr.
7713 (round_saeonly_sd_mask_op4): Ditto.
7714 (round_saeonly_expand_operand5): Ditto.
7715 (round_saeonly_expand): Update.
7717 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7721 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
7723 * config/i386/sse.md: Combine VFIXUPIMM* patterns
7724 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7725 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7726 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
7727 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7728 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7729 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
7731 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7735 2018-12-15 Jakub Jelinek <jakub@redhat.com>
7738 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
7739 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
7740 instead of UNSPEC_FIXUPIMM.
7742 2019-01-17 Richard Biener <rguenther@suse.de>
7745 * dwarf2out.c (want_pubnames): Never generate pubnames sections
7746 and friends for the LTO part of debug info.
7748 2019-01-17 Jakub Jelinek <jakub@redhat.com>
7750 PR tree-optimization/86214
7751 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
7754 PR rtl-optimization/88870
7755 * dce.c (deletable_insn_p): Never delete const/pure calls that can
7756 throw if we can't alter the cfg or delete dead exceptions.
7757 (mark_insn): Don't call find_call_stack_args for such calls.
7759 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
7761 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
7762 prototypes for vec_st.
7763 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
7764 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
7765 mainly on signed/unsigned long long and double.
7767 2019-01-16 David Malcolm <dmalcolm@redhat.com>
7770 * combine.c (delete_noop_moves): Convert to "bool" return,
7771 returning true if any edges are eliminated.
7772 (combine_instructions): Also return true if delete_noop_moves
7775 2019-01-16 Tamar Christina <tamar.christina@arm.com>
7777 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
7778 correct max nunits for endian swap.
7779 (aarch64_expand_fcmla_builtin): Correct subreg code.
7780 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
7781 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
7784 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
7786 * config/alpha/alpha.c (alpha_gimplify_va_arg):
7787 Handle split indirect COMPLEX_TYPE arguments.
7789 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
7792 * config/aarch64/aarch64-modes.def: Add comment about how the carry
7793 bit is set by add and compare.
7794 (CC_ADC): New CC_MODE.
7795 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
7796 to cache the code and mode of X. Adjust the shape of a CC_Cmode
7797 comparison. Add detection for CC_ADCmode.
7798 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
7800 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
7801 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
7802 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
7803 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
7804 to eliminate the need for zero-extending the operands.
7805 (add<mode>3_compareC_imm): Delete. Merge into ...
7806 (add<mode>3_compareC): ... this. Restructure the comparison to
7807 eliminate the need for zero-extending the operands.
7808 (add<mode>3_carryin): Use LTU for the overflow detection.
7809 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
7810 Reexpress comparison for overflow.
7811 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
7812 (add<mode>3_carryinC): Likewise.
7813 (add<mode>3_carryinV): Use LTU for carry between partials.
7814 * config/aarch64/predicates.md (aarch64_carry_operation): Update
7815 handling of CC_Cmode and add CC_ADCmode.
7816 (aarch64_borrow_operation): Likewise.
7818 2019-01-16 Tamar Christina <tamar.christina@arm.com>
7820 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
7821 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
7822 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
7823 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
7825 2019-01-16 Martin Liska <mliska@suse.cz>
7827 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
7829 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
7831 * gcc.c (add_sysrooted_hdrs_prefix): New function.
7832 (path_prefix_reset): Move up in the source file.
7833 (find_fortran_preinclude_file): Make complex search for the
7834 fortran header files.
7836 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
7838 * godump.c (go_output_typedef): When outputting a typedef, refer
7839 to the underlying type by its name and not its structure.
7841 2019-01-15 David Malcolm <dmalcolm@redhat.com>
7844 * tree.c (build_function_type): Assert that arg_types is not
7847 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
7850 * doc/extend.texi: Document that listing the stack pointer in the
7851 clobber list of an asm is a deprecated feature.
7852 * common.opt (Wdeprecated): Moved from c-family/c.opt.
7853 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
7854 warning instead of an error for clobbers of the stack pointer.
7855 Add a note explaining why.
7857 2019-01-15 Richard Biener <rguenther@suse.de>
7860 * dwarf2out.c (gen_member_die): Do not generate inheritance
7863 2019-01-15 Richard Biener <rguenther@suse.de>
7865 PR tree-optimization/88855
7866 * tree-if-conv.c (combine_blocks): Collect
7867 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
7869 2019-01-15 Tom de Vries <tdevries@suse.de>
7872 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
7873 lhs == NULL_TREE for gang-level reduction.
7875 2019-01-15 Richard Biener <rguenther@suse.de>
7876 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7879 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
7880 return true if SSA_NAME is already marked in visited bitmap.
7881 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
7883 2019-01-15 Jakub Jelinek <jakub@redhat.com>
7885 PR tree-optimization/88775
7886 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
7887 equal == 0 equality pointer comparisons some more if compared in
7888 integral types and either one points to an automatic var and the
7889 other to a global, or we can prove at least one points to the middle
7890 or both point to start or both point to end.
7892 2019-01-14 Andi Kleen <ak@linux.intel.com>
7894 * Makefile.in: Lower autofdo sampling rate by 10x.
7895 * Makefile.tpl: Dito.
7897 2019-01-14 Tom Honermann <tom@honermann.net>
7899 * defaults.h: Define CHAR8_TYPE.
7901 2019-01-14 Martin Sebor <msebor@redhat.com>
7904 * doc/extend.texi (Darwin Format Checks): Clarify.
7906 2019-01-14 Richard Biener <rguenther@suse.de>
7908 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
7909 whether we are in (simplify ...) or (match ...) context.
7911 2019-01-14 Jakub Jelinek <jakub@redhat.com>
7913 PR rtl-optimization/88796
7914 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
7915 * cfgexpand.c (stack_protect_prologue): Initialize
7916 crtl->stack_protect_guard_decl.
7917 * function.c (stack_protect_epilogue): Use it instead of calling
7918 targetm.stack_protect_guard again.
7919 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
7920 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
7921 crtl->stack_protect_guard_decl.
7922 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
7923 on the returned MEM_EXPR.
7925 2019-01-12 Tom de Vries <tdevries@suse.de>
7927 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
7928 vector length using -fopenacc-dim.
7930 2019-01-12 Tom de Vries <tdevries@suse.de>
7932 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
7933 lengths into account.
7935 2019-01-12 Svante Signell <svante.signell@gmail.com>
7937 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
7938 (TARGET_CAN_SPLIT_STACK): Define.
7939 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
7941 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
7943 * params.def (inline-unit-growth): Set to 40.
7945 2019-01-12 Jakub Jelinek <jakub@redhat.com>
7947 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
7949 2019-01-12 Tom de Vries <tdevries@suse.de>
7951 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
7952 region calling vector-partitionable routine, set default_vector_length
7955 2019-01-12 Tom de Vries <tdevries@suse.de>
7957 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
7958 variable default_vector_length.
7960 2019-01-12 Tom de Vries <tdevries@suse.de>
7963 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
7964 from oacc_default_dims, as oacc_validate_dims would do it, and apply
7967 2019-01-12 Tom de Vries <tdevries@suse.de>
7969 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
7970 (nvptx_goacc_validate_dims): Add used parameter.
7971 * doc/tm.texi: Regenerate.
7972 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
7973 argument to call to targetm.goacc.validate_dims.
7974 (default_goacc_validate_dims): Add used
7976 * target.def (validate_dims): Add used parameter in DEFHOOK.
7977 * targhooks.h (default_goacc_validate_dims): Add used parameter.
7979 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7983 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
7985 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
7986 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
7987 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
7988 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
7990 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
7992 PR rtl-optimization/87305
7994 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
7995 for little endian pseudos used as paradoxical subreg.
7997 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7999 PR tree-optimization/88693
8000 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
8001 for STRING_CSTs that don't contain any NUL characters in the first
8002 TREE_STRING_LENGTH bytes.
8004 2019-01-11 Alan Modra <amodra@gmail.com>
8008 * genattrtab.c (min_fn): Don't translate values.
8009 (min_attr_value): Return INT_MAX when the value can't be calculated.
8010 Return minimum among any values that can be calculated.
8011 (max_attr_value): Adjust.
8013 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8015 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
8017 2019-01-11 Steve Ellcey <sellcey@marvell.com>
8019 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
8020 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
8021 (aarch64_return_call_with_max_clobbers): New function.
8022 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
8023 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
8025 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
8026 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
8027 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
8028 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
8029 * cselib.c (cselib_process_insn): Add argument to
8030 targetm.hard_regno_call_part_clobbered call.
8031 * ira-conflicts.c (ira_build_conflicts): Ditto.
8032 * ira-costs.c (ira_tune_allocno_costs): Ditto.
8033 * lra-constraints.c (inherit_reload_reg): Ditto.
8034 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
8035 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
8036 argument. Call targetm.return_call_with_max_clobbers.
8037 Add argument to targetm.hard_regno_call_part_clobbered call.
8038 (calls_have_same_clobbers_p): New function.
8039 (process_bb_lives): Add call_insn and last_call_insn variables.
8040 Pass call_insn to check_pseudos_live_through_calls.
8041 Modify if stmt to check targetm.return_call_with_max_clobbers.
8042 Update setting of flush variable.
8043 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
8045 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
8046 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
8047 targetm.hard_regno_call_part_clobbered call.
8048 * reginfo.c (choose_hard_reg_mode): Ditto.
8049 * regrename.c (check_new_reg_p): Ditto.
8050 * reload.c (find_equiv_reg): Ditto.
8051 * reload1.c (emit_reload_insns): Ditto.
8052 * sched-deps.c (deps_analyze_insn): Ditto.
8053 * sel-sched.c (init_regs_for_mode): Ditto.
8054 (mark_unavailable_hard_regs): Ditto.
8055 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
8056 * target.def (hard_regno_call_part_clobbered): Add insn argument.
8057 (return_call_with_max_clobbers): New target function.
8058 * doc/tm.texi: Regenerate.
8059 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
8060 * hooks.c (hook_bool_uint_mode_false): Change to
8061 hook_bool_insn_uint_mode_false.
8062 * hooks.h (hook_bool_uint_mode_false): Ditto.
8064 2019-01-11 Steve Ellcey <sellcey@marvell.com>
8066 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
8067 (aarch64_remove_extra_call_preserved_regs): New function.
8068 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
8069 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
8070 * doc/tm.texi: Regenerate.
8071 * final.c (get_call_reg_set_usage): Call new hook.
8072 * target.def (remove_extra_call_preserved_regs): New hook.
8073 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
8074 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
8076 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8079 * passes.c (finish_optimization_passes): Call print_combine_total_stats
8080 inside of pass_combine_1 dump rather than pass_profile_1.
8082 2019-01-11 Tom de Vries <tdevries@suse.de>
8084 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
8085 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
8086 (PTX_NUM_PER_WORKER_BARRIERS): Define.
8087 (nvptx_apply_dim_limits): Prevent vector_length 64 and
8090 2019-01-11 Tom de Vries <tdevries@suse.de>
8092 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
8094 2019-01-11 Jan Beulich <jbeulich@suse.com>
8096 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
8097 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
8098 sse2_cvtsi2sd): Add {l}.
8099 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
8102 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8105 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
8107 (*float<floatunssuffix>v2div2sf2): New define_insn.
8108 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
8109 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
8110 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
8111 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
8112 match_operands with "const0_operand" "C".
8114 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8116 * config/aarch64/aarch64-builtins.c
8117 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
8118 (aarch64_init_simd_builtins): ...Here
8120 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
8122 PR rtl-optimization/87305
8124 (setup_live_pseudos_and_spill_after_risky_transforms): Check
8125 allocation for big endian pseudos used as paradoxical subregs and
8126 spill them if it is wrong.
8127 * lra-constraints.c (lra_constraints): Add a comment.
8129 2019-01-10 Richard Biener <rguenther@suse.de>
8131 PR tree-optimization/88792
8132 * tree-ssa-pre.c (get_representative_for): Do not return a
8135 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8139 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
8140 (assign_parm_setup_block): Do the argument slot realignment here
8143 2019-01-10 Stefan Agner <stefan@agner.ch>
8146 * config/arm/arm.c (arm_option_override_internal): Force
8147 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
8149 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8152 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
8155 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8157 * config/arm/arm-builtins.c
8158 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
8159 (MAC_LANE_PAIR_QUALIFIERS): New.
8160 (arm_expand_builtin_args): Use it.
8161 (arm_expand_builtin_1): Likewise.
8162 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
8163 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
8164 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
8165 * config/arm/arm_neon.h:
8166 (vcadd_rot90_f16): New.
8167 (vcaddq_rot90_f16): New.
8168 (vcadd_rot270_f16): New.
8169 (vcaddq_rot270_f16): New.
8172 (vcmla_lane_f16): New.
8173 (vcmla_laneq_f16): New.
8174 (vcmlaq_lane_f16): New.
8175 (vcmlaq_laneq_f16): New.
8176 (vcmla_rot90_f16): New.
8177 (vcmlaq_rot90_f16): New.
8178 (vcmla_rot90_lane_f16): New.
8179 (vcmla_rot90_laneq_f16): New.
8180 (vcmlaq_rot90_lane_f16): New.
8181 (vcmlaq_rot90_laneq_f16): New.
8182 (vcmla_rot180_f16): New.
8183 (vcmlaq_rot180_f16): New.
8184 (vcmla_rot180_lane_f16): New.
8185 (vcmla_rot180_laneq_f16): New.
8186 (vcmlaq_rot180_lane_f16): New.
8187 (vcmlaq_rot180_laneq_f16): New.
8188 (vcmla_rot270_f16): New.
8189 (vcmlaq_rot270_f16): New.
8190 (vcmla_rot270_lane_f16): New.
8191 (vcmla_rot270_laneq_f16): New.
8192 (vcmlaq_rot270_lane_f16): New.
8193 (vcmlaq_rot270_laneq_f16): New.
8194 (vcadd_rot90_f32): New.
8195 (vcaddq_rot90_f32): New.
8196 (vcadd_rot270_f32): New.
8197 (vcaddq_rot270_f32): New.
8200 (vcmla_lane_f32): New.
8201 (vcmla_laneq_f32): New.
8202 (vcmlaq_lane_f32): New.
8203 (vcmlaq_laneq_f32): New.
8204 (vcmla_rot90_f32): New.
8205 (vcmlaq_rot90_f32): New.
8206 (vcmla_rot90_lane_f32): New.
8207 (vcmla_rot90_laneq_f32): New.
8208 (vcmlaq_rot90_lane_f32): New.
8209 (vcmlaq_rot90_laneq_f32): New.
8210 (vcmla_rot180_f32): New.
8211 (vcmlaq_rot180_f32): New.
8212 (vcmla_rot180_lane_f32): New.
8213 (vcmla_rot180_laneq_f32): New.
8214 (vcmlaq_rot180_lane_f32): New.
8215 (vcmlaq_rot180_laneq_f32): New.
8216 (vcmla_rot270_f32): New.
8217 (vcmlaq_rot270_f32): New.
8218 (vcmla_rot270_lane_f32): New.
8219 (vcmla_rot270_laneq_f32): New.
8220 (vcmlaq_rot270_lane_f32): New.
8221 (vcmlaq_rot270_laneq_f32): New.
8222 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
8223 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
8224 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
8225 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
8226 vcmlaq_lane270): New.
8227 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
8228 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
8229 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
8230 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
8231 (arm_option_reconfigure_globals): Use them.
8232 * config/arm/iterators.md (VDF, VQ_HSF): New.
8233 (VCADD, VCMLA): New.
8234 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
8235 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
8237 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
8238 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
8240 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8242 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
8243 Add qualifier_lane_pair_index.
8244 (emit-rtl.h): Include.
8245 (TYPES_QUADOP_LANE_PAIR): New.
8246 (aarch64_simd_expand_args): Use it.
8247 (aarch64_simd_expand_builtin): Likewise.
8248 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
8250 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
8251 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
8252 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
8253 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
8254 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
8255 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
8256 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
8257 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
8258 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
8259 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
8260 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
8261 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
8262 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
8263 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
8264 Add __ARM_FEATURE_COMPLEX.
8265 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
8266 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
8267 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
8268 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
8269 fcmlaq_lane270): New.
8270 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
8271 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
8272 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
8273 * config/aarch64/arm_neon.h:
8274 (vcadd_rot90_f16): New.
8275 (vcaddq_rot90_f16): New.
8276 (vcadd_rot270_f16): New.
8277 (vcaddq_rot270_f16): New.
8280 (vcmla_lane_f16): New.
8281 (vcmla_laneq_f16): New.
8282 (vcmlaq_lane_f16): New.
8283 (vcmlaq_rot90_lane_f16): New.
8284 (vcmla_rot90_laneq_f16): New.
8285 (vcmla_rot90_lane_f16): New.
8286 (vcmlaq_rot90_f16): New.
8287 (vcmla_rot90_f16): New.
8288 (vcmlaq_laneq_f16): New.
8289 (vcmla_rot180_laneq_f16): New.
8290 (vcmla_rot180_lane_f16): New.
8291 (vcmlaq_rot180_f16): New.
8292 (vcmla_rot180_f16): New.
8293 (vcmlaq_rot90_laneq_f16): New.
8294 (vcmlaq_rot270_laneq_f16): New.
8295 (vcmlaq_rot270_lane_f16): New.
8296 (vcmla_rot270_laneq_f16): New.
8297 (vcmlaq_rot270_f16): New.
8298 (vcmla_rot270_f16): New.
8299 (vcmlaq_rot180_laneq_f16): New.
8300 (vcmlaq_rot180_lane_f16): New.
8301 (vcmla_rot270_lane_f16): New.
8302 (vcadd_rot90_f32): New.
8303 (vcaddq_rot90_f32): New.
8304 (vcaddq_rot90_f64): New.
8305 (vcadd_rot270_f32): New.
8306 (vcaddq_rot270_f32): New.
8307 (vcaddq_rot270_f64): New.
8311 (vcmla_lane_f32): New.
8312 (vcmla_laneq_f32): New.
8313 (vcmlaq_lane_f32): New.
8314 (vcmlaq_laneq_f32): New.
8315 (vcmla_rot90_f32): New.
8316 (vcmlaq_rot90_f32): New.
8317 (vcmlaq_rot90_f64): New.
8318 (vcmla_rot90_lane_f32): New.
8319 (vcmla_rot90_laneq_f32): New.
8320 (vcmlaq_rot90_lane_f32): New.
8321 (vcmlaq_rot90_laneq_f32): New.
8322 (vcmla_rot180_f32): New.
8323 (vcmlaq_rot180_f32): New.
8324 (vcmlaq_rot180_f64): New.
8325 (vcmla_rot180_lane_f32): New.
8326 (vcmla_rot180_laneq_f32): New.
8327 (vcmlaq_rot180_lane_f32): New.
8328 (vcmlaq_rot180_laneq_f32): New.
8329 (vcmla_rot270_f32): New.
8330 (vcmlaq_rot270_f32): New.
8331 (vcmlaq_rot270_f64): New.
8332 (vcmla_rot270_lane_f32): New.
8333 (vcmla_rot270_laneq_f32): New.
8334 (vcmlaq_rot270_lane_f32): New.
8335 (vcmlaq_rot270_laneq_f32): New.
8336 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
8337 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
8338 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
8339 (FCADD, FCMLA): New.
8341 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
8343 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
8347 * config/pa/pa.c: Change "can not" to "cannot".
8348 * gimple-ssa-evrp-analyze.c: Likewise.
8349 * ipa-icf.c: Likewise.
8350 * ipa-polymorphic-call.c: Likewise.
8351 * ipa-pure-const.c: Likewise.
8352 * lra-constraints.c: Likewise.
8353 * lra-remat.c: Likewise.
8354 * reload1.c: Likewise.
8355 * reorg.c: Likewise.
8356 * tree-ssa-uninit.c: Likewise.
8358 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
8362 * Makefile.in: Mechanically replace "can not" with "cannot".
8363 * alias.c: Likewise.
8364 * builtins.c: Likewise.
8365 * calls.c: Likewise.
8366 * cgraph.c: Likewise.
8367 * cgraph.h: Likewise.
8368 * cgraphclones.c: Likewise.
8369 * cgraphunit.c: Likewise.
8370 * combine-stack-adj.c: Likewise.
8371 * combine.c: Likewise.
8372 * common/config/i386/i386-common.c: Likewise.
8373 * config/aarch64/aarch64.c: Likewise.
8374 * config/alpha/sync.md: Likewise.
8375 * config/arc/arc.c: Likewise.
8376 * config/arc/predicates.md: Likewise.
8377 * config/arm/arm-c.c: Likewise.
8378 * config/arm/arm.c: Likewise.
8379 * config/arm/arm.h: Likewise.
8380 * config/arm/arm.md: Likewise.
8381 * config/arm/cortex-r4f.md: Likewise.
8382 * config/csky/csky.c: Likewise.
8383 * config/csky/csky.h: Likewise.
8384 * config/darwin-f.c: Likewise.
8385 * config/epiphany/epiphany.md: Likewise.
8386 * config/i386/i386.c: Likewise.
8387 * config/i386/sol2.h: Likewise.
8388 * config/m68k/m68k.c: Likewise.
8389 * config/mcore/mcore.h: Likewise.
8390 * config/microblaze/microblaze.md: Likewise.
8391 * config/mips/20kc.md: Likewise.
8392 * config/mips/sb1.md: Likewise.
8393 * config/nds32/nds32.c: Likewise.
8394 * config/nds32/predicates.md: Likewise.
8395 * config/pa/pa.c: Likewise.
8396 * config/rs6000/e300c2c3.md: Likewise.
8397 * config/rs6000/rs6000.c: Likewise.
8398 * config/s390/s390.h: Likewise.
8399 * config/sh/sh.c: Likewise.
8400 * config/sh/sh.md: Likewise.
8401 * config/spu/vmx2spu.h: Likewise.
8402 * cprop.c: Likewise.
8403 * dbxout.c: Likewise.
8404 * df-scan.c: Likewise.
8405 * doc/cfg.texi: Likewise.
8406 * doc/extend.texi: Likewise.
8407 * doc/fragments.texi: Likewise.
8408 * doc/gty.texi: Likewise.
8409 * doc/invoke.texi: Likewise.
8410 * doc/lto.texi: Likewise.
8411 * doc/md.texi: Likewise.
8412 * doc/objc.texi: Likewise.
8413 * doc/rtl.texi: Likewise.
8414 * doc/tm.texi: Likewise.
8416 * emit-rtl.c: Likewise.
8417 * emit-rtl.h: Likewise.
8418 * except.c: Likewise.
8419 * expmed.c: Likewise.
8421 * fold-const.c: Likewise.
8422 * genautomata.c: Likewise.
8423 * gimple-fold.c: Likewise.
8424 * hard-reg-set.h: Likewise.
8425 * ifcvt.c: Likewise.
8426 * ipa-comdats.c: Likewise.
8427 * ipa-cp.c: Likewise.
8428 * ipa-devirt.c: Likewise.
8429 * ipa-fnsummary.c: Likewise.
8430 * ipa-icf.c: Likewise.
8431 * ipa-inline-transform.c: Likewise.
8432 * ipa-inline.c: Likewise.
8433 * ipa-polymorphic-call.c: Likewise.
8434 * ipa-profile.c: Likewise.
8435 * ipa-prop.c: Likewise.
8436 * ipa-pure-const.c: Likewise.
8437 * ipa-reference.c: Likewise.
8438 * ipa-split.c: Likewise.
8439 * ipa-visibility.c: Likewise.
8441 * ira-build.c: Likewise.
8442 * ira-color.c: Likewise.
8443 * ira-conflicts.c: Likewise.
8444 * ira-costs.c: Likewise.
8445 * ira-int.h: Likewise.
8446 * ira-lives.c: Likewise.
8449 * loop-invariant.c: Likewise.
8450 * loop-unroll.c: Likewise.
8451 * lower-subreg.c: Likewise.
8452 * lra-assigns.c: Likewise.
8453 * lra-constraints.c: Likewise.
8454 * lra-eliminations.c: Likewise.
8455 * lra-lives.c: Likewise.
8456 * lra-remat.c: Likewise.
8457 * lra-spills.c: Likewise.
8459 * lto-cgraph.c: Likewise.
8460 * lto-streamer-out.c: Likewise.
8461 * postreload-gcse.c: Likewise.
8462 * predict.c: Likewise.
8463 * profile-count.h: Likewise.
8464 * profile.c: Likewise.
8465 * recog.c: Likewise.
8467 * reload.c: Likewise.
8468 * reload1.c: Likewise.
8469 * reorg.c: Likewise.
8470 * resource.c: Likewise.
8471 * rtl.def: Likewise.
8473 * rtlanal.c: Likewise.
8474 * sched-deps.c: Likewise.
8475 * sched-ebb.c: Likewise.
8476 * sched-rgn.c: Likewise.
8477 * sel-sched-ir.c: Likewise.
8478 * sel-sched.c: Likewise.
8479 * shrink-wrap.c: Likewise.
8480 * simplify-rtx.c: Likewise.
8481 * symtab.c: Likewise.
8482 * target.def: Likewise.
8483 * toplev.c: Likewise.
8484 * tree-call-cdce.c: Likewise.
8485 * tree-cfg.c: Likewise.
8486 * tree-complex.c: Likewise.
8487 * tree-core.h: Likewise.
8488 * tree-eh.c: Likewise.
8489 * tree-inline.c: Likewise.
8490 * tree-loop-distribution.c: Likewise.
8491 * tree-nrv.c: Likewise.
8492 * tree-profile.c: Likewise.
8493 * tree-sra.c: Likewise.
8494 * tree-ssa-alias.c: Likewise.
8495 * tree-ssa-dce.c: Likewise.
8496 * tree-ssa-dom.c: Likewise.
8497 * tree-ssa-forwprop.c: Likewise.
8498 * tree-ssa-loop-im.c: Likewise.
8499 * tree-ssa-loop-ivcanon.c: Likewise.
8500 * tree-ssa-loop-ivopts.c: Likewise.
8501 * tree-ssa-loop-niter.c: Likewise.
8502 * tree-ssa-phionlycprop.c: Likewise.
8503 * tree-ssa-phiopt.c: Likewise.
8504 * tree-ssa-propagate.c: Likewise.
8505 * tree-ssa-threadedge.c: Likewise.
8506 * tree-ssa-threadupdate.c: Likewise.
8507 * tree-ssa-uninit.c: Likewise.
8508 * tree-ssanames.c: Likewise.
8509 * tree-streamer-out.c: Likewise.
8512 * vr-values.c: Likewise.
8514 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
8516 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
8517 (ix86_split_xorsign): Ditto.
8518 * config/i386/i386.c (ix86_expand_xorsign): New function.
8519 (ix86_split_xorsign): Ditto.
8520 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
8521 (xorsign<mode>3): New expander.
8522 (xorsign<mode>3_1): New insn_and_split pattern.
8523 * config/i386/sse.md (xorsign<mode>3): New expander.
8525 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8527 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
8528 (*tablejump_sp64): Likewise.
8529 (*tablejump<P:mode>): ...this.
8530 (*call_address_sp32): Merge into...
8531 (*call_address_sp64): Likewise.
8532 (*call_address<P:mode>): ...this.
8533 (*call_symbolic_sp32): Merge into...
8534 (*call_symbolic_sp64): Likewise.
8535 (*call_symbolic<P:mode>): ...this.
8536 (call_value): Remove constraint and add predicate.
8537 (*call_value_address_sp32): Merge into...
8538 (*call_value_address_sp64): Likewise.
8539 (*call_value_address<P:mode>): ...this.
8540 (*call_value_symbolic_sp32): Merge into...
8541 (*call_value_symbolic_sp64): Likewise.
8542 (*call_value_symbolic<P:mode>): ...this.
8543 (*sibcall_symbolic_sp32): Merge into...
8544 (*sibcall_symbolic_sp64): Likewise.
8545 (*sibcall_symbolic<P:mode>): ...this.
8546 (sibcall_value): Remove constraint and add predicate.
8547 (*sibcall_value_symbolic_sp32): Merge into...
8548 (*sibcall_value_symbolic_sp64): Likewise.
8549 (*sibcall_value_symbolic<P:mode>): ...this.
8550 (window_save): Minor tweak.
8551 (*branch_sp32): Merge into...
8552 (*branch_sp64): Likewise.
8553 (*branch<P:mode>): ...this.
8555 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8556 James Clarke <jrtc27@jrtc27.com>
8559 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
8560 consistently in TLS address generation and adjust code to the renaming
8561 of patterns. Mark calls to __tls_get_addr as const.
8562 * config/sparc/sparc.md (tgd_hi22): Turn into...
8563 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
8564 (tgd_lo10): Turn into...
8565 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
8566 (tgd_add32): Merge into...
8567 (tgd_add64): Likewise.
8568 (tgd_add<P:mode>): ...this and use Pmode throughout.
8569 (tldm_hi22): Turn into...
8570 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
8571 (tldm_lo10): Turn into...
8572 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
8573 (tldm_add32): Merge into...
8574 (tldm_add64): Likewise.
8575 (tldm_add<P:mode>): ...this and use Pmode throughout.
8576 (tldm_call32): Merge into...
8577 (tldm_call64): Likewise.
8578 (tldm_call<P:mode>): ...this and use Pmode throughout.
8579 (tldo_hix22): Turn into...
8580 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
8581 (tldo_lox10): Turn into...
8582 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
8583 (tldo_add32): Merge into...
8584 (tldo_add64): Likewise.
8585 (tldo_add<P:mode>): ...this and use Pmode throughout.
8586 (tie_hi22): Turn into...
8587 (tie_hi22<P:mode>): ...this and use Pmode throughout.
8588 (tie_lo10): Turn into...
8589 (tie_lo10<P:mode>): ...this and use Pmode throughout.
8590 (tie_ld64): Use DImode throughout.
8591 (tie_add32): Merge into...
8592 (tie_add64): Likewise.
8593 (tie_add<P:mode>): ...this and use Pmode throughout.
8594 (tle_hix22_sp32): Merge into...
8595 (tle_hix22_sp64): Likewise.
8596 (tle_hix22<P:mode>): ...this and use Pmode throughout.
8597 (tle_lox22_sp32): Merge into...
8598 (tle_lox22_sp64): Likewise.
8599 (tle_lox22<P:mode>): ...this and use Pmode throughout.
8600 (*tldo_ldub_sp32): Merge into...
8601 (*tldo_ldub_sp64): Likewise.
8602 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
8603 (*tldo_ldub1_sp32): Merge into...
8604 (*tldo_ldub1_sp64): Likewise.
8605 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
8606 (*tldo_ldub2_sp32): Merge into...
8607 (*tldo_ldub2_sp64): Likewise.
8608 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
8609 (*tldo_ldsb1_sp32): Merge into...
8610 (*tldo_ldsb1_sp64): Likewise.
8611 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
8612 (*tldo_ldsb2_sp32): Merge into...
8613 (*tldo_ldsb2_sp64): Likewise.
8614 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
8615 (*tldo_ldub3_sp64): Use DImode throughout.
8616 (*tldo_ldsb3_sp64): Likewise.
8617 (*tldo_lduh_sp32): Merge into...
8618 (*tldo_lduh_sp64): Likewise.
8619 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
8620 (*tldo_lduh1_sp32): Merge into...
8621 (*tldo_lduh1_sp64): Likewise.
8622 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
8623 (*tldo_ldsh1_sp32): Merge into...
8624 (*tldo_ldsh1_sp64): Likewise.
8625 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
8626 (*tldo_lduh2_sp64): Use DImode throughout.
8627 (*tldo_ldsh2_sp64): Likewise.
8628 (*tldo_lduw_sp32): Merge into...
8629 (*tldo_lduw_sp64): Likewise.
8630 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
8631 (*tldo_lduw1_sp64): Use DImode throughout.
8632 (*tldo_ldsw1_sp64): Likewise.
8633 (*tldo_ldx_sp64): Likewise.
8634 (*tldo_stb_sp32): Merge into...
8635 (*tldo_stb_sp64): Likewise.
8636 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
8637 (*tldo_sth_sp32): Merge into...
8638 (*tldo_sth_sp64): Likewise.
8639 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
8640 (*tldo_stw_sp32): Merge into...
8641 (*tldo_stw_sp64): Likewise.
8642 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
8643 (*tldo_stx_sp64): Use DImode throughout.
8645 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8647 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
8648 check configure option to set BTI and Return Address Signing.
8649 * configure.ac: Add --enable-standard-branch-protection and
8650 --disable-standard-branch-protection.
8651 * configure: Regenerated.
8652 * doc/install.texi: Document the same.
8654 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8655 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8657 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
8658 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
8659 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
8661 * config/aarch64/aarch64-bti-insert.c: New file.
8662 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
8664 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
8666 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
8667 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
8668 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
8669 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
8671 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8673 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
8674 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
8675 Disable bti for -mbranch-protection=none.
8676 (aarch64_handle_standard_branch_protection): Enable bti for
8677 -mbranch-protection=standard.
8678 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
8679 -mbranch-protection.
8680 (aarch64_bti_enabled): Check if bti is enabled.
8681 * config/aarch64/aarch64.opt: Declare target variable.
8682 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
8684 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8686 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
8687 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
8688 (aarch64_expand_epilogue): Likewise.
8689 (aarch64_output_mi_thunk): Likewise
8690 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
8691 TAILCALL_ADDR_REGS to x16 and x17.
8692 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
8694 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8696 * config/aarch64/aarch64-option-extensions.def: Define
8697 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
8698 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
8699 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
8700 (AARCH64_FL_PREDRES): New.
8701 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
8702 AARCH64_FL_PREDRES by default.
8703 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
8705 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8707 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
8709 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
8710 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
8711 * doc/invoke.texi: Document ARMv8.5-A.
8713 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8715 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
8716 (xorsign<mode>3): Likewise.
8718 2019-01-09 Jelinek <jakub@redhat.com>
8721 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
8722 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
8724 PR rtl-optimization/88331
8725 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
8726 not currently_expanding_to_rtl.
8728 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8730 * doc/invoke.texi (-Os): Remove trailing spaces.
8731 (-finline-functions): Remove reference to -O2.
8733 2019-01-08 Jakub Jelinek <jakub@redhat.com>
8735 PR rtl-optimization/79593
8736 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
8738 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
8739 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
8741 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
8744 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
8748 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
8749 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
8751 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
8754 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
8755 ix86_avx_u128_mode_entry.
8757 2019-01-08 Martin Liska <mliska@suse.cz>
8759 PR tree-optimization/88753
8760 * tree-switch-conversion.c (switch_conversion::build_one_array):
8761 Come up with local variable constructor. Convert first to
8762 type of constructor values.
8764 2019-01-08 Richard Biener <rguenther@suse.de>
8766 PR tree-optimization/86554
8767 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
8768 rpo_avail): Move earlier.
8769 (visit_nary_op): When value-numbering to expressions
8770 with different overflow behavior make sure there's an
8771 available expression on the path.
8773 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
8775 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
8776 aarch64_parse_branch_protection,
8777 struct aarch64_branch_protect_type,
8778 aarch64_handle_no_branch_protection,
8779 aarch64_handle_standard_branch_protection,
8780 aarch64_validate_mbranch_protection,
8781 aarch64_handle_pac_ret_protection,
8782 aarch64_handle_attr_branch_protection,
8783 accepted_branch_protection_string,
8784 aarch64_pac_ret_subtypes,
8785 aarch64_branch_protect_types,
8786 aarch64_handle_pac_ret_leaf): Define.
8787 (aarch64_override_options_after_change_1, aarch64_override_options):
8788 Add check for accepted_branch_protection_string.
8789 (aarch64_option_save): Save accepted_branch_protection_string.
8790 (aarch64_option_restore): Save accepted_branch_protection_string.
8791 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
8792 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
8793 msign-return-address.
8794 * doc/invoke.texi: Add mbranch-protection.
8796 2019-01-08 Alan Modra <amodra@gmail.com>
8799 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
8800 Delete "unknownp" parameter. Adjust callers. Handle
8801 CONST_INT, PLUS, MINUS, and MULT.
8802 (attr_value_aligned): Renamed from or_attr_value.
8803 (min_attr_value): Return INT_MIN for unhandled rtl case..
8804 (min_fn): ..and translate to INT_MAX here.
8805 (write_length_unit_log): Modify to cope without "unknown".
8806 (write_attr_value): Handle IF_THEN_ELSE.
8808 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8810 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
8811 optimization for masked stores.
8813 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8816 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
8817 output vector directly to duplicate_and_interleave instead of
8818 going through a temporary. Postpone insertion of ctor_seq to
8819 the end of the loop.
8821 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
8824 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
8825 unsigned_p. Handle signed and unsigned overflow correction as
8827 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
8829 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
8831 (add<mode>3_compareV_imm): Make this callable for expanding.
8832 (subv<GPI:mode>4): Use register_operand for operand 1. Use
8833 aarch64_plus_operand for operand 2.
8834 (subv<GPI:mode>_insn): New insn pattern.
8835 (subv<GPI:mode>_imm): Likewise.
8836 (negv<GPI:mode>3): New expand pattern.
8837 (negv<GPI:mode>_insn): New insn pattern.
8838 (negv<GPI:mode>_cmp_only): Likewise.
8839 (cmpv<GPI:mode>_insn): Likewise.
8840 (subvti4): Use register_operand for operand 1. Update call to
8841 aarch64_expand_subvti.
8842 (usubvti4): Likewise.
8843 (negvti3): New expand pattern.
8844 (negdi_carryout): New insn pattern.
8845 (negvdi_carryinV): New insn pattern.
8846 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
8847 version the named version.
8848 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
8850 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
8852 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
8854 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
8855 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
8856 (sub<mode>3_carryinCV): Delete.
8857 (sub<GPI:mode>3_carryinV): New expand pattern.
8858 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
8860 2019-01-07 Richard Biener <rguenther@suse.de>
8862 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
8863 of tree_operand_hash.
8865 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8867 PR tree-optimization/88598
8868 * tree.h (single_nonzero_element): Declare.
8869 * tree.c (single_nonzero_element): New function.
8870 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
8871 if I is the only nonzero element of CST.
8873 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8875 PR tree-optimization/88598
8876 * tree.h (initializer_each_zero_or_onep): Declare.
8877 * tree.c (initializer_each_zero_or_onep): New function.
8878 (signed_or_unsigned_type_for): Handle float types too.
8879 (unsigned_type_for, signed_type_for): Update comments accordingly.
8880 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
8881 x & { 0 or -1, 0 or -1, ... }.
8883 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
8885 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
8886 with x86_64-pc-linux-gnu.
8888 2019-01-07 Tom de Vries <tdevries@suse.de>
8891 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
8893 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
8896 2019-01-07 Jakub Jelinek <jakub@redhat.com>
8898 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
8899 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
8900 TARGET_AVX512F as condition.
8903 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
8904 const_not_ok_for_debug_p target hook.
8905 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
8906 on UNSPEC and subexpressions thereof if all subexpressions of the
8907 UNSPEC are CONSTANT_P.
8909 PR tree-optimization/88676
8910 * tree-ssa-phiopt.c (two_value_replacement): New function.
8911 (tree_ssa_phiopt_worker): Call it.
8914 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
8915 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
8918 * tree-vect-generic.c: Include insn-config.h and recog.h.
8919 (expand_vector_piecewise): Add defaulted ret_type argument,
8920 if non-NULL, use that in preference to type for the result type.
8921 (expand_vector_parallel): Formatting fix.
8922 (do_vec_conversion, do_vec_narrowing_conversion,
8923 expand_vector_conversion): New functions.
8924 (expand_vector_operations_1): Call expand_vector_conversion
8925 for VEC_CONVERT ifn calls.
8926 * internal-fn.def (VEC_CONVERT): New internal function.
8927 * internal-fn.c (expand_VEC_CONVERT): New function.
8928 * fold-const-call.c (fold_const_vec_convert): New function.
8929 (fold_const_call): Use it for CFN_VEC_CONVERT.
8930 * doc/extend.texi (__builtin_convertvector): Document.
8932 2019-01-07 Tom de Vries <tdevries@suse.de>
8934 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
8935 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
8936 vector_red_partition, vector_red_sym): New global variables.
8937 (nvptx_option_override): Initialize vector_red_sym.
8938 (nvptx_declare_function_name): Restore red_partition register.
8939 (nvptx_file_end): Emit code to declare the vector reduction variables.
8940 (nvptx_output_red_partition): New function.
8941 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
8942 large vector reductions.
8943 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
8944 (nvptx_init_builtins): Add VECTOR_ADDR.
8945 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
8946 Handle nvptx_expand_shared_addr.
8947 (nvptx_get_shared_red_addr): Add vector argument and handle large
8949 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
8951 (nvptx_goacc_reduction_init): Likewise.
8952 (nvptx_goacc_reduction_fini): Likewise.
8953 (nvptx_goacc_reduction_teardown): Likewise.
8954 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
8955 init,fini,teardown}.
8956 (nvptx_init_axis_predicate): Initialize vector_red_partition.
8957 (nvptx_set_current_function): Init vector_red_partition.
8958 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
8959 (nvptx_red_partition): New insn.
8960 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
8962 2019-01-07 Tom de Vries <tdevries@suse.de>
8965 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
8968 2019-01-07 Tom de Vries <tdevries@suse.de>
8970 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
8971 (nvptx_option_override): Init oacc_bcast_partition.
8972 (nvptx_init_oacc_workers): New function.
8973 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
8974 (nvptx_needs_shared_bcast): New function.
8975 (nvptx_find_par): Generalize to enable vectors to use shared-memory
8977 (nvptx_shared_propagate): Initialize vector bcast partition and
8978 synchronization state.
8979 (nvptx_single): Generalize to enable vectors to use shared-memory
8981 (nvptx_process_pars): Likewise.
8982 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
8983 * config/nvptx/nvptx.h (struct machine_function): Add
8984 bcast_partition and sync_bar members.
8986 2019-01-07 Tom de Vries <tdevries@suse.de>
8988 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
8989 (nvptx_apply_dim_limits): New function.
8990 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
8993 2019-01-07 Tom de Vries <tdevries@suse.de>
8995 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
8996 as late as possible.
8998 2019-01-07 Tom de Vries <tdevries@suse.de>
9000 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
9001 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
9002 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
9003 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
9004 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
9006 2019-01-07 Tom de Vries <tdevries@suse.de>
9008 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
9010 2019-01-07 Tom de Vries <tdevries@suse.de>
9012 * omp-offload.c (oacc_get_min_dim): New function.
9013 * omp-offload.h (oacc_get_min_dim): Declare.
9015 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
9018 * config/i386/i386.c (function_value_ms_64): Return small sturct in
9019 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
9021 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9025 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
9027 * ipa-inline.c (edge_badness): Use inlined_time instead of
9028 inline_summaries->get.
9030 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9032 * opts.c (enable_fdo_optimizations): Enable
9033 version-loops-for-strides, loop-interchange, unrol-and-jam
9034 and tree-loop-distribution.
9035 * invoke.texi: Document newly enabled options.
9037 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9039 * doc/invoke.texi (max-inline-insns-small): New parameters.
9040 * ipa-inline.c (want_early_inline_function_p): simplify.
9041 (want_inline_small_function_p): Fix pasto from previous patch;
9042 use max-inline-insns-small bound.
9043 * params.def (max-inline-insns-small): New param.
9044 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
9045 variables correctly.
9047 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9049 * doc/invoke.texi: Document max-inline-insns-size,
9050 uninlined-function-insns, uninlined-function-time,
9051 uninlined-thunk-insns and uninlined-thunk-time.
9052 * params.def: Add max-inline-insns-size,
9053 uninlined-function-insns, uninlined-function-time,
9054 uninlined-thunk-insns and uninlined-thunk-time.
9055 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
9057 * ipa-inline.c (can_inline_edge_by_limits_p,
9058 want_inline_small_function_p): Use new parameters.
9060 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9062 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
9064 2019-01-05 Jakub Jelinek <jakub@redhat.com>
9068 * expr.c (expand_assignment): For calls returning VLA structures
9069 if to_rtx is not a MEM, force it into a stack temporary.
9072 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
9073 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
9074 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
9075 subexpressions of both operands.
9076 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
9077 subrtxes are CONSTANT_P.
9078 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
9081 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
9083 * params.def (hot-bb-count-ws-permille): Set to 990.
9085 2019-01-04 Martin Sebor <msebor@redhat.com>
9088 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
9091 2019-01-04 Martin Sebor <msebor@redhat.com>
9094 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
9096 2019-01-04 Jakub Jelinek <jakub@redhat.com>
9098 * gdbinit.in: Turn off pagination for the skip commands, restore
9099 it to previous state afterwards.
9101 2019-01-04 Jakub Jelinek <jakub@redhat.com>
9104 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
9105 of GET_MODE (opN) as modes of the libcall arguments.
9107 2019-01-04 Jan Beulich <jbeulich@suse.com>
9109 * config/i386/sse.md
9110 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
9111 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
9112 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
9113 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
9114 avx512f_vmcmp<mode>3<round_saeonly_name>,
9115 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
9116 avx512f_maskcmp<mode>3,
9117 <avx512>_cvt<ssemodesuffix>2mask<mode>,
9118 <avx512>_cvt<ssemodesuffix>2mask<mode>,
9119 *<avx512>_cvtmask2<ssemodesuffix><mode>,
9120 *<avx512>_cvtmask2<ssemodesuffix><mode>,
9121 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
9122 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
9123 <avx512>_gt<mode>3<mask_scalar_merge_name>,
9124 <avx512>_gt<mode>3<mask_scalar_merge_name>,
9125 <avx512>_testm<mode>3<mask_scalar_merge_name>,
9126 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
9127 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
9128 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
9129 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
9130 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
9131 avx512cd_maskb_vec_dup<mode>,
9132 avx512cd_maskw_vec_dup<mode>,
9133 avx512dq_fpclass<mode><mask_scalar_merge_name>,
9134 avx512dq_vmfpclass<mode>,
9135 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
9138 2019-01-03 Martin Sebor <msebor@redhat.com>
9140 PR tree-optimization/88659
9141 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
9143 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9145 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
9146 unaligned vsx and avoid lxvd2x/stxvd2x.
9147 (gen_lvx_v4si_move): New function.
9149 2019-01-03 Tom de Vries <tdevries@suse.de>
9151 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
9152 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
9154 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
9156 2019-01-03 Tom de Vries <tdevries@suse.de>
9158 * config/nvptx/nvptx.c (struct offload_attrs): New.
9159 (populate_offload_attrs): New function. Factor mask extraction out of
9160 nvptx_reorg. Add extraction of dimensions.
9161 (nvptx_reorg): Use populate_offload_attrs.
9163 2019-01-03 Tom de Vries <tdevries@suse.de>
9165 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
9166 cases for oacc_min_dims_p and routine_p. Add asserts for
9167 oacc_default_dims_p and offload_region_p.
9169 2019-01-03 Tom de Vries <tdevries@suse.de>
9171 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
9173 (nvptx_goacc_validate_dims): ... here.
9175 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
9177 PR tree-optimization/85574
9178 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
9180 (struct ssa_equip_hash_traits): Declare.
9181 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
9183 2019-01-03 Jakub Jelinek <jakub@redhat.com>
9186 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
9187 change it to qualified_type.
9189 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
9191 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
9192 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
9194 2019-01-02 Martin Sebor <msebor@redhat.com>
9195 Jeff Law <law@redhat.com>
9197 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
9198 (get_range_strlen_tree): Update appropriately.
9200 * gimple-fold.h (get_range_strlen): Drop unused last argument.
9202 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
9203 rather than set_range_info.
9204 * tree-ssa-strlen.c (set_strlen_range): Extracted from
9205 maybe_set_strlen_range. Handle potentially boundary crossing
9206 cases more conservatively.
9207 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
9208 Call set_strlen_range.
9209 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
9212 * gimple-fold.c (get_range_strlen): Update prototype to no longer
9213 need the flexp argument.
9214 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
9215 from calls to get_range_strlen. Update comments. Just update
9216 VAL for an unterminated const char array and let the reset of the
9217 code handle it normally. No longer try to set *flexp. Adjust
9219 (get_range_strlen): Update for the new get_range_strlen API.
9220 (get_maxval_strlen): Similarly.
9221 (gimple_fold_builtin_strlen): Handle update meaning of return value
9222 from get_range_strlen.
9223 * gimple-ssa-sprintf.c (get_string_length): Update for the new
9224 get_range_strlen API.
9226 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
9229 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
9230 false at WPA time when body was removed.
9232 2019-01-02 Martin Liska <mliska@suse.cz>
9234 PR tree-optimization/88650
9235 * predict.c (set_even_probabilities): Calculate probability
9236 remainer only when really used.
9238 2019-01-02 Richard Biener <rguenther@suse.de>
9241 * tree-data-ref.c (analyze_subscript_affine_affine): Use
9242 widest_ints when mangling max_stmt_execution results.
9244 2019-01-02 Richard Biener <rguenther@suse.de>
9246 PR tree-optimization/88621
9247 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
9248 bitfields when canoncalizing.
9250 2019-01-02 Richard Biener <rguenther@suse.de>
9253 * config/i386/x86-tune-costs.h (intel_cost): Adjust
9254 cost of cheap SSE instruction.
9256 2019-01-02 Richard Biener <rguenther@suse.de>
9259 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
9260 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
9262 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
9263 set after UIDs before splitting them.
9265 2019-01-01 Martin Sebor <msebor@redhat.com>
9266 Jeff Law <law@redhat.com>
9268 * gimple-fold.c (get_range_strlen_tree): Record if the computed
9269 length is optimistic. If it is, then arrange to compute the
9270 conservative length as well.
9272 * gimple-fold.h (get_range_strlen): Update prototype.
9273 * builtins.c (check_access): Update call to get_range_strlen to use
9274 c_strlen_data pointer. Change various variable accesses to instead
9275 pull data from the c_strlen_data structure.
9276 (check_strncat_sizes, expand_builtin_strncat): Likewise.
9277 * calls.c (maybe_warn_nonstring_arg): Likewise.
9278 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
9279 minimum length if maximum lengh is unknown.
9280 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
9281 that used c_strlen, it's no longer needed. Restructure slightly.
9282 (format_string): Set unlikely range appropriately.
9283 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
9285 (get_range_strlen): Accept c_strlen_data pointer for external
9286 call sites as well. Pass through to call to internal get_range_strlen.
9287 Adjust minlen, maxlen and maxbound as needed.
9288 (get_maxval_strlen): Update comments.
9289 (gimple_fold_builtin_strlen): Update call to get_range_strlen
9290 to use c_strlen_data pointer. Change variable accesses to instead
9291 use c_strlen_data data members.
9293 * gimple-fold.c (get_range_strlen): Update prototype.
9294 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
9295 local variables. Use pdata to return information to caller.
9296 Update calls to get_range_strlen. Update pdata->maxbound.
9297 (get_range_strlen -- static version): Similarly.
9298 (get_range_strlen -- extern version): Update for internal
9299 get_range_strlen API change. Convert to external data format.
9300 (get_maxval_strlen): Similarly.
9302 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
9304 * coverage.c (get_coverage_counts): Use current_function_decl.
9305 * profile.c (read_thunk_profile): New function.
9306 (branch_prob): Add THUNK parameter.
9307 * tree-profile.c (tree_profiling): Handle thunks.
9308 * value-prof.c (init_node_map): Handle thunks.
9309 * value-prof.h (branch_prob): Upate prototype.
9310 (read_thunk_profile): Declare.
9312 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9314 Update copyright years.
9316 * gcc.c (process_command): Update copyright notice dates.
9317 * gcov-dump.c (print_version): Ditto.
9318 * gcov.c (print_version): Ditto.
9319 * gcov-tool.c (print_version): Ditto.
9320 * gengtype.c (create_file): Ditto.
9321 * doc/cpp.texi: Bump @copying's copyright year.
9322 * doc/cppinternals.texi: Ditto.
9323 * doc/gcc.texi: Ditto.
9324 * doc/gccint.texi: Ditto.
9325 * doc/gcov.texi: Ditto.
9326 * doc/install.texi: Ditto.
9327 * doc/invoke.texi: Ditto.
9329 Copyright (C) 2019 Free Software Foundation, Inc.
9331 Copying and distribution of this file, with or without modification,
9332 are permitted in any medium without royalty provided the copyright
9333 notice and this notice are preserved.