1 2019-03-22 Jakub Jelinek <jakub@redhat.com>
4 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
6 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
8 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
10 2019-03-22 Jakub Jelinek <jakub@redhat.com>
12 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
13 <avx512>_fmsub_<mode>_mask3<round_name>,
14 <avx512>_fnmadd_<mode>_mask3<round_name>,
15 <avx512>_fnmsub_<mode>_mask3<round_name>,
16 avx512f_vmfmadd_<mode>_mask3<round_name>,
17 avx512f_vmfmsub_<mode>_mask3<round_name>,
18 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
19 instead of register_operand and %v instead of v for match_operand 1.
20 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
22 <round_nimm_predicate> instead of register_operand and %v instead of v
25 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
26 <avx512>_fmadd_<mode>_mask3<round_name>,
27 <avx512>_fmsub_<mode>_mask<round_name>,
28 <avx512>_fmsub_<mode>_mask3<round_name>,
29 <avx512>_fnmadd_<mode>_mask<round_name>,
30 <avx512>_fnmadd_<mode>_mask3<round_name>,
31 <avx512>_fnmsub_<mode>_mask<round_name>,
32 <avx512>_fnmsub_<mode>_mask3<round_name>,
33 <avx512>_fmaddsub_<mode>_mask<round_name>,
34 <avx512>_fmaddsub_<mode>_mask3<round_name>,
35 <avx512>_fmsubadd_<mode>_mask<round_name>,
36 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
37 <round_nimm_predicate> instead of nonimmediate_operand.
38 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
39 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
40 Use register_operand instead of <round_nimm_predicate> for the
41 operand that needs to match output.
42 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
43 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
44 Likewise. Formatting fixes.
47 * config/i386/i386.c (enum ix86_builtins): Remove
48 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
49 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
50 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
51 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
52 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
53 __builtin_ia32_vfmsubss3_mask3): New builtins.
54 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
55 avx512f_vmfmadd_<mode>_mask3<round_name>,
56 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
57 *avx512f_vmfmsub_<mode>_mask<round_name>,
58 avx512f_vmfmsub_<mode>_mask3<round_name>,
59 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
60 *avx512f_vmfnmadd_<mode>_mask<round_name>,
61 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
62 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
63 *avx512f_vmfnmsub_<mode>_mask<round_name>,
64 avx512f_vmfnmsub_<mode>_mask3<round_name>,
65 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
66 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
67 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
68 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
69 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
70 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
71 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
72 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
73 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
74 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
75 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
76 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
77 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
78 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
79 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
80 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
81 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
82 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
83 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
84 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
85 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
86 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
88 2019-03-21 Martin Sebor <msebor@redhat.com>
90 PR tree-optimization/89350
91 * builtins.c (compute_objsize): Also ignore offsets whose upper
93 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
94 (builtin_memref::builtin_memref): Initialize new member.
95 Allow EXPR to be null.
96 (builtin_memref::extend_offset_range): Replace local with a member.
97 Avoid assuming pointer offsets are unsigned.
98 (builtin_memref::set_base_and_offset): Determine base object
99 before computing offset range.
100 (builtin_access::builtin_access): Handle memset.
101 (builtin_access::generic_overlap): Replace local with a member.
102 (builtin_access::strcat_overlap): Same.
103 (builtin_access::overlap): Same.
104 (maybe_diag_overlap): Same.
105 (maybe_diag_access_bounds): Same.
106 (wrestrict_dom_walker::check_call): Handle memset.
107 (check_bounds_or_overlap): Same.
109 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
110 Jakub Jelinek <jakub@redhat.com>
113 * tree.c (fld_type_variant, fld_incomplete_type_of,
114 fld_process_array_type): Call fld->pset.add and don't call
115 add_tree_to_fld_list if it returns true.
116 (free_lang_data_in_type): Similarly with self-recursive call. Purge
117 non-marked types from TYPE_NEXT_VARIANT list.
118 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
120 2019-03-21 Jakub Jelinek <jakub@redhat.com>
122 * hash-table.h (hash_table): Add Lazy template parameter defaulted
123 to false, if true, don't alloc_entries during construction, but defer
124 it to the first method that needs m_entries allocated.
125 (hash_table::hash_table, hash_table::~hash_table,
126 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
127 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
128 hash_table::clear_slot, hash_table::traverse_noresize,
129 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
130 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
132 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
133 NO_INSERT instead of find_with_hash.
134 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
135 hash_set::m_table): Add Lazy to template params of hash_table.
136 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
137 * attribs.c (test_attribute_exclusions): Likewise.
138 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
139 hash_set. Add tests for hash_set with Lazy = true.
141 2019-03-21 Richard Biener <rguenther@suse.de>
143 PR tree-optimization/89779
144 * tree.c (tree_nop_conversion): Consolidate and fix defensive
145 checks with respect to released SSA names now having error_mark_node
147 * fold-const.c (operand_equal_p): Likewise.
149 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
152 * config/s390/s390.c (global_not_special_regno_p): Move to make it
154 (s390_optimize_register_info): Use global_not_special_regno_p to
155 check for global regs.
157 2019-03-20 Jakub Jelinek <jakub@redhat.com>
160 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
161 update this_alternative nor this_alternative_set.
163 2019-03-19 Jim Wilson <jimw@sifive.com>
166 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
167 align, size, offset. Use them to handle a BLKmode reference. Update
169 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
171 2019-03-19 Jakub Jelinek <jakub@redhat.com>
173 PR rtl-optimization/89768
174 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
176 (unroll_loop_runtime_iterations): Likewise.
178 2019-03-19 Martin Sebor <msebor@redhat.com>
180 PR tree-optimization/89644
181 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
182 rather than endptr as an indicator of nul-termination.
184 PR tree-optimization/89644
185 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
186 arrays in determining sequence sizes in strncpy and stpncpy.
188 2019-03-19 Martin Liska <mliska@suse.cz>
191 * predict.c (combine_predictions_for_bb): Empty likely_edges and
192 unlikely_edges if there's an edge that belongs to both these sets.
194 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
197 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
198 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
199 go via a stack temporary.
201 2019-03-19 Jakub Jelinek <jakub@redhat.com>
204 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
205 instead of gen_rtx_SUBREG.
206 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
208 2019-03-19 Richard Biener <rguenther@suse.de>
211 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
213 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
217 * tree.c (free_lang_data_in_decl): Do not free context of C++
220 2019-03-19 Jakub Jelinek <jakub@redhat.com>
223 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
224 subs for the first alternative except when operands[3] is 1.
227 * gimplify.c (gimplify_asm_expr): For output argument with
228 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
231 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
233 PR rtl-optimization/89753
234 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
235 explicit unrolling factor even more robust.
237 2019-03-19 Jakub Jelinek <jakub@redhat.com>
240 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
241 compensation use x2 += 1 instead of x2 -= -1 and when honoring
242 signed zeros, do another copysign after the compensation.
244 2019-03-18 Martin Sebor <msebor@redhat.com>
246 PR tree-optimization/89720
247 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
248 more conservatively, the same as anti-range.
250 2019-03-18 Richard Biener <rguenther@suse.de>
253 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
254 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
255 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
256 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
258 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
260 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
261 Extend queue to 1024 entries.
262 Add "consumed" field.
263 (gomp_print_output): Remove print_index parameter.
265 Change limit to unsigned.
266 Use consumed field to implement circular buffer.
267 Detect interrupted print in final pass.
268 Flush output at the end.
269 (run): Update gomp_print_output usage.
270 (main): Initialize kernargs->output_data.consumed.
272 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
274 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
275 calculation of the minimum number of scalar iterations for
276 fully-predicated loops.
278 2019-03-18 Martin Jambor <mjambor@suse.cz>
280 PR tree-optimization/89546
281 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
282 any propagation to its children took place.
284 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
287 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
288 parameter, and make use of it.
289 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
291 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
293 * config/arc/arc.opt (mcode-density-frame): Get the inital value
294 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
295 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
296 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
297 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
298 match what the ops is doing.
299 (push_multi_fp_blink): Likewise.
300 * config/arc/arc.c (arc_override_options): Enable enter/leave when
301 compiling for size and elf target.
302 (arc_save_callee_enter): Adjust note to match what enter/leave
305 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
307 * config/arc/arc.md (tst_movb): Fix constraint.
309 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
311 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
313 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
315 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
316 * config/arc/arc.c (arc_conditional_register_usage): Remove all
317 reg_alloc_order references.
318 (size_alloc_order): Define.
319 (arc_adjust_reg_alloc_order): New function.
320 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
322 (ADJUST_REG_ALLOC_ORDER): Define.
323 (HONOR_REG_ALLOC_ORDER): Likewise.
325 2019-03-18 Richard Biener <rguenther@suse.de>
328 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
329 loads and stores a bit more.
331 2019-03-18 Richard Biener <rguenther@suse.de>
334 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
335 load pessimization to stores as well.
337 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
340 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
341 successor, use NULL as its av set.
343 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
345 PR rtl-optimization/89721
346 * lra-constraints (invariant_p): Return false if side_effects_p holds.
348 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
351 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
352 When handling vec_extract, use modular arithmetic to allow
353 constant selectors greater than vector length.
354 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
355 V1TImode vectors to have constant selector values greater than 0.
356 Use modular arithmetic to compute vector index.
357 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
358 index for in-memory vectors. Correct code generation for
360 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
363 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
367 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
370 2019-03-15 Jakub Jelinek <jakub@redhat.com>
373 * tree.c (inchash::add_expr): Strip any location wrappers.
374 * fold-const.c (operand_equal_p): Move stripping of location wrapper
375 after hash verification.
378 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
379 SIGN_EXTEND and ZERO_EXTEND.
381 2019-03-14 Jason Merrill <jason@redhat.com>
382 Jakub Jelinek <jakub@redhat.com>
384 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
385 than if is_empty (*slot).
386 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
387 existing elt and for elt removal.
388 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
389 of already removed elt.
391 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
394 * config/i386/i386.c (remove_partial_avx_dependency): Handle
397 2019-03-14 Martin Liska <mliska@suse.cz>
400 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
402 2019-03-14 Richard Biener <rguenther@suse.de>
405 * config/i386/i386.c (make_resolver_func): Properly set
406 DECL_CONTEXT on the RESULT_DECL.
407 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
409 2019-03-14 Richard Biener <rguenther@suse.de>
411 * gimple-pretty-print.c: Include cfgloop.h.
412 (dump_gimple_phi): Adjust.
413 (dump_gimple_bb_header): Dump loop header for GIMPLE.
414 (pp_cfg_jump): Adjust.
415 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
416 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
417 (lower_phi_internal_fn): Remove.
418 (verify_gimple_call): Remove IFN_PHI special-casing.
419 (dump_function_to_file): Dump IL state.
420 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
421 done to deal with PHI nodes being present in non-SSA state.
423 2019-03-14 Jakub Jelinek <jakub@redhat.com>
426 * multiple_target.c (create_dispatcher_calls): Change
427 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
428 In the node->iterate_referring loop, push *ref rather than ref, call
429 ref->remove_reference () and always pass 0 to iterate_referring.
431 PR rtl-optimization/89679
432 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
433 would contain a paradoxical SUBREG.
435 2019-03-14 Richard Biener <rguenther@suse.de>
437 PR tree-optimization/89710
438 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
441 2019-03-14 Martin Liska <mliska@suse.cz>
443 * coverage.c (coverage_begin_function): Stream also
445 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
446 documentation about function declaration location.
447 * gcov-dump.c (tag_function): Print whole range
448 of function declaration.
449 * gcov.c (struct function_info): Add end_column field.
450 (function_info::function_info): Initialize it.
451 (output_json_intermediate_file): Output {start,end}_column
453 (read_graph_file): Read end_column.
455 2019-03-14 Richard Biener <rguenther@suse.de>
458 * fold-const.c (operand_equal_p): For INDIRECT_REF check
459 that the access types are similar.
461 2019-03-14 Jakub Jelinek <jakub@redhat.com>
463 PR tree-optimization/89703
464 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
465 aren't compatible also with builtin_decl_explicit. Check pure
466 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
467 and BUILT_IN_STPNCPY{,_CHK}.
469 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
472 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
473 addr32 prefix to VSIB address for X32.
474 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
476 (*avx512pf_gatherpf<mode>df_mask): Likewise.
477 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
478 (*avx512pf_scatterpf<mode>df_mask): Likewise.
479 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
480 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
481 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
482 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
483 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
484 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
485 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
486 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
487 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
488 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
489 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
490 (*avx512f_scatterdi<mode>): Likewise.
492 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
495 * lra-constraints.c (inherit_in_ebb): Update
496 potential_reload_hard_regs along with live_hard_regs.
498 2019-03-13 Jakub Jelinek <jakub@redhat.com>
501 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
503 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
505 2019-03-13 Martin Sebor <msebor@redhat.com>
507 PR tree-optimization/89662
508 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
511 2019-03-13 Richard Biener <rguenther@suse.de>
514 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
515 throw FP expressions at tree-affine.
517 2019-03-14 Richard Biener <rguenther@suse.de>
519 * tree-pretty-print.c (dump_generic_node): For -gimple properly
520 dump negative integer constants using _Literal (type) -num.
522 2019-03-13 Jakub Jelinek <jakub@redhat.com>
524 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
525 nonlocal_value member.
528 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
529 (ipa_simd_modify_function_body): Handle PHIs.
531 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
533 * config/s390/s390.c (s390_option_override_internal): Use more
534 aggressive inlining parameters.
536 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
538 * config/s390/3906.md: New file.
539 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
540 (LONGRUNNING_THRESHOLD): Remove.
541 (MAX_SCHED_MIX_SCORE): Decrease.
542 (MAX_SCHED_MIX_DISTANCE): Decrease.
543 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
544 (struct s390_sched_state): New struct to hold scheduling state.
545 (S390_SCHED_STATE_NORMAL): Remove.
546 (S390_SCHED_STATE_CRACKED): Remove.
547 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
548 (s390_get_sched_attrmask): Use new attribute.
549 (s390_get_unit_mask): Use new units.
550 (s390_is_fpd): New function.
551 (s390_is_fxd): New function.
552 (s390_is_longrunning): New function.
553 (s390_sched_score): Use new functions.
554 (s390_sched_reorder): Likewise.
555 (s390_sched_variable_issue): Rework and use new functions.
556 (s390_sched_init): Use new functions.
557 * config/s390/s390.h (s390_tune_attr): Add z14.
558 * config/s390/s390.md: Add z14.
560 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
562 * config/s390/2964.md: Update pipeline description.
563 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
564 (LONGRUNNING_THRESHOLD): Remove.
565 (LATENCY_FACTOR): Remove.
566 (s390_get_unit_mask): Add unit.
567 (s390_sched_score): Use fxd/fpd.
568 (s390_sched_variable_issue): Use fxd/fpd.
570 2019-03-12 Martin Liska <mliska@suse.cz>
572 * config/i386/i386.c: Reword an error message.
574 2019-03-12 Martin Jambor <mjambor@suse.cz>
576 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
577 terminate with newline.
579 2019-03-12 Jakub Jelinek <jakub@redhat.com>
582 * config/s390/s390.md (tabort): Use %wd instead of
583 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
585 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
586 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
590 * builtins.c (expand_builtin_int_roundingfn,
591 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
592 gcc_unreachable if validate_arglist fails.
594 2019-03-12 Richard Biener <rguenther@suse.de>
596 PR tree-optimization/89664
597 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
598 free the occurance tree after the early out.
600 2019-03-11 Jakub Jelinek <jakub@redhat.com>
604 * vr-values.c (vr_values::update_value_range): If
605 old_vr->varying_p (), don't update it, make new_vr also VARYING
608 2019-03-11 Martin Liska <mliska@suse.cz>
610 * config/aarch64/aarch64.c (aarch64_override_options_internal):
611 Fix double string quoting.
613 2019-03-11 Martin Liska <mliska@suse.cz>
615 * collect-utils.c (collect_wait): Wrap apostrophes
616 in gcc internal format with %'.
617 * collect2.c (main): Likewise.
618 (scan_prog_file): Likewise.
619 (scan_libraries): Likewise.
620 * config/i386/i386.c (ix86_expand_call): Likewise.
621 (ix86_handle_interrupt_attribute): Likewise.
622 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
623 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
624 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
625 * lto-wrapper.c (find_crtoffloadtable): Likewise.
626 * symtab.c (symtab_node::verify_base): Likewise.
627 * tree-cfg.c (verify_gimple_label): Likewise.
628 * tree.c (verify_type_variant): Likewise.
630 2019-03-11 Martin Liska <mliska@suse.cz>
632 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
633 in a string format message and fix GNU coding style.
634 (expand_builtin_set_thread_pointer): Likewise.
635 * common/config/aarch64/aarch64-common.c (aarch64_rewrite_selected_cpu): Likewise.
636 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
637 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
638 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
639 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
640 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
641 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
642 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
643 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
644 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
645 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option): Likewise.
646 * common/config/riscv/riscv-common.c (riscv_subset_list::parsing_subset_version): Likewise.
647 (riscv_subset_list::parse_std_ext): Likewise.
648 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
649 (riscv_subset_list::parse): Likewise.
650 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
651 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
652 (aarch64_override_options_internal): Likewise.
653 (aarch64_validate_mcpu): Likewise.
654 (aarch64_validate_march): Likewise.
655 (aarch64_validate_mtune): Likewise.
656 (aarch64_override_options): Likewise.
657 * config/alpha/alpha.c (alpha_option_override): Likewise.
658 * config/arc/arc.c (arc_init): Likewise.
659 (parse_mrgf_banked_regs_option): Likewise.
660 (arc_override_options): Likewise.
661 (arc_expand_builtin_aligned): Likewise.
662 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
663 (arm_expand_builtin): Likewise.
664 * config/arm/arm.c (arm_option_check_internal): Likewise.
665 (arm_configure_build_target): Likewise.
666 (arm_option_override): Likewise.
667 (arm_options_perform_arch_sanity_checks): Likewise.
668 (arm_handle_cmse_nonsecure_entry): Likewise.
669 (arm_handle_cmse_nonsecure_call): Likewise.
670 (arm_tls_referenced_p): Likewise.
671 (thumb1_expand_prologue): Likewise.
672 * config/avr/avr.c (avr_option_override): Likewise.
673 * config/bfin/bfin.c (bfin_option_override): Likewise.
674 * config/c6x/c6x.c (c6x_option_override): Likewise.
675 * config/cr16/cr16.c (cr16_override_options): Likewise.
676 * config/cris/cris.c (cris_option_override): Likewise.
677 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
678 * config/darwin-c.c (macosx_version_as_macro): Likewise.
679 * config/darwin.c (darwin_override_options): Likewise.
680 * config/frv/frv.c (frv_expand_builtin): Likewise.
681 * config/h8300/h8300.c (h8300_option_override): Likewise.
682 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
683 (ix86_option_override_internal): Likewise.
684 (warn_once_call_ms2sysv_xlogues): Likewise.
685 (ix86_expand_prologue): Likewise.
686 (split_stack_prologue_scratch_regno): Likewise.
687 (ix86_warn_parameter_passing_abi): Likewise.
688 * config/ia64/ia64.c (fix_range): Likewise.
689 * config/m68k/m68k.c (m68k_option_override): Likewise.
690 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
691 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
692 (mips_set_compression_mode): Likewise.
693 * config/mmix/mmix.c (mmix_option_override): Likewise.
694 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
695 * config/msp430/msp430.c (msp430_option_override): Likewise.
696 * config/nds32/nds32.c (nds32_option_override): Likewise.
697 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
698 (nios2_option_override): Likewise.
699 (nios2_expand_custom_builtin): Likewise.
700 * config/nvptx/mkoffload.c (main): Likewise.
701 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
702 * config/pa/pa.c (fix_range): Likewise.
703 (pa_option_override): Likewise.
704 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
705 (riscv_option_override): Likewise.
706 * config/rl78/rl78.c (rl78_option_override): Likewise.
707 * config/rs6000/aix61.h: Likewise.
708 * config/rs6000/aix71.h: Likewise.
709 * config/rs6000/aix72.h: Likewise.
710 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
711 * config/rs6000/freebsd64.h: Likewise.
712 * config/rs6000/linux64.h: Likewise.
713 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
714 (rs6000_expand_zeroop_builtin): Likewise.
715 (rs6000_expand_mtfsb_builtin): Likewise.
716 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
717 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
718 (rs6000_invalid_builtin): Likewise.
719 (rs6000_expand_split_stack_prologue): Likewise.
720 * config/rs6000/rtems.h: Likewise.
721 * config/rx/rx.c (valid_psw_flag): Likewise.
722 (rx_expand_builtin): Likewise.
723 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
724 * config/s390/s390.c (s390_expand_builtin): Likewise.
725 (s390_function_profiler): Likewise.
726 (s390_option_override_internal): Likewise.
727 (s390_option_override): Likewise.
728 * config/sh/sh.c (sh_option_override): Likewise.
729 (sh_builtin_saveregs): Likewise.
730 (sh_fix_range): Likewise.
731 * config/sh/vxworks.h: Likewise.
732 * config/sparc/sparc.c (sparc_option_override): Likewise.
733 * config/spu/spu.c (spu_option_override): Likewise.
734 (fix_range): Likewise.
735 * config/visium/visium.c (visium_option_override): Likewise.
736 (visium_handle_interrupt_attr): Likewise.
737 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
738 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
739 (dbg_cnt_process_opt): Likewise.
740 * dwarf2out.c (output_dwarf_version): Likewise.
741 * except.c (expand_eh_return): Likewise.
742 * gcc.c (defined): Likewise.
743 (driver_handle_option): Likewise.
744 (process_command): Likewise.
745 (compare_files): Likewise.
746 (driver::prepare_infiles): Likewise.
747 (driver::do_spec_on_infiles): Likewise.
748 (driver::maybe_run_linker): Likewise.
749 * omp-offload.c (oacc_parse_default_dims): Likewise.
750 * opts-global.c (handle_common_deferred_options): Likewise.
751 * opts.c (parse_sanitizer_options): Likewise.
752 (common_handle_option): Likewise.
753 (enable_warning_as_error): Likewise.
754 * passes.c (enable_disable_pass): Likewise.
755 * plugin.c (parse_plugin_arg_opt): Likewise.
756 (default_plugin_dir_name): Likewise.
757 * targhooks.c (default_expand_builtin_saveregs): Likewise.
758 (default_pch_valid_p): Likewise.
759 * toplev.c (init_asm_output): Likewise.
760 (process_options): Likewise.
761 (toplev::run_self_tests): Likewise.
762 * tree-cfg.c (verify_gimple_call): Likewise.
763 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
764 (tree_inlinable_function_p): Likewise.
765 * var-tracking.c (vt_find_locations): Likewise.
767 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
769 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
770 only on the else branch.
772 2019-03-11 Martin Liska <mliska@suse.cz>
774 * gcov.c (output_intermediate_json_line): Print function
776 (output_json_intermediate_file): Add new argument.
777 * doc/gcov.texi: Document the change.
779 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
781 PR rtl-optimization/89588
782 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
783 explicit unrolling factor more robust.
785 2019-03-11 Richard Biener <rguenther@suse.de>
787 PR tree-optimization/89649
788 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
789 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
790 on the prolog and epilog loops.
791 (vect_loop_versioning): Return copy of loop.
792 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
793 on the non-vectorized version of the loop.
795 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
798 * config/i386/sse.md (*vec_extractv2di_0_sse):
799 Add (=r,x) alternative and corresponding splitter.
801 2019-03-10 Martin Jambor <mjambor@suse.cz>
803 PR tree-optimization/85762
804 PR tree-optimization/87008
805 PR tree-optimization/85459
806 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
807 it points to if there is a type changing MEM_REF. Adjust all callers.
808 (build_accesses_from_assign): Disable total scalarization if
809 contains_vce_or_bfcref_p returns true through the new parameter, for
812 2019-03-09 Jakub Jelinek <jakub@redhat.com>
815 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
816 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
819 * common.opt (fdiagnostics-show-labels,
820 fdiagnostics-show-line-numbers, fdiagnostics-format=,
821 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
822 gas-locview-support, ginline-points, ginternal-reset-location-views):
823 Terminate description text with a dot.
824 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
825 * config/mcore/mcore.opt (m210, m340): Likewise.
826 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
827 mnops=): Start description text with a capital letter.
828 * config/arc/arc.opt (msize-level=): Likewise.
829 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
830 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
832 * config/ft32/ft32.opt (msim): Likewise.
833 (mft32b, mcompress): Likewise. Terminate description text with a dot.
834 (mnodiv, mnopm): Terminate description text with a dot.
835 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
837 * config/i386/i386.opt (prefer_vector_width, instrument_return):
839 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
842 PR rtl-optimization/89634
843 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
844 are modified in BB_END (e->src) instruction.
846 2019-03-08 David Malcolm <dmalcolm@redhat.com>
849 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
850 messages more amenable to translation, and improve wording.
852 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
854 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
855 ud- and du-chains between phases.
857 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
860 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
861 instead of POLY_INT_CST.
863 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
865 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
868 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
873 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
874 (_mm_storeu_si64): Ditto.
876 2019-03-08 Martin Liska <mliska@suse.cz>
879 * config/i386/i386.c (ix86_option_override_internal): Disable
880 jump tables when retpolines are used.
882 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
885 * ipa-split.c (execute_split_functions): Do not split
886 'noinline' or 'section' function.
888 2019-03-08 Jakub Jelinek <jakub@redhat.com>
891 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
892 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
893 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
896 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
897 from diagnostics. Formatting fixes.
900 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
901 warn_odr diagnostics.
904 * lra-constraints.c (process_alt_operands): Avoid one space before
905 " at the end of line and another after " on another line in a string
907 * attribs.c (handle_dll_attribute): Likewise.
908 * config/avr/avr-devices.c (avr_texinfo): Likewise.
910 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
911 warning_at or inform messages in G_() if there is no ?:.
913 PR tree-optimization/89550
914 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
915 returned true. Formatting fixes.
916 (expand_builtin_strnlen): Formatting fixes.
917 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
918 if warning_at returned true.
919 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
921 2019-03-08 Richard Biener <rguenther@suse.de>
924 * cfgloop.h (struct loop): Add owned_clique field.
925 * cfgloopmanip.c (copy_loop_info): Copy it.
926 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
928 * tree-inline.c (copy_loops): Remap owned_clique.
929 * lto-streamer-in.c (input_cfg): Stream owned_clique.
930 * lto-streamer-out.c (output_cfg): Likewise.
932 2019-03-08 Jakub Jelinek <jakub@redhat.com>
935 * config/darwin.c: Include intl.h.
936 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
937 composing the message out of two separate parts.
939 2019-03-07 Jakub Jelinek <jakub@redhat.com>
942 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
943 doesn't start with a capital letter and doesn't end with a dot.
944 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
945 with a capital letter.
946 (ix86_mangle_function_version_assembler_name): Likewise.
947 (ix86_generate_version_dispatcher_body): Likewise.
948 (fold_builtin_cpu): Likewise.
949 (get_builtin_code_for_version): Likewise. Remove extraneous space.
950 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
951 translators, wrap full type name in %qs.
954 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
955 depend clause with source (or sink) modifier.
956 * omp-expand.c (expand_omp_ordered_sink): Likewise.
959 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
960 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
961 (avx512f_load<mode>_mask): New define_expand.
962 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
963 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
964 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
965 __builtin_ia32_movess_mask): New builtins.
966 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
967 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
968 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
969 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
971 2019-03-07 Martin Jambor <mjambor@suse.cz>
974 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
975 for extern inline functions.
977 2019-03-07 Martin Jambor <mjambor@suse.cz>
980 * cgraph.h (cgraph_node): New inline method former_thunk_p.
981 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
982 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
983 have multiple callees. At the end check if declarations match as
984 opposed to cgraph_nodes.
986 2019-03-07 Martin Liska <mliska@suse.cz>
988 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
989 which is equivalent to searching for this in clones chain.
990 * symtab.c (symtab_node::verify_base): Similarly compare ASM
991 names with a neighbour and special case first node in a chain.
993 2019-01-25 Jason Merrill <jason@redhat.com>
995 PR c++/80916 - spurious "static but not defined" warning.
996 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
997 for an internal symbol with DECL_EXTERNAL.
999 2019-04-07 Richard Biener <rguenther@suse.de>
1002 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
1003 * tree-inline.c (copy_loops): Simplify.
1005 2019-03-07 Martin Liska <mliska@suse.cz>
1007 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
1009 2019-03-07 Richard Biener <rguenther@suse.de>
1011 PR tree-optimization/89595
1012 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
1013 stmt iterator as reference, take boolean output parameter to
1014 indicate whether the stmt was removed and thus the iterator
1016 (dom_opt_dom_walker::before_dom_children): Re-iterate over
1017 stmts created by folding.
1019 2019-03-07 Jakub Jelinek <jakub@redhat.com>
1022 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
1025 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
1027 PR rtl-optimization/88845
1028 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
1030 * lra.c (remove_scratches_1): New function.
1031 (remove_scratches): Use it.
1032 (lra_emit_move): Likewise.
1034 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
1036 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
1037 unaligned_access variable.
1038 * config/arc/arc.c (arc_override_options): Set unaligned access
1039 default on for HS CPUs.
1040 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
1042 2019-03-06 Martin Liska <mliska@suse.cz>
1044 PR gcov-profile/89577
1045 * doc/gcov.texi: Prefer to use --coverage.
1046 * doc/sourcebuild.texi: Likewise.
1048 2019-03-02 Jason Merrill <jason@redhat.com>
1050 PR c++/86485 - -Wmaybe-unused with empty class ?:
1051 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
1053 2019-03-05 Jakub Jelinek <jakub@redhat.com>
1056 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
1060 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
1061 exactly one argument.
1063 2019-03-05 Jakub Jelinek <jakub@redhat.com>
1064 Richard Sandiford <richard.sandiford@arm.com>
1066 PR tree-optimization/89570
1067 * match.pd (vec_cond into cond_op simplification): Don't use
1068 get_conditional_internal_fn, use as_internal_fn (cond_op).
1070 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
1073 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
1074 to decide when to split off a non-zero offset from a symbol.
1075 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
1076 in function symbols.
1078 2019-03-05 Richard Biener <rguenther@suse.de>
1080 PR tree-optimization/89594
1081 * tree-if-conv.c (pass_if_conversion::execute): Handle
1082 case where .LOOP_VECTORIZED_FUNCTION was removed.
1084 2019-03-05 Jakub Jelinek <jakub@redhat.com>
1087 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
1088 instead alloca it only when needed with the needed size.
1090 PR tree-optimization/89570
1091 * match.pd (vec_cond into cond_op simplification): Guard with
1092 vectorized_internal_fn_supported_p test and #if GIMPLE.
1094 PR tree-optimization/89566
1095 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
1096 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
1097 Punt if get_user_idx_format succeeds, but idx_format argument is
1098 not provided or doesn't have pointer type, or if idx_args is above
1099 number of provided arguments.
1101 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
1103 PR tree-optimization/89437
1104 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
1106 2019-03-04 Richard Biener <rguenther@suse.de>
1109 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
1112 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
1114 PR tree-optimization/89487
1115 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
1116 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
1117 (distribute_loop): Don't do runtime alias check if there is non-
1118 addressable data reference.
1119 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
1120 is a register variable.
1122 2019-03-02 Jakub Jelinek <jakub@redhat.com>
1125 * config/arm/arm.md (cmpsi2_addneg): Use
1126 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
1127 If operands[2] is 0 or INT_MIN, force use of subs.
1128 (*compare_scc splitter): Use gen_int_mode.
1129 (*negscc): Likewise.
1130 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
1132 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
1133 Monk Chiang <sh.chiang04@gmail.com>
1135 * common/config/riscv/riscv-common.c: Include sstream.
1136 (riscv_subset_list::to_string): New.
1137 (riscv_arch_str): Likewise.
1138 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
1140 * config/riscv/riscv-protos.h (riscv_arch_str): New.
1141 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
1142 (riscv_emit_attribute): New.
1143 (riscv_file_start): Emit attribute if needed.
1144 (riscv_option_override): Init riscv_emit_attribute_p.
1145 * config/riscv/riscv.opt (mriscv-attribute): New option.
1146 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
1148 * doc/install.texi: Document --with-riscv-attribute.
1149 * doc/invoke.texi: Document -mriscv-attribute.
1151 * common/config/riscv/riscv-common.c:
1152 Include config/riscv/riscv-protos.h.
1153 (INCLUDE_STRING): Defined.
1154 (RISCV_DONT_CARE_VERSION): Defined.
1155 (riscv_subset_t): Declare.
1156 (riscv_subset_t::riscv_subset_t): New.
1157 (riscv_subset_list): Declare.
1158 (riscv_subset_list::riscv_subset_list): New.
1159 (riscv_subset_list::~riscv_subset_list): Likewise.
1160 (riscv_subset_list::parsing_subset_version): Likewise.
1161 (riscv_subset_list::parse_std_ext): Likewise.
1162 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
1163 (riscv_subset_list::add): Likewise.
1164 (riscv_subset_list::lookup): Likewise.
1165 (riscv_subset_list::xlen): Likewise.
1166 (riscv_subset_list::parse): Likewise.
1167 (riscv_supported_std_ext): Likewise.
1168 (current_subset_list): Likewise.
1169 (riscv_parse_arch_string): Using riscv_subset_list::parse to
1172 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
1174 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1175 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
1176 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
1178 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
1180 PR rtl-optimization/85899
1181 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
1182 fallthru edges leading to the exit block.
1184 2019-03-01 Tamar Christina <tamar.christina@arm.com>
1187 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
1188 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
1190 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
1192 PR tree-optimization/89535
1193 * tree-vect-stmts.c (vectorizable_call): Record the vector types
1194 for each operand. Calculate the fallback choice for mask operands
1195 and pass it to vect_get_vec_def_for_operand.
1197 2019-03-01 Richard Biener <rguenther@suse.de>
1200 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
1201 get virtual operands.
1202 (get_expr_operands): Handle CONST_DECL like other decls.
1204 2019-03-01 Jakub Jelinek <jakub@redhat.com>
1207 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
1208 on DECL_P and EXPR_P.
1210 2019-03-01 Richard Biener <rguenther@suse.de>
1213 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
1214 argument, defaulted to zero.
1215 * passes.c (execute_function_todo): Pass down SSA update flags
1216 to cleanup_tree_cfg.
1217 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
1218 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
1220 (cleanup_tree_cfg): Get and pass down SSA update flags.
1222 2019-03-01 Jakub Jelinek <jakub@redhat.com>
1225 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
1226 early_lto_debug argument.
1228 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
1230 PR tree-optimization/89536
1231 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
1232 only whether bit #0 of the value is 0 instead of the entire value.
1234 2019-02-28 Marek Polacek <polacek@redhat.com>
1236 PR c++/87068 - missing diagnostic with fallthrough statement.
1237 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
1238 at the end of a seq, save its location to walk_stmt_info.
1239 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
1242 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
1245 * tree.c (find_atomic_core_type): Move ahead in file.
1246 (check_base_type): Correctly compare alignments of atomic types.
1248 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
1251 * config/i386/i386.c (get_builtin_code_for_version): Identify
1252 Westmere from PCLMUL, instead of AES.
1254 2019-02-28 Jakub Jelinek <jakub@redhat.com>
1257 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
1258 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
1261 2019-02-28 Tamar Christina <tamar.christina@arm.com>
1264 * config/aarch64/aarch64-option-extensions.def: Document it.
1265 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
1268 2019-02-28 Jakub Jelinek <jakub@redhat.com>
1271 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
1272 builtins if they don't have a single scalar floating point argument.
1275 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
1277 PR rtl-optimization/89490
1278 * varasm.c (get_block_for_section): Bail out for mergeable sections.
1279 (default_use_anchors_for_symbol_p, output_object_block): Assert the
1280 block section is not mergeable.
1282 2019-02-27 Jakub Jelinek <jakub@redhat.com>
1285 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
1286 old define_insn to ...
1287 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
1288 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
1289 Rename old define_insn to ...
1290 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
1291 (thumb2_casesi_internal_pic): New define_expand. Rename old
1293 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
1294 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
1295 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
1297 2019-02-27 Richard Biener <rguenther@suse.de>
1300 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
1302 2019-02-27 Richard Biener <rguenther@suse.de>
1304 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
1307 2019-02-27 Richard Biener <rguenther@suse.de>
1310 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
1311 parameter, prefix section name with .gnu.debuglto_ if true.
1312 (dwarf2out_finish): Pass false to output_comdat_type_unit.
1313 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
1315 2019-02-27 Richard Biener <rguenther@suse.de>
1318 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
1319 rather than on use_debug_types, doing what output_die does.
1320 (value_format): Likewise.
1322 2019-02-27 Martin Jambor <mjambor@suse.cz>
1323 Martin Sebor <msebor@redhat.com>
1325 * doc/invoke.texi (Warning Options): Reword description of
1326 -Wno-absolute-value.
1328 2019-02-27 Jakub Jelinek <jakub@redhat.com>
1330 PR tree-optimization/89280
1331 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
1332 builtin_setjmp_setup_bb): New functions.
1333 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
1334 When visiting __builtin_setjmp_setup block, queue in special
1335 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
1336 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
1337 from visited after the loop if they don't have any visited successor
1340 2018-02-26 Steve Ellcey <sellcey@marvell.com>
1342 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
1344 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
1346 2019-02-26 Jakub Jelinek <jakub@redhat.com>
1349 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
1350 with types other than sizetype/ssizetype.
1352 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
1354 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
1355 (enum sparc_processor_type): ...this.
1356 (enum sparc_code_model_type): New enumeration type.
1357 (enum sparc_memory_model_type): Tweak comments.
1358 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
1360 (mcmodel): Use sparc_code_model enumeration and variable.
1361 (sparc_code_model): New enumeration.
1362 (mdebug): Add Undocumented marker.
1363 * config/sparc/sparc.h (enum cmodel): Delete.
1364 (sparc_cmodel): Likewise.
1365 (TARGET_CM_MEDLOW): Adjust to above renaming.
1366 (TARGET_CM_MEDMID): Likewise.
1367 (TARGET_CM_MEDANY): Likewise.
1368 (TARGET_CM_EMBMEDANY): Likewise.
1369 * config/sparc/sparc.c (sparc_cmodel): Delete.
1370 (sparc_option_override): Remove string/value mapping support for the
1371 code model. Move code and memory model support to after the handling
1372 of target flags. Do private machine setup last.
1373 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
1374 (sparc_legitimize_reload_address): Likewise.
1375 (sparc_output_mi_thunk): Likewise.
1376 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
1378 2019-02-26 Jakub Jelinek <jakub@redhat.com>
1380 PR tree-optimization/89500
1381 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
1382 (handle_builtin_strlen): Remove noncst_bound variable. Always
1383 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
1384 cst if the first cst bytes starting at x are known to be non-zero,
1385 even if the string is not zero terminated. Don't try to modify
1386 *si for strnlen. Update strlen_to_stridx only for strlen or if
1387 we can prove strnlen returns the same value as strlen would.
1389 2019-02-26 Martin Liska <mliska@suse.cz>
1391 * alloc-pool.h (struct pool_usage): Remove extra
1393 * bitmap.h (struct bitmap_usage): Likewise.
1394 * ggc-common.c (struct ggc_usage): Likewise.
1395 * mem-stats.h (struct mem_usage): Likewise.
1396 (mem_alloc_description::dump): Print dash lines
1397 here and repeat header at the end of a table report.
1398 It's then more readable.
1399 * tree-phinodes.c (phinodes_print_statistics): Make
1400 horizontal alignment.
1401 * tree-ssanames.c (ssanames_print_statistics): Likewise.
1402 * vec.c (struct vec_usage): Remove extra print_dash_line.
1403 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
1405 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
1407 * doc/extend.texi (__builtin_object_size):
1408 Use @pxref instead of @xref inside parenthesis.
1409 (__builtin_has_attribute): Add missing comma after @xref.
1410 (__builtin_object_size): Ditto.
1411 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
1412 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
1415 2019-02-26 Jeff Law <law@redhat.com>
1417 PR rtl-optimization/87761
1418 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
1419 detect obviously dead insns and delete them.
1421 2019-02-26 Richard Biener <rguenther@suse.de>
1423 PR tree-optimization/89505
1424 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
1425 to handle restrict pointed-to vars with multiple subvars
1428 2019-02-26 Richard Biener <rguenther@suse.de>
1430 PR tree-optimization/89489
1431 * tree-parloops.c (create_loop_fn): Copy over last_clique.
1433 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
1435 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
1436 and move around comment.
1437 <BIT_AND_EXPR>: Likewise.
1438 <BIT_NOT_EXPR>: Add specific handling for boolean types.
1440 2019-02-26 Jakub Jelinek <jakub@redhat.com>
1443 * config/i386/i386.c (remove_partial_avx_dependency): Call
1444 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
1445 after changing possibly many instructions to use that pseudo. Fix up
1446 insertion of v4sf_const0 setter at the start of bb.
1448 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
1451 * doc/extend.texi (Variadic Pointer Args): New section.
1453 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
1454 Martin Sebor <msebor@gmail.com>
1456 * common.opt (Wattribute-alias): Likewise.
1457 * doc/invoke.texi (Option Summary): List general form of
1458 -Wattribute-alias=. List positive form of -Wmissing-attributes.
1459 (-Wmissing-attributes): Invert entry, rewrite and correct default.
1460 Add cross-references.
1461 (-Wattribute-alias): Rewrite and correct default. Mention
1462 considered attributes (same as for -Wmissing-attributes).
1464 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
1466 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
1467 (_mm_cvtpd_ps): Likewise.
1468 (_mm_cvttpd_epi32): Likewise.
1471 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
1472 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
1475 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
1477 2019-02-25 Tamar Christina <tamar.christina@arm.com>
1480 * common/config/aarch64/aarch64-common.c
1481 (struct aarch64_option_extension): Add is_synthetic.
1482 (all_extensions): Use it.
1483 (TARGET_OPTION_INIT_STRUCT): Define hook.
1484 (struct gcc_targetm_common): Moved to end.
1485 (all_extensions_by_on): New.
1486 (opt_ext_cmp, typedef opt_ext): New.
1487 (aarch64_option_init_struct): New.
1488 (aarch64_contains_opt): New.
1489 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
1490 * config/aarch64/aarch64-option-extensions.def
1491 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
1492 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
1493 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
1494 Set is_synthetic to false.
1495 (crypto): Set is_synthetic to true.
1496 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
1499 2019-02-25 Tamar Christina <tamar.christina@arm.com>
1501 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
1502 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
1503 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
1504 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
1505 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
1506 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
1507 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
1508 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
1510 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
1511 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
1512 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
1513 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
1514 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
1515 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
1516 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
1517 vfmlsl_laneq_high_f16): ... To this.
1518 * config/arm/neon.md: Update comments.
1520 2019-02-25 Tamar Christina <tamar.christina@arm.com>
1522 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
1523 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
1524 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
1525 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
1526 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
1527 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
1528 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
1529 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
1531 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
1532 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
1533 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
1534 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
1535 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
1536 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
1537 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
1538 vfmlslq_laneq_high_f16): ... To this.
1540 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
1542 PR rtl-optimization/86096
1543 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
1544 comparing mw_order values.
1546 2019-02-25 Jakub Jelinek <jakub@redhat.com>
1549 * config/arm/arm.md (*subsi3_carryin_const): Use
1550 arm_neg_immediate_operand predicate instead of
1551 arm_not_immediate_operand, "L" constraint instead of "K" and
1552 print it using %n2 instead of %B2.
1553 (*subsi3_carryin_const0): New define_insn.
1554 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
1555 instead of arm_not_operand and "I" constraint instead of "K" and
1556 print it using %n3 instead of %B2. Instead of using match_dup 2 add
1557 another match_operand and in the condition check that it is negation
1559 (*subsi3_carryin_compare_const0): New define_ins.
1560 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
1561 *subsi3_carryin_const.
1562 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
1563 split into *subsi3_carryin_compare_const0 if the highpart is zero.
1566 * config/arm.vfp.md (*negdf2_vfp): Use
1567 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
1568 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
1570 2019-02-24 Jakub Jelinek <jakub@redhat.com>
1572 PR rtl-optimization/89445
1573 * simplify-rtx.c (simplify_ternary_operation): Don't use
1574 simplify_merge_mask on operands that may trap.
1575 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
1576 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
1577 second operand is CONST_VECTOR, check if any element could be zero.
1578 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
1579 their operands can trap.
1581 2019-02-23 Martin Sebor <msebor@redhat.com>
1583 * gimple-ssa-sprintf.c (target_strtol): Rename...
1584 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
1585 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
1586 check for range error.
1588 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
1591 * opts-common.c (prune_options): Also prune joined switches
1592 with Negative and RejectNegative.
1593 * config/i386/i386.opt (march=): Add Negative(march=).
1594 (mtune=): Add Negative(mtune=).
1595 * doc/options.texi: Document Negative used together with Joined
1598 2019-02-22 Martin Sebor <msebor@redhat.com>
1600 * doc/extend.texi (Other Builtins): Add
1601 __builtin_is_constant_evaluated.
1603 2019-02-22 Richard Biener <rguenther@suse.de>
1605 PR tree-optimization/87609
1606 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
1608 2019-02-22 Jeff Law <law@redhat.com>
1610 PR rtl-optimization/87761
1611 * config/mips/mips.md: Add new combiner pattern to recognize
1612 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
1614 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
1617 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
1618 destination register in peepholes generating patterns for ADDS/SUBS.
1619 (add<mode>3_compare0,
1620 *addsi3_compare0_uxtw, add<mode>3_compareC,
1621 add<mode>3_compareV_imm, add<mode>3_compareV,
1622 *adds_<optab><ALLX:mode>_<GPI:mode>,
1623 *subs_<optab><ALLX:mode>_<GPI:mode>,
1624 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
1625 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
1626 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
1627 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
1628 sub<mode>3_compare1): Allow stack pointer for source register.
1629 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
1631 2019-02-22 Martin Sebor <msebor@redhat.com>
1633 PR tree-optimization/88993
1634 PR tree-optimization/88853
1635 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
1637 (sprintf_dom_walker::call_info::is_string_func): New helper.
1638 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
1639 for formatted string functions.
1640 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
1642 2019-02-22 Martin Sebor <msebor@redhat.com>
1645 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
1646 unreachable subexpressions.
1648 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
1649 Hongtao Liu <hongtao.liu@intel.com>
1650 Sunil K Pandey <sunil.k.pandey@intel.com>
1653 * config/i386/i386-passes.def: Add
1654 pass_remove_partial_avx_dependency.
1655 * config/i386/i386-protos.h
1656 (make_pass_remove_partial_avx_dependency): New.
1657 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
1659 (pass_data_remove_partial_avx_dependency): New.
1660 (pass_remove_partial_avx_dependency): Likewise.
1661 (make_pass_remove_partial_avx_dependency): Likewise.
1662 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
1663 (*extendsfdf2): Add avx_partial_xmm_update.
1664 (truncdfsf2): Likewise.
1665 (*float<SWI48:mode><MODEF:mode>2): Likewise.
1666 (SF/DF conversion splitters): Disabled for TARGET_AVX.
1668 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
1671 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
1674 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
1677 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
1678 (PTA_SKYLAKE): Add PTA_AES.
1679 (PTA_GOLDMONT): Likewise.
1681 2019-02-22 Sudakshina Das <sudi.das@arm.com>
1683 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
1684 instruction if enabled.
1685 (aarch64_override_options): Remove reference to return address key.
1687 2019-02-22 Richard Biener <rguenther@suse.de>
1689 PR tree-optimization/89440
1690 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
1691 not necessary assert.
1693 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
1696 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
1697 (oacc_replace_fn_attrib_attr): ... this new function.
1698 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
1699 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
1701 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1703 * config/arm/arm-cpus.in (ares): Rename to...
1704 (neoverse-n1): ... This. Add ares as alias.
1705 * config/arm/arm-tables.opt: Regenerate.
1706 * config/arm/arm-tune.md: Likewise.
1707 * doc/invoke.txt (ARM Options): Document neoverse-n1.
1709 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1711 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
1712 * config/aarch64/aarch64-tune.md: Regenerate.
1713 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
1715 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1717 * config/aarch64/aarch64.c (ares_tunings): Rename to...
1718 (neoversen1_tunings): ... This.
1719 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
1720 (neoverse-n1): New CPU.
1721 * config/aarch64/aarch64-tune.md: Regenerate.
1722 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
1724 2019-02-22 Richard Biener <rguenther@suse.de>
1727 * cfghooks.h (dependence_hash): New typedef.
1728 (struct copy_bb_data): New type.
1729 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
1730 (duplicate_block): Likewise.
1731 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
1732 (copy_bbs): Create and pass down copy_bb_data.
1733 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
1734 (rtl_duplicate_bb): Likewise.
1735 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
1736 remap dependence info.
1738 2019-02-22 Richard Biener <rguenther@suse.de>
1740 PR tree-optimization/87609
1741 * tree-core.h (tree_base): Document special clique values.
1742 * tree-inline.c (remap_dependence_clique): Do not use the
1743 special clique value of one.
1744 (maybe_set_dependence_info): Use clique one.
1745 (clear_dependence_clique): New callback.
1746 (compute_dependence_clique): Clear clique one from all refs
1747 before assigning it (again).
1749 2019-02-21 Martin Sebor <msebor@redhat.com>
1751 * doc/extend.texi (__clear_cache): Correct signature.
1753 2019-02-21 Ian Lance Taylor <iant@golang.org>
1756 * varasm.c (decode_addr_const): Call lookup_constant_def rather
1757 than output_constant_def.
1758 (add_constant_to_table): New static function.
1759 (output_constant_def): Call add_constant_to_table.
1760 (tree_output_constant_def): Likewise.
1762 2019-02-21 Jakub Jelinek <jakub@redhat.com>
1765 * builtins.c (fold_builtin_arith_overflow): If first two args are
1766 INTEGER_CSTs, set intres and ovfres to constants rather than calls
1769 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
1772 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
1773 error for -mindirect-branch/-mfunction-return with incompatible
1776 2019-02-21 Jakub Jelinek <jakub@redhat.com>
1779 * constraints.md (q): Remove.
1780 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
1783 2019-02-21 Martin Jambor <mjambor@suse.cz>
1786 * omp-general.c (omp_extract_for_data): Removed a duplicate call
1787 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
1788 (omp_adjust_for_condition): ...here. Added necessary parameters.
1789 * omp-general.h (omp_adjust_for_condition): Updated declaration.
1790 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
1791 proper values to new parameters of omp_adjust_for_condition.
1793 2019-02-20 Jakub Jelinek <jakub@redhat.com>
1796 * expr.c (expand_assignment): If result is a MEM, use change_address
1797 instead of simplify_gen_subreg.
1799 2019-02-20 Jakub Jelinek <jakub@redhat.com>
1800 David Malcolm <dmalcolm@redhat.com>
1803 * fold-const.c (decode_field_reference): Return NULL_TREE if
1804 lang_hooks.types.type_for_size returns NULL. Check it before
1805 overwriting *exp_. Use return NULL_TREE instead of return 0.
1807 2019-02-20 Jakub Jelinek <jakub@redhat.com>
1811 * toplev.c (do_compile): Double the emin/emax exponents to workaround
1814 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
1817 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
1818 TARGET_SSE in addition to TARGET_SSE_MATH.
1820 (ix86_excess_precision): Ditto.
1821 (ix86_float_exceptions_rounding_supported_p): Ditto.
1822 (use_rsqrt_p): Ditto.
1823 * config/i386/sse.md (rsqrt<mode>2): Ditto.
1825 2019-02-20 David Malcolm <dmalcolm@redhat.com>
1828 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
1829 linenum_arith_t when determining if two adjacent line spans are
1830 close enough to merge.
1831 (diagnostic_show_locus): Use linenum_arith_t when iterating over
1832 lines within each line_span.
1834 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
1837 * lra-constraints.c(uses_hard_regs_p): Fix handling of
1838 paradoxical SUBREGS.
1840 2019-02-20 Li Jia He <helijia@linux.ibm.com>
1843 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
1844 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
1845 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
1848 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
1850 * config/gcn/gcn.c (print_operand): Fix typo.
1852 2019-02-19 Richard Biener <rguenther@suse.de>
1855 * toplev.c (do_compile): Initialize mpfr's exponent range
1856 based on available float modes.
1858 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
1860 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
1861 as long as the epilogue isn't completed.
1863 2019-02-18 Martin Sebor <msebor@redhat.com>
1865 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
1866 __has_cpp_attribute, and __has_include.
1868 2019-02-18 Martin Sebor <msebor@redhat.com>
1870 * doc/invoke.texi (-Wreturn-type): Correct and expand.
1872 2019-02-18 Martin Sebor <msebor@redhat.com>
1875 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
1877 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
1879 2019-02-18 Richard Biener <rguenther@suse.de>
1881 PR tree-optimization/89296
1882 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
1883 of no-warning flag to cases that might emit the bogus warning.
1885 2019-02-18 Jakub Jelinek <jakub@redhat.com>
1888 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
1890 * config/arm/vfp.md (*movdi_vfp): Likewise.
1891 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
1892 "q" constraint for operands[0].
1895 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
1896 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
1897 pattern in a temporary buffer.
1898 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
1899 than 64-operands[2].
1902 * config/s390/s390.c (s390_indirect_branch_attrvalue,
1903 s390_indirect_branch_settings): Define unconditionally.
1904 (s390_set_current_function): Likewise, but guard the whole body except
1905 the s390_indirect_branch_settings call with
1906 #if S390_USE_TARGET_ATTRIBUTE.
1907 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
1909 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
1910 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
1911 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
1912 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
1913 HOST_WIDE_INT_1U instead of 1ULL.
1914 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
1915 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
1916 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
1917 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
1919 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
1922 2019-02-18 Martin Jambor <mjambor@suse.cz>
1924 PR tree-optimization/89209
1925 * tree-sra.c (create_access_replacement): New optional parameter
1926 reg_tree. Use it as a type if non-NULL and access type is not of
1928 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
1929 to create_access_replacement.
1930 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
1931 Check lacc is non-NULL before attempting to re-create it on the RHS.
1933 2019-02-18 Martin Liska <mliska@suse.cz>
1936 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
1938 (symbol_table::free_edge): Recycle m_summary_id.
1939 * cgraph.h (get_summary_id): New.
1940 (symbol_table::release_symbol): Set m_summary_id to -1
1942 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
1943 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
1944 function_summary to fast_function_summary.
1945 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
1946 * ipa-pure-const.c (class funct_state_summary_t):
1947 Switch from function_summary to fast_function_summary.
1948 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
1949 (class ipa_ref_opt_summary_t): Switch from function_summary
1950 to fast_function_summary.
1951 * symbol-summary.h (class function_summary_base): New class
1952 that is created from base of former function_summary.
1953 (function_summary_base::unregister_hooks): New.
1954 (class function_summary): Inherit from function_summary_base.
1955 (class call_summary_base): New class
1956 that is created from base of former call_summary.
1957 (class call_summary): Inherit from call_summary_base.
1958 (struct is_same): New.
1959 (class fast_function_summary): New summary class.
1960 (class fast_call_summary): New summary class.
1961 * vec.h (vec_safe_grow_cleared): New function.
1963 2019-02-18 Martin Liska <mliska@suse.cz>
1965 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
1966 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
1967 * doc/tm.texi: Document new target hook.
1968 * doc/tm.texi.in: Likewise.
1969 * target.def: Add new target macro.
1970 * gcc.c (find_fortran_preinclude_file): Do not search multilib
1973 2019-02-17 Alan Modra <amodra@gmail.com>
1976 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
1977 output reg on add insn.
1978 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
1980 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
1983 * config/i386/sse.md (ssedoublemode): Remove V4HI.
1984 (PMULHRSW): Likewise.
1985 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
1987 (ssse3_pmulhrswv4hi3): New expander.
1989 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
1991 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
1992 MMX. Add isa attribute.
1994 2019-02-16 Jakub Jelinek <jakub@redhat.com>
1996 PR rtl-optimization/66152
1997 * builtins.h (c_readstr): Declare.
1998 * builtins.c (c_readstr): Remove forward declaration. Add
1999 null_terminated_p argument, if false, read all bytes from the
2000 string instead of stopping after '\0'.
2001 * expr.c (string_cst_read_str): New function.
2002 (store_expr): Use string_cst_read_str instead of
2003 builtin_strncpy_read_str. Try to store by pieces the whole
2004 exp_len first, and only if that fails, split it up into
2005 store by pieces followed by clear_storage. Formatting fix.
2007 * config/i386/i386.md (*movqi_internal): Remove static from
2008 buf variable. Use output_asm_insn (buf, operands); return "";
2009 instead of return buf;.
2010 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
2011 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
2012 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
2014 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
2016 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
2017 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
2018 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
2019 (CC1_SPEC): Likewise.
2020 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
2022 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
2024 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
2025 the base address on 64-bit strict-alignment platforms.
2027 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
2029 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
2031 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
2033 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
2035 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
2037 PR rtl-optimization/88308
2038 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
2039 on copied instruction.
2041 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
2043 * final.c (insn_current_reference_address): Replace test on JUMP_P
2044 with test on jump_to_label_p.
2045 * config/visium/visium-passes.def: New file.
2046 * config/visium/t-visium (PASSES_EXTRA): Define.
2047 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
2048 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
2049 (TRAMPOLINE_ALIGNMENT): Define.
2050 * config/visium/visium.c (visium_option_override): Do not register
2051 the machine-specific reorg pass here.
2052 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
2054 (output_branch): Adjust threshold for long branch instruction.
2055 * config/visium/visium.md (cpu): Move around.
2056 (length): Adjust for the GR6.
2058 2019-02-15 Richard Biener <rguenther@suse.de>
2059 Jakub Jelinek <jakub@redhat.com>
2061 PR tree-optimization/89278
2062 * tree-loop-distribution.c: Include tree-eh.h.
2063 (generate_memset_builtin, generate_memcpy_builtin): Call
2064 rewrite_to_non_trapping_overflow on builtin->size before passing it
2065 to force_gimple_operand_gsi.
2067 2019-02-15 Jakub Jelinek <jakub@redhat.com>
2070 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
2072 * opth-gen.awk: Likewise.
2074 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
2076 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
2077 Enable MMX, SSE and SSE2 by default.
2078 * config/i386/i386.c (ix86_option_override_internal): Do not
2079 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
2081 2019-02-14 Jakub Jelinek <jakub@redhat.com>
2083 PR rtl-optimization/89354
2084 * combine.c (make_extraction): Punt if extraction_mode is narrower
2087 2019-02-14 Maya Rashish <coypu@sdf.org>
2089 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
2090 * config/netbsd-d.c: New file.
2091 * config/t-netbsd: Add netbsd-d.o
2093 2018-02-14 Steve Ellcey <sellcey@marvell.com>
2095 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
2096 affects_type_identity to true for aarch64_vector_pcs.
2097 (aarch64_comp_type_attributes): New function.
2098 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
2100 2019-02-14 Tamar Christina <tamar.christina@arm.com>
2103 * config/arm/iterators.md (ANY64): Add V4HF.
2105 2019-02-14 Martin Liska <mliska@suse.cz>
2107 PR rtl-optimization/89242
2108 * dce.c (delete_unmarked_insns): Call free_dominance_info we
2109 process a transformation.
2111 2019-02-14 Jakub Jelinek <jakub@redhat.com>
2113 PR tree-optimization/89314
2114 * fold-const.c (fold_binary_loc): Cast strlen argument to
2115 const char * before dereferencing it. Formatting fixes.
2118 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
2120 2019-02-13 Ian Lance Taylor <iant@golang.org>
2122 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
2123 and set current index for other optimizations.
2125 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
2127 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
2128 nonimmediate_operand as operand 2 predicate.
2129 (vec_set<VF2_512_256:mode>_0): Ditto.
2130 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
2131 (*vec_concatv2si): Remove alternative 2.
2132 (*vec_concatv4si_0): Use vm constraint for alternative 0.
2133 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
2134 (vec_concatv2di): Split alternatives 4,5,6 to ...
2135 (*vec_concatv2di_0) ... new pattern.
2137 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
2140 * config/arm/arm.c (ldm_stm_operation_p) Set
2141 addr_reg_in_reglist correctly for first register.
2142 (load_multiple_sequence): Remove dead base check.
2143 (gen_ldm_seq): Correctly set write_back for Thumb-1.
2145 2019-02-13 Tamar Christina <tamar.christina@arm.com>
2148 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
2149 Expose as @aarch64_pred_mov.
2150 * config/aarch64/aarch64.c (aarch64_classify_address):
2151 Use expand_insn which legitimizes operands.
2153 2019-02-13 Martin Liska <mliska@suse.cz>
2155 * builtins.h (expand_builtin_with_bounds): Remove declaration.
2156 * calls.c (struct arg_data): Remove special_slot, pointer_arg
2157 and pointer_offset fields.
2158 (initialize_argument_information): Remove usage of dead
2160 * cgraph.h (struct cgraph_thunk_info): Remove
2161 add_pointer_bounds_args.
2162 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
2164 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
2166 * config/i386/i386.c (ix86_function_arg_advance): Remove
2168 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
2169 (def_builtin): Remove usage of dead
2171 (ix86_add_new_builtins): Likewise.
2172 * ipa-fnsummary.c (compute_fn_summary): Likewise.
2173 * ipa-icf.c (sem_function::equals_wpa): Likewise.
2174 (sem_function::init): Likewise.
2175 (sem_variable::merge): Likewise.
2176 * ipa-visibility.c (function_and_variable_visibility): Likewise.
2177 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
2178 * lto-cgraph.c (lto_output_node): Likewise.
2179 (lto_output_varpool_node): Likewise.
2180 (input_node): Likewise.
2181 (input_varpool_node): Likewise.
2182 * lto-streamer-out.c (lto_output): Likewise.
2183 * tree-inline.c (expand_call_inline): Remove usage of
2185 * tree-inline.h (struct copy_body_data): Likewise.
2186 * varpool.c (varpool_node::dump): Likewise.
2188 2019-02-13 Jakub Jelinek <jakub@redhat.com>
2191 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
2192 into pt->vars_contains_escaped_heap instead of setting
2193 pt->vars_contains_escaped_heap to it.
2196 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
2197 INTVAL (size), compare it to GET_MODE_MASK instead of
2198 1 << GET_MODE_BITSIZE.
2201 * config/i386/predicates.md (x86_64_immediate_operand): Allow
2202 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
2205 2019-02-13 Martin Liska <mliska@suse.cz>
2208 * cfgrtl.c (remove_barriers_from_footer): New function.
2209 (try_redirect_by_replacing_jump): Use it.
2210 (cfg_layout_redirect_edge_and_branch): Likewise.
2212 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
2214 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
2215 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
2216 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
2217 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
2218 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
2219 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
2221 * config/rs6000/rs6000.c (builtin_function_type)
2222 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
2223 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
2224 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
2225 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
2226 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
2228 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
2230 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
2231 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
2233 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
2236 * config/i386/i386.md (*movoi_internal_avx): Revert revision
2237 268678 and revision 268657.
2238 (*movti_internal): Likewise.
2240 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
2243 * config/s390/s390.c (s390_decompose_address): Update comment.
2244 (s390_check_qrst_address): Reject invalid address forms after
2247 2019-02-12 Martin Liska <mliska@suse.cz>
2250 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
2251 we need default values of funct_state for a function that
2254 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
2256 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
2257 the object to pick the size of stores on strict-alignment platforms.
2259 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
2260 (*movdi_insn_sp32): Likewise.
2261 (*movdi_insn_sp64): Likewise.
2263 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
2266 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
2267 types that needs constructiong.
2268 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
2270 2019-02-12 Richard Biener <rguenther@suse.de>
2272 PR tree-optimization/89253
2273 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
2276 2019-02-11 David Malcolm <dmalcolm@redhat.com>
2279 * input.c (selftest::test_line_offset_overflow): New selftest.
2280 (selftest::input_c_tests): Call it.
2282 2019-02-11 Martin Sebor <msebor@redhat.com>
2284 PR tree-optimization/88771
2285 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
2286 when -Wstringop-overflow is set.
2287 (builtin_memref::builtin_memref): Adjust excessive upper bound
2288 only when lower bound is not excessive.
2289 (maybe_diag_overlap): Detect and diagnose excessive bounds via
2290 -Wstringop-ovefflow.
2291 (maybe_diag_offset_bounds): Rename...
2292 (maybe_diag_access_bounds): ...to this.
2293 (check_bounds_or_overlap): Adjust for name change above.
2295 2019-02-11 Martin Sebor <msebor@redhat.com>
2298 * builtins.c (max_object_size): Move from here...
2299 * builtins.h (max_object_size): ...and here...
2300 * tree.c (max_object_size): ...to here...
2301 * tree.h (max_object_size): ...and here.
2303 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
2305 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
2306 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
2307 for correct semantics.
2309 2019-02-11 Alan Modra <amodra@gmail.com>
2311 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
2312 -mlongcall and -mpltseq.
2313 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
2314 (RS/6000 and PowerPC Options <-mpltseq>): Document.
2315 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
2316 * config/rs6000/sysv4.opt (mpltseq): New option.
2317 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
2318 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
2319 support is lacking. Don't allow -mpltseq with -mbss-plt.
2320 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
2321 -mpltseq given for ELFv1.
2322 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
2323 Only use UNSPEC_PLTSEQ for inline PLT calls.
2324 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
2325 use UNSPEC_PLTSEQ for inline PLT calls.
2326 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
2327 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
2328 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
2329 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
2330 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
2331 (pltseq_mtctr_<mode>): Likewise.
2333 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2335 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
2337 * configure: Regenerate.
2339 2019-02-11 Jakub Jelinek <jakub@redhat.com>
2342 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
2345 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
2347 * function.c (assign_parm_setup_block): Use the stored
2348 size, not the passed size, when allocating stack-space,
2349 also for a parameter with alignment larger than
2350 MAX_SUPPORTED_STACK_ALIGNMENT.
2352 2019-02-11 Martin Liska <mliska@suse.cz>
2355 * ipa-cp.c (build_toporder_info): Remove usage of a param.
2356 * ipa-inline.c (inline_small_functions): Likewise.
2357 * ipa-pure-const.c (propagate_pure_const): Likewise.
2358 (propagate_nothrow): Likewise.
2359 * ipa-reference.c (propagate): Likewise.
2360 * ipa-utils.c (struct searchc_env): Remove unused field.
2361 (searchc): Always search across AVAIL_INTERPOSABLE.
2362 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
2363 the only called IPA pure const can properly not propagate
2364 across interposable boundary.
2365 * ipa-utils.h (ipa_reduced_postorder): Remove param.
2367 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
2369 * config/nds32/nds32.md (call_internal, call_value_internal,
2370 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
2372 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
2374 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
2377 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
2379 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
2382 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
2384 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
2386 2019-02-10 Jakub Jelinek <jakub@redhat.com>
2388 PR tree-optimization/89268
2389 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
2390 if preds is non-NULL.
2392 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
2395 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
2398 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
2400 * config/nds32/nds32.md (trap): New pattern.
2402 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
2404 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
2407 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
2409 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
2412 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
2414 * ipa-visibility.c (localize_node): Also do not localize
2415 LDPR_PREVAILING_DEF_IRONLY_EXP.
2417 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
2420 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
2421 instead of type_with_linkage.
2423 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
2426 * params.def (uninlined-function-insns, uninlined-function-time,
2427 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
2428 bound so we don't get overflows.
2430 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
2432 * config/rs6000/rs6000-string.c (expand_compare_loop,
2433 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
2436 2019-02-09 Jakub Jelinek <jakub@redhat.com>
2439 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2440 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
2441 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
2443 2019-02-09 Alan Modra <amodra@gmail.com>
2446 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
2447 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
2450 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
2453 * lra-constraints.c (process_alt_operands): Don't increase reject
2454 for memory when offset memory is required.
2456 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
2458 * config/s390/vector.md: Implement vector copysign.
2460 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
2462 * expr.c (expand_constructor): Correct indentations.
2464 2019-02-08 Richard Biener <rguenther@suse.de>
2466 PR tree-optimization/89247
2467 * tree-if-conv.c: Include tree-cfgcleanup.h.
2468 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
2469 (tree_if_conversion): Pass through predicate vector.
2470 (pass_if_conversion::execute): Do CFG cleanup and SSA update
2471 inline, see if any if-converted loops we refrece in
2472 LOOP_VECTORIZED calls vanished and fixup.
2473 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
2475 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
2477 * config/s390/constraints.md (jdd): New constraint.
2479 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
2482 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
2483 upper 16 vector registers without TARGET_AVX512VL.
2484 (*movti_internal): Likewise.
2486 2019-02-08 Jakub Jelinek <jakub@redhat.com>
2488 PR rtl-optimization/89234
2489 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
2490 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
2491 (copy_reg_eh_region_note_backward): Likewise.
2493 2019-02-08 Richard Biener <rguenther@suse.de>
2496 * tree-data-ref.c (initialize_matrix_A): Fail if constant
2498 (analyze_subscript_affine_affine): Handle failure from
2499 initialize_matrix_A.
2501 2019-02-08 Jakub Jelinek <jakub@redhat.com>
2503 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
2506 2019-02-07 David Malcolm <dmalcolm@redhat.com>
2508 PR tree-optimization/86637
2509 PR tree-optimization/89235
2510 * tree-vect-loop.c (optimize_mask_stores): Add an
2511 auto_purge_vect_location sentinel to ensure that vect_location is
2514 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
2515 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
2516 to ensure that vect_location is purged on exit.
2517 (pass_slp_vectorize::execute): Likewise, replacing the manual
2519 * tree-vectorizer.h (class auto_purge_vect_location): New class.
2521 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2523 * config/aarch64/iterators.md (max_opp): New code_attr.
2524 (USMAX): New code iterator.
2525 * config/aarch64/predicates.md (aarch64_smin): New predicate.
2526 (aarch64_smax): Likewise.
2527 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
2528 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
2531 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
2534 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
2535 for TARGET_AVX512VL.
2536 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
2538 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
2540 * config/s390/s390-builtin-types.def: Add new types.
2541 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
2542 (s390_vec_xlw4): Make the memory operand into a const pointer.
2543 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
2545 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
2546 a new vector type with the alignment of the scalar memory operand.
2548 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
2549 Jakub Jelinek <jakub@redhat.com>
2552 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
2553 arm_count_ldrdstrd_insns): New declarations.
2554 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
2556 (valid_operands_ldrd_strd): New function.
2557 (arm_count_ldrdstrd_insns): New function.
2558 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
2559 sets instead of single DImode set and define new insns to match this.
2561 2019-02-07 Tamar Christina <tamar.christina@arm.com>
2563 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
2564 Make it a C initializer.
2566 2019-02-07 Tamar Christina <tamar.christina@arm.com>
2569 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
2571 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2573 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
2574 Use neon_dot<q> for type.
2575 (neon_<sup>dot_lane<vsi2qi>): Likewise.
2577 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2579 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
2580 Use neon_dot<q> for type.
2581 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
2582 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
2584 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
2586 PR rtl-optimization/89225
2587 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
2590 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
2592 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
2593 after restoring registers saved to allocate the frame on Windows.
2595 2019-02-06 Richard Biener <rguenther@suse.de>
2597 PR tree-optimization/89182
2598 * graphite.h (cached_scalar_evolution_in_region): Declare.
2599 * graphite.c (struct seir_cache_key): New.
2600 (struct sese_scev_hash): Likewise.
2601 (seir_cache): New global.
2602 (cached_scalar_evolution_in_region): New function.
2603 (graphite_transform_loops): Allocate and release seir_cache.
2604 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
2605 cached_scalar_evolution_in_region.
2606 * graphite-scop-detection.c (scop_detection::can_represent_loop):
2608 (scop_detection::graphite_can_represent_expr: Use
2609 cached_scalar_evolution_in_region.
2610 (scop_detection::stmt_simple_for_scop_p): Likewise.
2611 (find_params_in_bb): Likewise.
2612 (gather_bbs::before_dom_children): Likewise.
2613 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
2614 (add_loop_constraints): Likewise.
2616 2019-02-06 Jakub Jelinek <jakub@redhat.com>
2619 * fold-const-call.c (fold_const_vec_convert): Pass true as last
2620 operand to new_unary_operation only if both element types are integral
2621 and it isn't a widening conversion. Return NULL_TREE if
2622 new_unary_operation failed.
2624 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
2627 * config/s390/s390.md: Remove load and test FP splitter.
2629 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
2632 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
2633 expand_compare_loop, expand_block_compare_gpr,
2634 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
2635 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
2636 #include "profile-count.h" and "predict.h" for types and functions
2637 needed to work with REG_BR_PROB notes.
2639 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
2642 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
2643 for the long branch case.
2645 2019-02-05 Jakub Jelinek <jakub@redhat.com>
2648 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
2649 can throw, non-call exceptions are enabled and we can't delete
2650 dead exceptions or alter cfg. Set must_clean if
2651 delete_insn_and_edges returns true, don't set it blindly for calls.
2652 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
2654 PR rtl-optimization/89195
2655 * combine.c (make_extraction): For MEMs, don't extract bytes outside
2656 of the original MEM.
2658 2019-02-05 Martin Liska <mliska@suse.cz>
2660 PR gcov-profile/89000
2661 * gcov.c (function_summary): Remove argument.
2662 (file_summary): New function.
2663 (print_usage): Replace tabs with spaces.
2664 (generate_results): Use new function file_summary.
2666 2019-02-05 Jakub Jelinek <jakub@redhat.com>
2669 * optabs.c (prepare_cmp_insn): Pass x and y to
2670 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
2672 2019-02-05 Richard Biener <rguenther@suse.de>
2675 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
2676 (struct bitmap_element): Drop chain_prev so we properly recurse on
2677 the prev member, supporting tree views.
2678 (struct bitmap_head): GTY skip the obstack member.
2680 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
2683 * doc/extend.texi (Vector Extensions): Add an example of using vector
2684 types together with x86 intrinsics.
2686 2019-02-04 Alan Modra <amodra@gmail.com>
2688 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
2689 str[] size to 160, and comment.
2691 2019-02-04 Alan Modra <amodra@gmail.com>
2693 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
2694 (rs6000_pltseq_template): Guard output of TLS markers with
2696 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
2697 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
2698 to use inline PLT sequences.
2699 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
2700 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
2701 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
2703 2019-02-04 Martin Liska <mliska@suse.cz>
2706 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
2707 out when ipa_fn_summaries does not contain entry for callee.
2709 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
2711 * config/sparc/sparc.h: Remove superfluous blank lines.
2712 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
2713 (got_register_rtx): ...this.
2714 (sparc_got): Adjust to above renaming.
2715 (sparc_tls_got): Likewise.
2716 (sparc_delegitimize_address): Likewise.
2717 (sparc_output_mi_thunk): Likewise.
2718 (sparc_init_pic_reg): Likewise.
2719 (save_local_or_in_reg_p): Fix test on the GOT register.
2720 (USE_HIDDEN_LINKONCE): Move around.
2721 (get_pc_thunk_name): Likewise.
2722 (gen_load_pcrel_sym): Likewise.
2723 (load_got_register): Likewise.
2725 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
2727 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
2728 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
2730 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
2732 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
2735 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
2737 * config.gcc (with_nds32_lib, glibc):
2738 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
2739 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
2740 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
2742 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
2745 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
2746 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
2747 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
2748 (*rcpsf2_sse): Ditto.
2749 (*rsqrtsf2_sse): Ditto.
2750 (sse4_1_round<mode<2): Ditto.
2752 2019-02-03 Richard Biener <rguenther@suse.de>
2755 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
2758 2019-02-02 Jakub Jelinek <jakub@redhat.com>
2761 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2762 Punt with warning on aggregate return or argument types. Ignore
2763 type/mode checking for uniform arguments.
2765 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
2767 * combine.c (try_combine): Do not print "Can't combine" messages unless
2768 printing failed combination attempts.
2770 2019-02-01 Martin Jambor <mjambor@suse.cz>
2773 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
2774 segment and global segment variables before making them static.
2776 2019-02-01 Martin Jambor <mjambor@suse.cz>
2778 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
2779 missed optimization dump with dump_enabled_p.
2781 2019-02-01 Richard Biener <rguenther@suse.de>
2784 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
2785 the instantiate cache.
2786 (instantiate_scev_binary): Elide second operand procesing
2787 if equal to the first.
2788 * tree-chrec.c (chrec_contains_symbols): Add visited set.
2789 (chrec_contains_undetermined): Likewise.
2790 (tree_contains_chrecs): Likewise.
2792 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
2794 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
2796 2019-02-01 Jakub Jelinek <jakub@redhat.com>
2798 PR tree-optimization/89143
2799 * wide-int-range.h (wide_int_range_absu): Declare.
2800 * wide-int-range.cc (wide_int_range_absu): New function.
2801 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
2803 PR tree-optimization/88107
2804 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
2805 instead of assertion that eh_region_outermost is non-NULL, if it
2806 is NULL, set *ALL to true and return NULL.
2807 (move_sese_region_to_fn): Adjust caller, if all is set, call
2808 duplicate_eh_regions with NULL region.
2810 2019-02-01 Richard Biener <rguenth@suse.de>
2812 PR rtl-optimization/88593
2813 * mode-switching.c (optimize_mode_switching): Free dominators before
2814 calling cleanup_cfg.
2816 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
2818 PR tree-optimization/88932
2819 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
2821 2019-01-31 Jakub Jelinek <jakub@redhat.com>
2824 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
2825 bogus clang warning.
2827 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
2830 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
2831 alternative to avoid partial SSE register stall for TARGET_AVX.
2832 (truncdfsf2): Ditto.
2833 (sse4_1_round<mode>2): Ditto.
2835 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
2837 PR tree-optimization/89008
2838 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
2839 process anything of the form X * 0.
2841 2019-01-31 Richard Biener <rguenther@suse.de>
2843 PR tree-optimization/89135
2844 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
2845 with abnormal preds.
2847 2019-01-31 Jakub Jelinek <jakub@redhat.com>
2850 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
2851 always_inline callees into no_sanitize_address callers.
2853 2019-01-31 Richard Biener <rguenther@suse.de>
2855 PR rtl-optimization/89115
2856 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
2858 2019-01-30 Martin Sebor <msebor@redhat.com>
2861 * doc/extend.texi (cast to a union): Correct and expand.
2863 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
2865 PR rtl-optimization/87246
2866 * lra-constraints.c (simplify_operand_subreg): Reload memory
2867 in subreg if the address became invalid.
2869 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
2872 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
2873 Disable for little-endian.
2875 2019-01-30 Richard Biener <rguenther@suse.de>
2877 PR rtl-optimization/89115
2878 * opts.c (default_options_optimization): Reduce
2879 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
2880 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
2883 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
2885 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
2886 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
2887 type of vector element when vec_extract is implemented by direct
2890 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
2892 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
2894 2019-01-30 Richard Biener <rguenther@suse.de>
2896 PR tree-optimization/89111
2897 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
2898 canonicalization to appropriately sized access types.
2900 2019-01-30 Jakub Jelinek <jakub@redhat.com>
2903 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
2904 for arguments to functions that are TU-local and shouldn't be
2905 referenced by assembly.
2907 2019-01-30 Ulrich Drepper <drepper@redhat.com>
2909 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
2912 2019-01-29 Martin Sebor <msebor@redhat.com>
2915 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
2917 2019-01-29 Jakub Jelinek <jakub@redhat.com>
2921 * omp-simd-clone.c (simd_clone_clauses_extract)
2922 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
2923 OMP_CLAUSE_ALIGNED_ALIGNMENT.
2925 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
2927 * config.gcc: Force .init_array for ARC.
2929 2019-01-29 Richard Biener <rguenther@suse.de>
2932 * dwarf2out.c (collect_skeleton_dies): New helper.
2933 (copy_decls_for_unworthy_types): Call it.
2934 (build_abbrev_table): Assert we do not try to replace
2935 DW_AT_signature refs with local refs.
2937 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2940 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
2941 for lastprivate/linear IV, push gimplify context around gimplify_assign
2942 and, if it needed any temporaries, pop it into a gimple bind around the
2945 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
2947 * common.opt (-Wattribute-alias): Remove "no-" from name.
2948 Make -Wattribute-alias command line option and
2949 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
2951 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2954 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
2955 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
2957 (bmi2): Add missing @opindex.
2958 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
2959 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
2960 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
2961 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
2962 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
2963 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
2964 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
2965 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
2966 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
2967 xsavec, xsaveopt and xsaves options.
2969 2019-01-28 Richard Biener <rguenther@suse.de>
2972 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
2975 2019-01-28 Richard Biener <rguenther@suse.de>
2977 PR tree-optimization/88739
2978 * tree-cfg.c (verify_types_in_gimple_reference): Verify
2979 BIT_FIELD_REFs only are applied to mode-precision operands
2980 when they are integral.
2981 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
2982 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
2983 BIT_FIELD_REFs of non-mode-precision integral operands.
2985 2019-01-27 Jakub Jelinek <jakub@redhat.com>
2988 * config/i386/sse.md
2989 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
2990 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
2991 first constants in pairs are multiples of 2. Formatting fixes.
2992 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
2993 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
2994 first constants in each quadruple are multiples of 4. Formatting fixes.
2996 2019-01-26 Martin Jambor <mjambor@suse.cz>
2999 * tree-inline.c: Include tree-cfgcleanup.h.
3000 (delete_unreachable_blocks_update_callgraph): Move...
3001 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
3002 ...here, make externally visible, make second argument bool, adjust
3004 * tree-cfgcleanup.c: Include cgraph.h.
3005 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
3007 * ipa-prop.c: Include tree-cfgcleanup.h.
3008 (ipcp_transform_function): Call
3009 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
3011 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
3013 PR rtl-optimization/88846
3014 * ira.c (process_set_for_memref_referenced_p): New.
3015 (memref_referenced_p): Add new param. Use
3016 process_set_for_memref_referenced_p. Add new switch cases.
3017 (memref_used_between_p): Pass new arg to memref_referenced_p.
3019 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
3022 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
3023 argument ABI_BREAK. Set to true if the calculated alignment has
3024 changed in gcc-9. Check bit-fields for their base type alignment.
3025 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
3026 (aarch64_function_arg_boundary): Likewise.
3027 (aarch64_gimplify_va_arg_expr): Likewise.
3029 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
3032 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
3033 instead of accessing TREE_INT_CST_ELT directly.
3035 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
3037 * doc/sourcebuild.texi (Environment attributes): Add fenv and
3038 fenv_exceptions description.
3040 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
3042 PR rtl-optimization/87763
3043 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
3044 Allow SUBREG when matching CC_NZmode compare.
3046 2019-01-25 Richard Biener <rguenther@suse.de>
3048 PR tree-optimization/89049
3049 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3050 Look at the pattern stmt to determine if the stmt is vectorized.
3052 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
3054 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
3055 (pred_mov<mode>): Handle all-register forms using both a new
3056 alternative and a split.
3058 2019-01-25 Richard Biener <rguenther@suse.de>
3060 PR tree-optimization/86865
3061 * graphite-scop-detection.c (scop_detection::can_represent_loop):
3062 Reject non-do-while loops.
3064 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
3066 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
3067 * config/rs6000/constraints.md (Q constraint): Use REG_P.
3068 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
3069 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
3070 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
3071 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3072 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
3073 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
3074 vlogical_operand, gpc_reg_operand, int_reg_operand,
3075 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
3076 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
3077 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
3078 (save_world_operation, restore_world_operation, lmw_operation,
3079 stmw_operation): Use MEM_P and REG_P.
3080 (tie_operand): Use MEM_P.
3081 (vrsave_operation, crsave_operation): Use REG_P.
3082 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
3083 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
3084 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
3085 (call_operand): Use HARD_REGISTER_P.
3086 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
3088 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
3089 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
3090 quad_aligned_load_p, replace_swapped_aligned_store,
3091 recombine_lvx_pattern, replace_swapped_aligned_load,
3092 recombine_stvx_pattern): Use MEM_P.
3093 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
3094 Use MEM_P and SYMBOL_REF_P.
3095 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
3096 (insn_is_swappable_p): Use REG_P and MEM_P.
3097 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
3098 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
3100 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
3102 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
3104 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
3105 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
3106 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
3107 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
3109 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
3110 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
3111 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
3112 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
3113 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
3114 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
3115 rs6000_split_logical_di): Use CONST_INT_P.
3116 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
3117 REG_P and SYMBOL_REF_P.
3118 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
3119 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
3120 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
3121 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
3122 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
3123 (small_data_operand, print_operand_address): Use CONST_INT_P and
3125 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
3126 (rs6000_init_hard_regno_mode_ok, direct_move_p):
3127 Use HARD_REGISTER_NUM_P.
3128 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
3129 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
3130 SUBREG_P and SYMBOL_REF_P.
3131 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
3132 and HARD_REGISTER_NUM_P.
3133 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
3135 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
3136 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
3138 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
3139 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
3140 find_addr_reg): Use REG_P.
3141 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
3142 (rs6000_emit_le_vsx_move): Use SUBREG_P.
3143 (offsettable_ok_by_alignment, constant_pool_expr_p,
3144 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
3145 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
3146 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
3147 rs6000_assemble_integer, create_TOC_reference,
3148 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
3149 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
3150 (rs6000_split_vec_extract_var): Use reg_or_subregno.
3151 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
3152 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
3153 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3154 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3155 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
3156 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
3157 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
3158 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
3159 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
3160 and cbranch<mode>4): Use CONST_INT_P.
3161 (multiple define_splits): Use REG_P and SUBREG_P.
3162 (define_expands call, call_value): Use MEM_P.
3163 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
3164 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
3165 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
3166 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
3167 and HARD_REGISTER_NUM_P.
3168 (multiple define_splits): Use HARD_REGISTER_NUM_P.
3170 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3172 PR rtl-optimization/88948
3173 * rtl.h (prepare_copy_insn): New prototype.
3174 * gcse.c (prepare_copy_insn): New function, split out from
3175 process_insert_insn.
3176 (process_insert_insn): Use prepare_copy_insn.
3177 * store-motion.c (replace_store_insn): Use prepare_copy_insn
3178 instead of gen_move_insn.
3180 2019-01-24 Jakub Jelinek <jakub@redhat.com>
3183 * config/i386/i386.c (ix86_pic_register_p): Return true for
3186 PR tree-optimization/88964
3187 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
3188 punt if HONOR_SNANS (chrec).
3191 * tree-nested.c (convert_nonlocal_reference_stmt,
3192 convert_local_reference_stmt, convert_tramp_reference_stmt,
3193 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
3194 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
3197 PR tree-optimization/89027
3198 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
3199 for "omp simd array" variables.
3201 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
3204 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
3205 force the alignment of m_val.
3207 2019-01-24 Richard Biener <rguenther@suse.de>
3210 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
3211 When in "legacy" debug mode make sure to reset self-origins.
3213 2019-01-24 Martin Liska <mliska@suse.cz>
3215 PR gcov-profile/88994
3216 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
3217 result will be always smaller or equal to the original.
3218 * gcov.c (mangle_name): Fix else branch where we should
3219 also copy to PTR and shift the pointer.
3221 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
3223 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
3224 * vr-values.c (find_case_label_ranges): Fix a comment typo.
3226 2019-01-23 Bin Cheng <bin.cheng@arm.com>
3227 Steve Ellcey <sellcey@marvell.com>
3230 * recog.c (address_operand): Return false on wrong mode for address.
3231 (constrain_operands): Check for mode with 'p' constraint.
3233 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
3236 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
3237 Disparage MMX alternative.
3238 (sse2_cvtpd2pi): Ditto.
3239 (sse2_cvttpd2pi): Ditto.
3241 2019-01-23 David Malcolm <dmalcolm@redhat.com>
3244 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
3245 use-after-free of the result of
3246 aarch64_get_extension_string_for_isa_flags.
3248 2019-01-23 Jakub Jelinek <jakub@redhat.com>
3251 * doc/extend.texi: Document break and continue behavior in
3252 statement expressions.
3254 2019-01-23 Richard Biener <rguenther@suse.de>
3256 PR tree-optimization/89008
3257 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
3258 not leave another stray operand.
3260 2019-01-23 Jakub Jelinek <jakub@redhat.com>
3262 * BASE-VER: Bump to 9.0.1.
3264 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
3266 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
3267 thunk that returns by reference, use the type of the return object
3268 of the thunk instead of that of the alias to build the dereference.
3270 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
3272 * config/arc/atomic.md: Add operand to DMB instruction.
3274 2019-01-23 Jakub Jelinek <jakub@redhat.com>
3276 PR tree-optimization/88964
3277 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
3278 build_zero_cst instead of build_int_cst. Return false for loop
3279 invariants which honor signed zeros.
3281 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
3283 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
3285 2019-01-22 Jakub Jelinek <jakub@redhat.com>
3288 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
3289 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
3290 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
3293 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
3294 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
3297 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
3298 Disable for little endian.
3300 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
3303 * config/arm/arm.c (arm_needs_double_word_align): Check
3304 DECL_BIT_FIELD_TYPE.
3306 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
3307 H.J. Lu <hongjiu.lu@intel.com>
3310 * config/i386/i386-builtin.def: Add mask2 to all builtin
3311 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
3313 * config/i386/i386.c (BDESC): Add mask2 to the definition.
3314 (BDESC_FIRST): Likewise.
3315 (define_builtin): Add an argument for mask2. Updated to handle
3316 both ix86_isa_flags and ix86_isa_flags2.
3317 (define_builtin_const): Likewise.
3318 (define_builtin_pure): Likewise.
3319 (define_builtin2): Deleted.
3320 (define_builtin_const2): Likewise.
3321 (builtin_description): Add a member, mask2.
3322 (bdesc_*): Add mask2 to builtin initializations.
3323 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
3324 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
3326 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
3328 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
3331 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
3334 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
3337 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
3338 alignment is dominated by a bitfield with 64-bit aligned base type.
3339 (arm_function_arg): Emit a warning if the alignment has changed since
3340 earlier GCC releases.
3341 (arm_function_arg_boundary): Likewise.
3342 (arm_setup_incoming_varargs): Likewise.
3344 2019-01-22 Richard Biener <rguenther@suse.de>
3346 PR tree-optimization/88862
3347 * graphite-scop-detection.c
3348 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
3350 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
3352 * doc/extend.tex (AMD GCN Function Attributes): New section.
3353 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
3354 * doc/invoke.texi (AMD GCN Options): New section.
3355 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
3357 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
3359 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
3360 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
3362 2019-01-22 Jakub Jelinek <jakub@redhat.com>
3364 PR tree-optimization/88044
3365 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
3366 is false in the first iteration, but !every_iteration, return false
3367 instead of true with niter->niter zero.
3369 PR rtl-optimization/88904
3370 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
3371 any nonequal registers before processing BB_END (b).
3374 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
3376 (expand_binop_directly, expand_doubleword_clz,
3377 expand_doubleword_popcount, expand_ctz, expand_ffs,
3378 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
3380 PR rtl-optimization/49429
3382 PR rtl-optimization/86334
3384 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
3385 addressable from here...
3386 (emit_block_op_via_libcall): ... to here.
3388 2019-01-22 Richard Biener <rguenther@suse.de>
3390 * tree-vect-loop.c (vect_analyze_loop_operations): Use
3391 auto_vec for cost vector to fix memleak.
3392 (vectorize_fold_left_reduction): Properly gather SLP defs.
3393 (vectorizable_comparison): Do not swap operands to properly
3396 2019-01-22 Alan Modra <amodra@gmail.com>
3399 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
3400 stays a reg. Allow a const_int.
3401 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
3402 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
3403 (IS_NOMARK_TLSGETADDR): Define.
3404 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
3405 (rs6000_output_tlsargs): New function.
3406 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
3407 __tls_get_addr call takes an arg.
3408 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
3409 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
3411 (call_value_nonlocal_sysv): ..or here, delete split.
3412 (tls_gdld_nomark): Delete.
3413 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
3414 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
3415 (call_value_nonlocal_sysv): Likewise.
3416 (call_value_nonlocal_sysv_secure): Likewise.
3417 (call_value_nonlocal_aix): Likewise.
3418 (call_value_indirect_aix): Likewise.
3419 (call_value_indirect_elfv2): Likewise.
3420 (call_value_local32, call_value_local64): Disable for no-mark tls.
3421 (call_value_local_aix): Likewise.
3423 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
3426 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
3427 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
3429 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
3431 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
3432 string contents as hash_map keys.
3434 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3437 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
3438 for rvalue context. Handle rvalues correctly. Use min_align_of_type
3439 instead of TYPE_ALIGN.
3440 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
3441 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
3442 pointer from TYPE_STUB_DECL.
3444 2019-01-21 Richard Biener <rguenther@suse.de>
3446 PR tree-optimization/88934
3447 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
3448 at the possibly non-constant operand.
3449 (vect_get_constant_vectors): Adjust.
3451 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3454 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
3455 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
3456 instead of _X86INTRIN_H_INCLUDED.
3457 * onfig/i386/clwbintrin.h: Likewise.
3458 * config/i386/pkuintrin.h: Likewise.
3459 * config/i386/prfchwintrin.h: Likewise.
3460 * config/i386/rdseedintrin.h: Likewise.
3461 * config/i386/wbnoinvdintrin.h: Likewise.
3462 * config/i386/xsavecintrin.h: Likewise.
3463 * config/i386/xsavesintrin.h: Likewise.
3464 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
3465 * config/i386/xsaveintrin.h: Likewise.
3466 * config/i386/xsaveoptintrin.h: Likewise.
3467 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
3468 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
3469 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
3470 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
3471 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
3472 * config/i386/immintrin.h: Here.
3474 2019-01-20 Martin Jambor <mjambor@suse.cz>
3477 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
3478 with aa_walk_budget.
3479 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
3480 aa_walk_budget_p parameter.
3481 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
3482 walk. Updated all callers.
3483 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
3484 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
3486 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
3487 parameter info. Extract info from fbi. Pass fbi to recursive calls
3488 and to unmodified_parm.
3489 (phi_result_unknown_predicate): New parameter fbi, removed parameter
3490 info, updated call to will_be_nonconstant_expr_predicate.
3491 (param_change_prob): New parameter fbi, limit AA walking.
3492 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
3493 calls to various above functions.
3494 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
3495 parameter. Use it to limit AA walking.
3496 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
3498 (detect_type_change): New parameter fbi, pass it on to
3499 detect_type_change_from_memory_writes.
3500 (detect_type_change_ssa): Likewise.
3501 (aa_overwalked): Removed.
3502 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
3503 accordingly, adjust to the neew AA limiting scheme.
3504 (parm_ref_data_preserved_p): Likewise.
3505 (ipa_compute_jump_functions_for_edge): Adjust call to
3507 (ipa_analyze_call_uses): Likewise.
3508 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
3509 (ipa_analyze_node): Initialize aa_walk_budget.
3510 (ipcp_transform_function): Likewise.
3511 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
3512 to get_dynamic_type.
3514 2019-01-19 Jakub Jelinek <jakub@redhat.com>
3516 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
3517 outside of #if CHECKING_P code.
3519 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
3521 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
3522 New function, split out from...
3523 (loop_versioning::analyze_stride): ...here.
3524 (loop_versioning::find_per_loop_multiplication): Use gassign.
3525 (loop_versioning::analyze_term_using_scevs): Return a success code.
3526 (loop_versioning::analyze_arbitrary_term): New function.
3527 (loop_versioning::analyze_address_fragment): Use
3528 analyze_arbitrary_term if all else fails.
3530 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
3533 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
3536 2019-01-18 Richard Biener <rguenther@suse.de>
3538 PR tree-optimization/88903
3539 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
3540 scalar stmts a SLP shift amount is composed of when detecting
3543 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
3546 * config/arm/arm-cpus.in (mp): New feature.
3548 (fgroup ARMv7ve): Add mp and sec features.
3549 (arch armv7-a): Add options to allow mp and sec extensions.
3550 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
3551 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
3552 extenstions to the base architecture.
3553 (cpu cortex-a8): Add sec extension to the base architecture.
3554 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
3555 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
3556 variants down to the base v7-a varaint.
3557 * config/arm/t-multilib (v7_a_arch_variants): New variable.
3558 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
3559 of permitted extensions for -march=armv7-a and for
3560 -mcpu=generic-armv7-a.
3562 2019-01-18 Martin Liska <mliska@suse.cz>
3564 * params.def: Fix comment.
3565 * tree-profile.c (gimple_init_gcov_profiler): Bump function
3567 (gimple_gen_ic_func_profiler): Likewise.
3569 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3571 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
3572 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
3573 and put in error checks for stack protector guard options.
3574 (aarch64_stack_protect_guard): New.
3575 (TARGET_STACK_PROTECT_GUARD): Define.
3576 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
3577 (reg_stack_protect_address<mode>): New.
3578 (stack_protect_set): Adjust for SSP_GLOBAL.
3579 (stack_protect_test): Likewise.
3580 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
3581 (-mstack-protector-guard): Likewise.
3582 (-mstack-protector-guard-offset): Likewise.
3584 2019-01-18 Jakub Jelinek <jakub@redhat.com>
3586 PR tree-optimization/86214
3587 * tree-inline.h (struct copy_body_data): Add
3588 add_clobbers_to_eh_landing_pads member.
3589 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
3590 (copy_edges_for_bb): Call it if EH edge destination is <
3591 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
3592 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
3593 if flag_stack_reuse != SR_NONE and clear it afterwards.
3595 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
3598 * doc/install.texi (with-multilib-list): Document for aarch64.
3600 2019-01-18 Jakub Jelinek <jakub@redhat.com>
3603 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
3604 (("..."))) with ("...").
3606 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
3608 * doc/extend.texi (Built-in Functions for Memory Model Aware
3609 Atomic Operations): Document atomic fetch and nand.
3611 2019-01-18 Martin Liska <mliska@suse.cz>
3612 Richard Biener <rguenther@suse.de>
3615 * cgraph.h (create_version_clone_with_body): Add new argument
3617 * cgraphclones.c (cgraph_node::create_version_clone): Add
3618 DECL_ATTRIBUTES to a newly created decl. And call
3619 valid_attribute_p so that proper cl_target_optimization_node
3620 is set for the newly created declaration.
3621 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
3623 (expand_target_clones): Do not call valid_attribute_p, it must
3625 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
3628 2019-01-17 Jakub Jelinek <jakub@redhat.com>
3631 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
3632 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
3633 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
3635 2019-01-17 Martin Sebor <msebor@redhat.com>
3638 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
3639 Handle anti-ranges the same as no range at all.
3641 2018-01-17 Steve Ellcey <sellcey@cavium.com>
3643 * config/aarch64/aarch64.c (cgraph.h): New include.
3644 (intl.h): New include.
3645 (supported_simd_type): New function.
3646 (currently_supported_simd_type): Ditto.
3647 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
3648 (aarch64_simd_clone_adjust): Ditto.
3649 (aarch64_simd_clone_usable): Ditto.
3650 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
3651 (TARGET_SIMD_CLONE_ADJUST): Ditto.
3652 (TARGET_SIMD_CLONE_USABLE): Ditto.
3653 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
3654 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
3657 2019-01-17 Martin Sebor <msebor@redhat.com>
3659 PR tree-optimization/88800
3660 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
3661 NO_WARNING bit here. Avoid folding out-of-bounds calls.
3662 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
3663 redundant argument. Add new argument and issue diagnostics under
3664 its control. Detect out-of-bounds access even with warnings
3666 (check_bounds_or_overlap): Change return type. Add argument.
3667 (wrestrict_dom_walker::check_call): Adjust.
3668 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
3669 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
3670 check_bounds_or_overlap's return value.
3671 (handle_builtin_stxncpy): Same.
3672 (handle_builtin_strcat): Same.
3674 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3675 Kwok Cheung Yeung <kcy@codesourcery.com>
3676 Julian Brown <julian@codesourcery.com>
3677 Tom de Vries <tom@codesourcery.com>
3679 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
3681 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3683 * doc/sourcebuild.texi: Document dg-require-effective-target
3684 llvm_binutils and offload_gcn.
3686 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3687 Kwok Cheung Yeung <kcy@codesourcery.com>
3688 Julian Brown <julian@codesourcery.com>
3689 Tom de Vries <tom@codesourcery.com>
3691 * doc/sourcebuild.texi: Document dg-required-effective-target
3694 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3695 Kwok Cheung Yeung <kcy@codesourcery.com>
3696 Julian Brown <julian@codesourcery.com>
3697 Tom de Vries <tom@codesourcery.com>
3698 Jan Hubicka <hubicka@ucw.cz>
3699 Martin Jambor <mjambor@suse.cz>
3701 * config.gcc: Add amdgcn*-*-amdhsa configuration.
3702 * configure.ac: Check for dlopen.
3703 * configure: Regenerate.
3705 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3706 Kwok Cheung Yeung <kcy@codesourcery.com>
3707 Julian Brown <julian@codesourcery.com>
3708 Tom de Vries <tom@codesourcery.com>
3709 Jan Hubicka <hubicka@ucw.cz>
3710 Martin Jambor <mjambor@suse.cz>
3712 * common/config/gcn/gcn-common.c: New file.
3713 * config/gcn/driver-gcn.c: New file.
3714 * config/gcn/gcn-builtins.def: New file.
3715 * config/gcn/gcn-hsa.h: New file.
3716 * config/gcn/gcn-modes.def: New file.
3717 * config/gcn/gcn-opts.h: New file.
3718 * config/gcn/gcn-passes.def: New file.
3719 * config/gcn/gcn-protos.h: New file.
3720 * config/gcn/gcn-run.c: New file.
3721 * config/gcn/gcn-tree.c: New file.
3722 * config/gcn/gcn.c: New file.
3723 * config/gcn/gcn.h: New file.
3724 * config/gcn/gcn.opt: New file.
3725 * config/gcn/t-gcn-hsa: New file.
3727 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3728 Kwok Cheung Yeung <kcy@codesourcery.com>
3729 Julian Brown <julian@codesourcery.com>
3730 Tom de Vries <tom@codesourcery.com>
3731 Jan Hubicka <hubicka@ucw.cz>
3732 Martin Jambor <mjambor@suse.cz>
3734 * config/gcn/constraints.md: New file.
3735 * config/gcn/gcn-valu.md: New file.
3736 * config/gcn/gcn.md: New file.
3737 * config/gcn/predicates.md: New file.
3739 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
3741 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
3742 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
3743 (stmt_uses_0_or_null_in_undefined_way): Likewise.
3744 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
3746 2019-01-17 Tamar Christina <tamar.christina@arm.com>
3749 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
3750 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
3751 it and document registers.
3753 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3755 * config/aarch64/aarch64.c (ares_tunings): Define.
3756 * config/aarch64/aarch64-cores.def (ares): Use the above.
3758 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
3762 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
3764 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
3765 (_mm512_fixupimm_round_pd): Update parameters and builtin.
3766 (_mm512_maskz_fixupimm_round_pd): Ditto.
3767 (_mm512_fixupimm_round_ps): Ditto.
3768 (_mm512_maskz_fixupimm_round_ps): Ditto.
3769 (_mm_fixupimm_round_sd): Ditto.
3770 (_mm_maskz_fixupimm_round_sd): Ditto.
3771 (_mm_fixupimm_round_ss): Ditto.
3772 (_mm_maskz_fixupimm_round_ss): Ditto.
3773 (_mm512_fixupimm_pd): Ditto.
3774 (_mm512_maskz_fixupimm_pd): Ditto.
3775 (_mm512_fixupimm_ps): Ditto.
3776 (_mm512_maskz_fixupimm_ps): Ditto.
3777 (_mm_fixupimm_sd): Ditto.
3778 (_mm_maskz_fixupimm_sd): Ditto.
3779 (_mm_fixupimm_ss): Ditto.
3780 (_mm_maskz_fixupimm_ss): Ditto.
3781 (_mm512_mask_fixupimm_round_pd): Update builtin.
3782 (_mm512_mask_fixupimm_round_ps): Ditto.
3783 (_mm_mask_fixupimm_round_sd): Ditto.
3784 (_mm_mask_fixupimm_round_ss): Ditto.
3785 (_mm512_mask_fixupimm_pd): Ditto.
3786 (_mm512_mask_fixupimm_ps): Ditto.
3787 (_mm_mask_fixupimm_sd): Ditto.
3788 (_mm_mask_fixupimm_ss): Ditto.
3789 * config/i386/avx512vlintrin.h:
3790 (_mm256_fixupimm_pd): Update parameters and builtin.
3791 (_mm256_maskz_fixupimm_pd): Ditto.
3792 (_mm256_fixupimm_ps): Ditto.
3793 (_mm256_maskz_fixupimm_ps): Ditto.
3794 (_mm_fixupimm_pd): Ditto.
3795 (_mm_maskz_fixupimm_pd): Ditto.
3796 (_mm_fixupimm_ps): Ditto.
3797 (_mm_maskz_fixupimm_ps): Ditto.
3798 (_mm256_mask_fixupimm_pd): Update builtin.
3799 (_mm256_mask_fixupimm_ps): Ditto.
3800 (_mm_mask_fixupimm_pd): Ditto.
3801 (_mm_mask_fixupimm_ps): Ditto.
3802 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
3803 * config/i386/i386-builtin.def: Update builtin definitions.
3804 * config/i386/i386.c: Handle new builtin types and remove useless ones.
3805 * config/i386/sse.md: Update VFIXUPIMM* patterns.
3806 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3807 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3808 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
3809 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3810 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3811 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
3812 * config/i386/subst.md:
3813 (round_saeonly_sd_mask_operand4): Add new subst_attr.
3814 (round_saeonly_sd_mask_op4): Ditto.
3815 (round_saeonly_expand_operand5): Ditto.
3816 (round_saeonly_expand): Update.
3818 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
3822 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
3824 * config/i386/sse.md: Combine VFIXUPIMM* patterns
3825 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3826 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3827 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
3828 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3829 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3830 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
3832 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
3836 2018-12-15 Jakub Jelinek <jakub@redhat.com>
3839 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
3840 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
3841 instead of UNSPEC_FIXUPIMM.
3843 2019-01-17 Richard Biener <rguenther@suse.de>
3846 * dwarf2out.c (want_pubnames): Never generate pubnames sections
3847 and friends for the LTO part of debug info.
3849 2019-01-17 Jakub Jelinek <jakub@redhat.com>
3851 PR tree-optimization/86214
3852 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
3855 PR rtl-optimization/88870
3856 * dce.c (deletable_insn_p): Never delete const/pure calls that can
3857 throw if we can't alter the cfg or delete dead exceptions.
3858 (mark_insn): Don't call find_call_stack_args for such calls.
3860 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
3862 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
3863 prototypes for vec_st.
3864 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
3865 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
3866 mainly on signed/unsigned long long and double.
3868 2019-01-16 David Malcolm <dmalcolm@redhat.com>
3871 * combine.c (delete_noop_moves): Convert to "bool" return,
3872 returning true if any edges are eliminated.
3873 (combine_instructions): Also return true if delete_noop_moves
3876 2019-01-16 Tamar Christina <tamar.christina@arm.com>
3878 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
3879 correct max nunits for endian swap.
3880 (aarch64_expand_fcmla_builtin): Correct subreg code.
3881 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
3882 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
3885 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
3887 * config/alpha/alpha.c (alpha_gimplify_va_arg):
3888 Handle split indirect COMPLEX_TYPE arguments.
3890 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
3893 * config/aarch64/aarch64-modes.def: Add comment about how the carry
3894 bit is set by add and compare.
3895 (CC_ADC): New CC_MODE.
3896 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
3897 to cache the code and mode of X. Adjust the shape of a CC_Cmode
3898 comparison. Add detection for CC_ADCmode.
3899 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
3901 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
3902 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
3903 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
3904 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
3905 to eliminate the need for zero-extending the operands.
3906 (add<mode>3_compareC_imm): Delete. Merge into ...
3907 (add<mode>3_compareC): ... this. Restructure the comparison to
3908 eliminate the need for zero-extending the operands.
3909 (add<mode>3_carryin): Use LTU for the overflow detection.
3910 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
3911 Reexpress comparison for overflow.
3912 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
3913 (add<mode>3_carryinC): Likewise.
3914 (add<mode>3_carryinV): Use LTU for carry between partials.
3915 * config/aarch64/predicates.md (aarch64_carry_operation): Update
3916 handling of CC_Cmode and add CC_ADCmode.
3917 (aarch64_borrow_operation): Likewise.
3919 2019-01-16 Tamar Christina <tamar.christina@arm.com>
3921 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
3922 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
3923 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
3924 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
3926 2019-01-16 Martin Liska <mliska@suse.cz>
3928 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
3930 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
3932 * gcc.c (add_sysrooted_hdrs_prefix): New function.
3933 (path_prefix_reset): Move up in the source file.
3934 (find_fortran_preinclude_file): Make complex search for the
3935 fortran header files.
3937 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
3939 * godump.c (go_output_typedef): When outputting a typedef, refer
3940 to the underlying type by its name and not its structure.
3942 2019-01-15 David Malcolm <dmalcolm@redhat.com>
3945 * tree.c (build_function_type): Assert that arg_types is not
3948 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
3951 * doc/extend.texi: Document that listing the stack pointer in the
3952 clobber list of an asm is a deprecated feature.
3953 * common.opt (Wdeprecated): Moved from c-family/c.opt.
3954 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
3955 warning instead of an error for clobbers of the stack pointer.
3956 Add a note explaining why.
3958 2019-01-15 Richard Biener <rguenther@suse.de>
3961 * dwarf2out.c (gen_member_die): Do not generate inheritance
3964 2019-01-15 Richard Biener <rguenther@suse.de>
3966 PR tree-optimization/88855
3967 * tree-if-conv.c (combine_blocks): Collect
3968 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
3970 2019-01-15 Tom de Vries <tdevries@suse.de>
3973 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
3974 lhs == NULL_TREE for gang-level reduction.
3976 2019-01-15 Richard Biener <rguenther@suse.de>
3977 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3980 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
3981 return true if SSA_NAME is already marked in visited bitmap.
3982 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
3984 2019-01-15 Jakub Jelinek <jakub@redhat.com>
3986 PR tree-optimization/88775
3987 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
3988 equal == 0 equality pointer comparisons some more if compared in
3989 integral types and either one points to an automatic var and the
3990 other to a global, or we can prove at least one points to the middle
3991 or both point to start or both point to end.
3993 2019-01-14 Andi Kleen <ak@linux.intel.com>
3995 * Makefile.in: Lower autofdo sampling rate by 10x.
3996 * Makefile.tpl: Dito.
3998 2019-01-14 Tom Honermann <tom@honermann.net>
4000 * defaults.h: Define CHAR8_TYPE.
4002 2019-01-14 Martin Sebor <msebor@redhat.com>
4005 * doc/extend.texi (Darwin Format Checks): Clarify.
4007 2019-01-14 Richard Biener <rguenther@suse.de>
4009 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
4010 whether we are in (simplify ...) or (match ...) context.
4012 2019-01-14 Jakub Jelinek <jakub@redhat.com>
4014 PR rtl-optimization/88796
4015 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
4016 * cfgexpand.c (stack_protect_prologue): Initialize
4017 crtl->stack_protect_guard_decl.
4018 * function.c (stack_protect_epilogue): Use it instead of calling
4019 targetm.stack_protect_guard again.
4020 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
4021 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
4022 crtl->stack_protect_guard_decl.
4023 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
4024 on the returned MEM_EXPR.
4026 2019-01-12 Tom de Vries <tdevries@suse.de>
4028 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
4029 vector length using -fopenacc-dim.
4031 2019-01-12 Tom de Vries <tdevries@suse.de>
4033 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
4034 lengths into account.
4036 2019-01-12 Svante Signell <svante.signell@gmail.com>
4038 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
4039 (TARGET_CAN_SPLIT_STACK): Define.
4040 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
4042 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4044 * params.def (inline-unit-growth): Set to 40.
4046 2019-01-12 Jakub Jelinek <jakub@redhat.com>
4048 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
4050 2019-01-12 Tom de Vries <tdevries@suse.de>
4052 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
4053 region calling vector-partitionable routine, set default_vector_length
4056 2019-01-12 Tom de Vries <tdevries@suse.de>
4058 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
4059 variable default_vector_length.
4061 2019-01-12 Tom de Vries <tdevries@suse.de>
4064 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
4065 from oacc_default_dims, as oacc_validate_dims would do it, and apply
4068 2019-01-12 Tom de Vries <tdevries@suse.de>
4070 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
4071 (nvptx_goacc_validate_dims): Add used parameter.
4072 * doc/tm.texi: Regenerate.
4073 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
4074 argument to call to targetm.goacc.validate_dims.
4075 (default_goacc_validate_dims): Add used
4077 * target.def (validate_dims): Add used parameter in DEFHOOK.
4078 * targhooks.h (default_goacc_validate_dims): Add used parameter.
4080 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4084 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
4086 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
4087 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
4088 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
4089 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
4091 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
4093 PR rtl-optimization/87305
4095 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
4096 for little endian pseudos used as paradoxical subreg.
4098 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4100 PR tree-optimization/88693
4101 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
4102 for STRING_CSTs that don't contain any NUL characters in the first
4103 TREE_STRING_LENGTH bytes.
4105 2019-01-11 Alan Modra <amodra@gmail.com>
4109 * genattrtab.c (min_fn): Don't translate values.
4110 (min_attr_value): Return INT_MAX when the value can't be calculated.
4111 Return minimum among any values that can be calculated.
4112 (max_attr_value): Adjust.
4114 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4116 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
4118 2019-01-11 Steve Ellcey <sellcey@marvell.com>
4120 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
4121 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
4122 (aarch64_return_call_with_max_clobbers): New function.
4123 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
4124 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
4126 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
4127 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
4128 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
4129 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
4130 * cselib.c (cselib_process_insn): Add argument to
4131 targetm.hard_regno_call_part_clobbered call.
4132 * ira-conflicts.c (ira_build_conflicts): Ditto.
4133 * ira-costs.c (ira_tune_allocno_costs): Ditto.
4134 * lra-constraints.c (inherit_reload_reg): Ditto.
4135 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
4136 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
4137 argument. Call targetm.return_call_with_max_clobbers.
4138 Add argument to targetm.hard_regno_call_part_clobbered call.
4139 (calls_have_same_clobbers_p): New function.
4140 (process_bb_lives): Add call_insn and last_call_insn variables.
4141 Pass call_insn to check_pseudos_live_through_calls.
4142 Modify if stmt to check targetm.return_call_with_max_clobbers.
4143 Update setting of flush variable.
4144 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
4146 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
4147 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
4148 targetm.hard_regno_call_part_clobbered call.
4149 * reginfo.c (choose_hard_reg_mode): Ditto.
4150 * regrename.c (check_new_reg_p): Ditto.
4151 * reload.c (find_equiv_reg): Ditto.
4152 * reload1.c (emit_reload_insns): Ditto.
4153 * sched-deps.c (deps_analyze_insn): Ditto.
4154 * sel-sched.c (init_regs_for_mode): Ditto.
4155 (mark_unavailable_hard_regs): Ditto.
4156 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
4157 * target.def (hard_regno_call_part_clobbered): Add insn argument.
4158 (return_call_with_max_clobbers): New target function.
4159 * doc/tm.texi: Regenerate.
4160 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
4161 * hooks.c (hook_bool_uint_mode_false): Change to
4162 hook_bool_insn_uint_mode_false.
4163 * hooks.h (hook_bool_uint_mode_false): Ditto.
4165 2019-01-11 Steve Ellcey <sellcey@marvell.com>
4167 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
4168 (aarch64_remove_extra_call_preserved_regs): New function.
4169 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
4170 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
4171 * doc/tm.texi: Regenerate.
4172 * final.c (get_call_reg_set_usage): Call new hook.
4173 * target.def (remove_extra_call_preserved_regs): New hook.
4174 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
4175 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
4177 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4180 * passes.c (finish_optimization_passes): Call print_combine_total_stats
4181 inside of pass_combine_1 dump rather than pass_profile_1.
4183 2019-01-11 Tom de Vries <tdevries@suse.de>
4185 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
4186 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
4187 (PTX_NUM_PER_WORKER_BARRIERS): Define.
4188 (nvptx_apply_dim_limits): Prevent vector_length 64 and
4191 2019-01-11 Tom de Vries <tdevries@suse.de>
4193 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
4195 2019-01-11 Jan Beulich <jbeulich@suse.com>
4197 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
4198 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
4199 sse2_cvtsi2sd): Add {l}.
4200 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
4203 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4206 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
4208 (*float<floatunssuffix>v2div2sf2): New define_insn.
4209 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
4210 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
4211 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
4212 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
4213 match_operands with "const0_operand" "C".
4215 2019-01-10 Tamar Christina <tamar.christina@arm.com>
4217 * config/aarch64/aarch64-builtins.c
4218 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
4219 (aarch64_init_simd_builtins): ...Here
4221 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
4223 PR rtl-optimization/87305
4225 (setup_live_pseudos_and_spill_after_risky_transforms): Check
4226 allocation for big endian pseudos used as paradoxical subregs and
4227 spill them if it is wrong.
4228 * lra-constraints.c (lra_constraints): Add a comment.
4230 2019-01-10 Richard Biener <rguenther@suse.de>
4232 PR tree-optimization/88792
4233 * tree-ssa-pre.c (get_representative_for): Do not return a
4236 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4240 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
4241 (assign_parm_setup_block): Do the argument slot realignment here
4244 2019-01-10 Stefan Agner <stefan@agner.ch>
4247 * config/arm/arm.c (arm_option_override_internal): Force
4248 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
4250 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4253 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
4256 2019-01-10 Tamar Christina <tamar.christina@arm.com>
4258 * config/arm/arm-builtins.c
4259 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
4260 (MAC_LANE_PAIR_QUALIFIERS): New.
4261 (arm_expand_builtin_args): Use it.
4262 (arm_expand_builtin_1): Likewise.
4263 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
4264 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
4265 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
4266 * config/arm/arm_neon.h:
4267 (vcadd_rot90_f16): New.
4268 (vcaddq_rot90_f16): New.
4269 (vcadd_rot270_f16): New.
4270 (vcaddq_rot270_f16): New.
4273 (vcmla_lane_f16): New.
4274 (vcmla_laneq_f16): New.
4275 (vcmlaq_lane_f16): New.
4276 (vcmlaq_laneq_f16): New.
4277 (vcmla_rot90_f16): New.
4278 (vcmlaq_rot90_f16): New.
4279 (vcmla_rot90_lane_f16): New.
4280 (vcmla_rot90_laneq_f16): New.
4281 (vcmlaq_rot90_lane_f16): New.
4282 (vcmlaq_rot90_laneq_f16): New.
4283 (vcmla_rot180_f16): New.
4284 (vcmlaq_rot180_f16): New.
4285 (vcmla_rot180_lane_f16): New.
4286 (vcmla_rot180_laneq_f16): New.
4287 (vcmlaq_rot180_lane_f16): New.
4288 (vcmlaq_rot180_laneq_f16): New.
4289 (vcmla_rot270_f16): New.
4290 (vcmlaq_rot270_f16): New.
4291 (vcmla_rot270_lane_f16): New.
4292 (vcmla_rot270_laneq_f16): New.
4293 (vcmlaq_rot270_lane_f16): New.
4294 (vcmlaq_rot270_laneq_f16): New.
4295 (vcadd_rot90_f32): New.
4296 (vcaddq_rot90_f32): New.
4297 (vcadd_rot270_f32): New.
4298 (vcaddq_rot270_f32): New.
4301 (vcmla_lane_f32): New.
4302 (vcmla_laneq_f32): New.
4303 (vcmlaq_lane_f32): New.
4304 (vcmlaq_laneq_f32): New.
4305 (vcmla_rot90_f32): New.
4306 (vcmlaq_rot90_f32): New.
4307 (vcmla_rot90_lane_f32): New.
4308 (vcmla_rot90_laneq_f32): New.
4309 (vcmlaq_rot90_lane_f32): New.
4310 (vcmlaq_rot90_laneq_f32): New.
4311 (vcmla_rot180_f32): New.
4312 (vcmlaq_rot180_f32): New.
4313 (vcmla_rot180_lane_f32): New.
4314 (vcmla_rot180_laneq_f32): New.
4315 (vcmlaq_rot180_lane_f32): New.
4316 (vcmlaq_rot180_laneq_f32): New.
4317 (vcmla_rot270_f32): New.
4318 (vcmlaq_rot270_f32): New.
4319 (vcmla_rot270_lane_f32): New.
4320 (vcmla_rot270_laneq_f32): New.
4321 (vcmlaq_rot270_lane_f32): New.
4322 (vcmlaq_rot270_laneq_f32): New.
4323 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
4324 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180, vcmla_lane270,
4325 vcmla_laneq0, vcmla_laneq90, vcmla_laneq180, vcmla_laneq270,
4326 vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180, vcmlaq_lane270): New.
4327 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
4328 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
4329 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
4330 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
4331 (arm_option_reconfigure_globals): Use them.
4332 * config/arm/iterators.md (VDF, VQ_HSF): New.
4333 (VCADD, VCMLA): New.
4334 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
4335 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>): New.
4336 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
4337 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
4339 2019-01-10 Tamar Christina <tamar.christina@arm.com>
4341 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add qualifier_lane_pair_index.
4342 (emit-rtl.h): Include.
4343 (TYPES_QUADOP_LANE_PAIR): New.
4344 (aarch64_simd_expand_args): Use it.
4345 (aarch64_simd_expand_builtin): Likewise.
4346 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum): New.
4347 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
4348 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
4349 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
4350 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
4351 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
4352 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
4353 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
4354 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
4355 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
4356 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
4357 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add __ARM_FEATURE_COMPLEX.
4358 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0, fcmla90,
4359 fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180, fcmla_lane270,
4360 fcmla_laneq0, fcmla_laneq90, fcmla_laneq180, fcmla_laneq270,
4361 fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180, fcmlaq_lane270): New.
4362 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
4363 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,aarch64_fcadd<rot><mode>,
4364 aarch64_fcmla<rot><mode>): New.
4365 * config/aarch64/arm_neon.h:
4366 (vcadd_rot90_f16): New.
4367 (vcaddq_rot90_f16): New.
4368 (vcadd_rot270_f16): New.
4369 (vcaddq_rot270_f16): New.
4372 (vcmla_lane_f16): New.
4373 (vcmla_laneq_f16): New.
4374 (vcmlaq_lane_f16): New.
4375 (vcmlaq_rot90_lane_f16): New.
4376 (vcmla_rot90_laneq_f16): New.
4377 (vcmla_rot90_lane_f16): New.
4378 (vcmlaq_rot90_f16): New.
4379 (vcmla_rot90_f16): New.
4380 (vcmlaq_laneq_f16): New.
4381 (vcmla_rot180_laneq_f16): New.
4382 (vcmla_rot180_lane_f16): New.
4383 (vcmlaq_rot180_f16): New.
4384 (vcmla_rot180_f16): New.
4385 (vcmlaq_rot90_laneq_f16): New.
4386 (vcmlaq_rot270_laneq_f16): New.
4387 (vcmlaq_rot270_lane_f16): New.
4388 (vcmla_rot270_laneq_f16): New.
4389 (vcmlaq_rot270_f16): New.
4390 (vcmla_rot270_f16): New.
4391 (vcmlaq_rot180_laneq_f16): New.
4392 (vcmlaq_rot180_lane_f16): New.
4393 (vcmla_rot270_lane_f16): New.
4394 (vcadd_rot90_f32): New.
4395 (vcaddq_rot90_f32): New.
4396 (vcaddq_rot90_f64): New.
4397 (vcadd_rot270_f32): New.
4398 (vcaddq_rot270_f32): New.
4399 (vcaddq_rot270_f64): New.
4403 (vcmla_lane_f32): New.
4404 (vcmla_laneq_f32): New.
4405 (vcmlaq_lane_f32): New.
4406 (vcmlaq_laneq_f32): New.
4407 (vcmla_rot90_f32): New.
4408 (vcmlaq_rot90_f32): New.
4409 (vcmlaq_rot90_f64): New.
4410 (vcmla_rot90_lane_f32): New.
4411 (vcmla_rot90_laneq_f32): New.
4412 (vcmlaq_rot90_lane_f32): New.
4413 (vcmlaq_rot90_laneq_f32): New.
4414 (vcmla_rot180_f32): New.
4415 (vcmlaq_rot180_f32): New.
4416 (vcmlaq_rot180_f64): New.
4417 (vcmla_rot180_lane_f32): New.
4418 (vcmla_rot180_laneq_f32): New.
4419 (vcmlaq_rot180_lane_f32): New.
4420 (vcmlaq_rot180_laneq_f32): New.
4421 (vcmla_rot270_f32): New.
4422 (vcmlaq_rot270_f32): New.
4423 (vcmlaq_rot270_f64): New.
4424 (vcmla_rot270_lane_f32): New.
4425 (vcmla_rot270_laneq_f32): New.
4426 (vcmlaq_rot270_lane_f32): New.
4427 (vcmlaq_rot270_laneq_f32): New.
4428 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
4429 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
4430 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
4431 (FCADD, FCMLA): New.
4433 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
4435 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
4439 * config/pa/pa.c: Change "can not" to "cannot".
4440 * gimple-ssa-evrp-analyze.c: Likewise.
4441 * ipa-icf.c: Likewise.
4442 * ipa-polymorphic-call.c: Likewise.
4443 * ipa-pure-const.c: Likewise.
4444 * lra-constraints.c: Likewise.
4445 * lra-remat.c: Likewise.
4446 * reload1.c: Likewise.
4447 * reorg.c: Likewise.
4448 * tree-ssa-uninit.c: Likewise.
4450 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
4454 * Makefile.in: Mechanically replace "can not" with "cannot".
4455 * alias.c: Likewise.
4456 * builtins.c: Likewise.
4457 * calls.c: Likewise.
4458 * cgraph.c: Likewise.
4459 * cgraph.h: Likewise.
4460 * cgraphclones.c: Likewise.
4461 * cgraphunit.c: Likewise.
4462 * combine-stack-adj.c: Likewise.
4463 * combine.c: Likewise.
4464 * common/config/i386/i386-common.c: Likewise.
4465 * config/aarch64/aarch64.c: Likewise.
4466 * config/alpha/sync.md: Likewise.
4467 * config/arc/arc.c: Likewise.
4468 * config/arc/predicates.md: Likewise.
4469 * config/arm/arm-c.c: Likewise.
4470 * config/arm/arm.c: Likewise.
4471 * config/arm/arm.h: Likewise.
4472 * config/arm/arm.md: Likewise.
4473 * config/arm/cortex-r4f.md: Likewise.
4474 * config/csky/csky.c: Likewise.
4475 * config/csky/csky.h: Likewise.
4476 * config/darwin-f.c: Likewise.
4477 * config/epiphany/epiphany.md: Likewise.
4478 * config/i386/i386.c: Likewise.
4479 * config/i386/sol2.h: Likewise.
4480 * config/m68k/m68k.c: Likewise.
4481 * config/mcore/mcore.h: Likewise.
4482 * config/microblaze/microblaze.md: Likewise.
4483 * config/mips/20kc.md: Likewise.
4484 * config/mips/sb1.md: Likewise.
4485 * config/nds32/nds32.c: Likewise.
4486 * config/nds32/predicates.md: Likewise.
4487 * config/pa/pa.c: Likewise.
4488 * config/rs6000/e300c2c3.md: Likewise.
4489 * config/rs6000/rs6000.c: Likewise.
4490 * config/s390/s390.h: Likewise.
4491 * config/sh/sh.c: Likewise.
4492 * config/sh/sh.md: Likewise.
4493 * config/spu/vmx2spu.h: Likewise.
4494 * cprop.c: Likewise.
4495 * dbxout.c: Likewise.
4496 * df-scan.c: Likewise.
4497 * doc/cfg.texi: Likewise.
4498 * doc/extend.texi: Likewise.
4499 * doc/fragments.texi: Likewise.
4500 * doc/gty.texi: Likewise.
4501 * doc/invoke.texi: Likewise.
4502 * doc/lto.texi: Likewise.
4503 * doc/md.texi: Likewise.
4504 * doc/objc.texi: Likewise.
4505 * doc/rtl.texi: Likewise.
4506 * doc/tm.texi: Likewise.
4508 * emit-rtl.c: Likewise.
4509 * emit-rtl.h: Likewise.
4510 * except.c: Likewise.
4511 * expmed.c: Likewise.
4513 * fold-const.c: Likewise.
4514 * genautomata.c: Likewise.
4515 * gimple-fold.c: Likewise.
4516 * hard-reg-set.h: Likewise.
4517 * ifcvt.c: Likewise.
4518 * ipa-comdats.c: Likewise.
4519 * ipa-cp.c: Likewise.
4520 * ipa-devirt.c: Likewise.
4521 * ipa-fnsummary.c: Likewise.
4522 * ipa-icf.c: Likewise.
4523 * ipa-inline-transform.c: Likewise.
4524 * ipa-inline.c: Likewise.
4525 * ipa-polymorphic-call.c: Likewise.
4526 * ipa-profile.c: Likewise.
4527 * ipa-prop.c: Likewise.
4528 * ipa-pure-const.c: Likewise.
4529 * ipa-reference.c: Likewise.
4530 * ipa-split.c: Likewise.
4531 * ipa-visibility.c: Likewise.
4533 * ira-build.c: Likewise.
4534 * ira-color.c: Likewise.
4535 * ira-conflicts.c: Likewise.
4536 * ira-costs.c: Likewise.
4537 * ira-int.h: Likewise.
4538 * ira-lives.c: Likewise.
4541 * loop-invariant.c: Likewise.
4542 * loop-unroll.c: Likewise.
4543 * lower-subreg.c: Likewise.
4544 * lra-assigns.c: Likewise.
4545 * lra-constraints.c: Likewise.
4546 * lra-eliminations.c: Likewise.
4547 * lra-lives.c: Likewise.
4548 * lra-remat.c: Likewise.
4549 * lra-spills.c: Likewise.
4551 * lto-cgraph.c: Likewise.
4552 * lto-streamer-out.c: Likewise.
4553 * postreload-gcse.c: Likewise.
4554 * predict.c: Likewise.
4555 * profile-count.h: Likewise.
4556 * profile.c: Likewise.
4557 * recog.c: Likewise.
4559 * reload.c: Likewise.
4560 * reload1.c: Likewise.
4561 * reorg.c: Likewise.
4562 * resource.c: Likewise.
4563 * rtl.def: Likewise.
4565 * rtlanal.c: Likewise.
4566 * sched-deps.c: Likewise.
4567 * sched-ebb.c: Likewise.
4568 * sched-rgn.c: Likewise.
4569 * sel-sched-ir.c: Likewise.
4570 * sel-sched.c: Likewise.
4571 * shrink-wrap.c: Likewise.
4572 * simplify-rtx.c: Likewise.
4573 * symtab.c: Likewise.
4574 * target.def: Likewise.
4575 * toplev.c: Likewise.
4576 * tree-call-cdce.c: Likewise.
4577 * tree-cfg.c: Likewise.
4578 * tree-complex.c: Likewise.
4579 * tree-core.h: Likewise.
4580 * tree-eh.c: Likewise.
4581 * tree-inline.c: Likewise.
4582 * tree-loop-distribution.c: Likewise.
4583 * tree-nrv.c: Likewise.
4584 * tree-profile.c: Likewise.
4585 * tree-sra.c: Likewise.
4586 * tree-ssa-alias.c: Likewise.
4587 * tree-ssa-dce.c: Likewise.
4588 * tree-ssa-dom.c: Likewise.
4589 * tree-ssa-forwprop.c: Likewise.
4590 * tree-ssa-loop-im.c: Likewise.
4591 * tree-ssa-loop-ivcanon.c: Likewise.
4592 * tree-ssa-loop-ivopts.c: Likewise.
4593 * tree-ssa-loop-niter.c: Likewise.
4594 * tree-ssa-phionlycprop.c: Likewise.
4595 * tree-ssa-phiopt.c: Likewise.
4596 * tree-ssa-propagate.c: Likewise.
4597 * tree-ssa-threadedge.c: Likewise.
4598 * tree-ssa-threadupdate.c: Likewise.
4599 * tree-ssa-uninit.c: Likewise.
4600 * tree-ssanames.c: Likewise.
4601 * tree-streamer-out.c: Likewise.
4604 * vr-values.c: Likewise.
4606 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
4608 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
4609 (ix86_split_xorsign): Ditto.
4610 * config/i386/i386.c (ix86_expand_xorsign): New function.
4611 (ix86_split_xorsign): Ditto.
4612 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
4613 (xorsign<mode>3): New expander.
4614 (xorsign<mode>3_1): New insn_and_split pattern.
4615 * config/i386/sse.md (xorsign<mode>3): New expander.
4617 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
4619 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
4620 (*tablejump_sp64): Likewise.
4621 (*tablejump<P:mode>): ...this.
4622 (*call_address_sp32): Merge into...
4623 (*call_address_sp64): Likewise.
4624 (*call_address<P:mode>): ...this.
4625 (*call_symbolic_sp32): Merge into...
4626 (*call_symbolic_sp64): Likewise.
4627 (*call_symbolic<P:mode>): ...this.
4628 (call_value): Remove constraint and add predicate.
4629 (*call_value_address_sp32): Merge into...
4630 (*call_value_address_sp64): Likewise.
4631 (*call_value_address<P:mode>): ...this.
4632 (*call_value_symbolic_sp32): Merge into...
4633 (*call_value_symbolic_sp64): Likewise.
4634 (*call_value_symbolic<P:mode>): ...this.
4635 (*sibcall_symbolic_sp32): Merge into...
4636 (*sibcall_symbolic_sp64): Likewise.
4637 (*sibcall_symbolic<P:mode>): ...this.
4638 (sibcall_value): Remove constraint and add predicate.
4639 (*sibcall_value_symbolic_sp32): Merge into...
4640 (*sibcall_value_symbolic_sp64): Likewise.
4641 (*sibcall_value_symbolic<P:mode>): ...this.
4642 (window_save): Minor tweak.
4643 (*branch_sp32): Merge into...
4644 (*branch_sp64): Likewise.
4645 (*branch<P:mode>): ...this.
4647 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
4648 James Clarke <jrtc27@jrtc27.com>
4651 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
4652 consistently in TLS address generation and adjust code to the renaming
4653 of patterns. Mark calls to __tls_get_addr as const.
4654 * config/sparc/sparc.md (tgd_hi22): Turn into...
4655 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
4656 (tgd_lo10): Turn into...
4657 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
4658 (tgd_add32): Merge into...
4659 (tgd_add64): Likewise.
4660 (tgd_add<P:mode>): ...this and use Pmode throughout.
4661 (tldm_hi22): Turn into...
4662 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
4663 (tldm_lo10): Turn into...
4664 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
4665 (tldm_add32): Merge into...
4666 (tldm_add64): Likewise.
4667 (tldm_add<P:mode>): ...this and use Pmode throughout.
4668 (tldm_call32): Merge into...
4669 (tldm_call64): Likewise.
4670 (tldm_call<P:mode>): ...this and use Pmode throughout.
4671 (tldo_hix22): Turn into...
4672 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
4673 (tldo_lox10): Turn into...
4674 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
4675 (tldo_add32): Merge into...
4676 (tldo_add64): Likewise.
4677 (tldo_add<P:mode>): ...this and use Pmode throughout.
4678 (tie_hi22): Turn into...
4679 (tie_hi22<P:mode>): ...this and use Pmode throughout.
4680 (tie_lo10): Turn into...
4681 (tie_lo10<P:mode>): ...this and use Pmode throughout.
4682 (tie_ld64): Use DImode throughout.
4683 (tie_add32): Merge into...
4684 (tie_add64): Likewise.
4685 (tie_add<P:mode>): ...this and use Pmode throughout.
4686 (tle_hix22_sp32): Merge into...
4687 (tle_hix22_sp64): Likewise.
4688 (tle_hix22<P:mode>): ...this and use Pmode throughout.
4689 (tle_lox22_sp32): Merge into...
4690 (tle_lox22_sp64): Likewise.
4691 (tle_lox22<P:mode>): ...this and use Pmode throughout.
4692 (*tldo_ldub_sp32): Merge into...
4693 (*tldo_ldub_sp64): Likewise.
4694 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
4695 (*tldo_ldub1_sp32): Merge into...
4696 (*tldo_ldub1_sp64): Likewise.
4697 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
4698 (*tldo_ldub2_sp32): Merge into...
4699 (*tldo_ldub2_sp64): Likewise.
4700 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
4701 (*tldo_ldsb1_sp32): Merge into...
4702 (*tldo_ldsb1_sp64): Likewise.
4703 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
4704 (*tldo_ldsb2_sp32): Merge into...
4705 (*tldo_ldsb2_sp64): Likewise.
4706 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
4707 (*tldo_ldub3_sp64): Use DImode throughout.
4708 (*tldo_ldsb3_sp64): Likewise.
4709 (*tldo_lduh_sp32): Merge into...
4710 (*tldo_lduh_sp64): Likewise.
4711 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
4712 (*tldo_lduh1_sp32): Merge into...
4713 (*tldo_lduh1_sp64): Likewise.
4714 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
4715 (*tldo_ldsh1_sp32): Merge into...
4716 (*tldo_ldsh1_sp64): Likewise.
4717 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
4718 (*tldo_lduh2_sp64): Use DImode throughout.
4719 (*tldo_ldsh2_sp64): Likewise.
4720 (*tldo_lduw_sp32): Merge into...
4721 (*tldo_lduw_sp64): Likewise.
4722 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
4723 (*tldo_lduw1_sp64): Use DImode throughout.
4724 (*tldo_ldsw1_sp64): Likewise.
4725 (*tldo_ldx_sp64): Likewise.
4726 (*tldo_stb_sp32): Merge into...
4727 (*tldo_stb_sp64): Likewise.
4728 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
4729 (*tldo_sth_sp32): Merge into...
4730 (*tldo_sth_sp64): Likewise.
4731 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
4732 (*tldo_stw_sp32): Merge into...
4733 (*tldo_stw_sp64): Likewise.
4734 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
4735 (*tldo_stx_sp64): Use DImode throughout.
4737 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4739 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
4740 check configure option to set BTI and Return Address Signing.
4741 * configure.ac: Add --enable-standard-branch-protection and
4742 --disable-standard-branch-protection.
4743 * configure: Regenerated.
4744 * doc/install.texi: Document the same.
4746 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4747 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4749 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
4750 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
4751 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
4753 * config/aarch64/aarch64-bti-insert.c: New file.
4754 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
4756 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
4758 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
4759 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
4760 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
4761 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
4763 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4765 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
4766 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
4767 Disable bti for -mbranch-protection=none.
4768 (aarch64_handle_standard_branch_protection): Enable bti for
4769 -mbranch-protection=standard.
4770 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
4771 -mbranch-protection.
4772 (aarch64_bti_enabled): Check if bti is enabled.
4773 * config/aarch64/aarch64.opt: Declare target variable.
4774 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
4776 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4778 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
4779 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
4780 (aarch64_expand_epilogue): Likewise.
4781 (aarch64_output_mi_thunk): Likewise
4782 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
4783 TAILCALL_ADDR_REGS to x16 and x17.
4784 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
4786 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4788 * config/aarch64/aarch64-option-extensions.def: Define
4789 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
4790 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
4791 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
4792 (AARCH64_FL_PREDRES): New.
4793 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
4794 AARCH64_FL_PREDRES by default.
4795 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
4797 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4799 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
4801 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
4802 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
4803 * doc/invoke.texi: Document ARMv8.5-A.
4805 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
4807 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
4808 (xorsign<mode>3): Likewise.
4810 2019-01-09 Jelinek <jakub@redhat.com>
4813 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
4814 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
4816 PR rtl-optimization/88331
4817 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
4818 not currently_expanding_to_rtl.
4820 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
4822 * doc/invoke.texi (-Os): Remove trailing spaces.
4823 (-finline-functions): Remove reference to -O2.
4825 2019-01-08 Jakub Jelinek <jakub@redhat.com>
4827 PR rtl-optimization/79593
4828 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
4830 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
4831 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
4833 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
4836 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
4840 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
4841 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
4843 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
4846 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
4847 ix86_avx_u128_mode_entry.
4849 2019-01-08 Martin Liska <mliska@suse.cz>
4851 PR tree-optimization/88753
4852 * tree-switch-conversion.c (switch_conversion::build_one_array):
4853 Come up with local variable constructor. Convert first to
4854 type of constructor values.
4856 2019-01-08 Richard Biener <rguenther@suse.de>
4858 PR tree-optimization/86554
4859 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
4860 rpo_avail): Move earlier.
4861 (visit_nary_op): When value-numbering to expressions
4862 with different overflow behavior make sure there's an
4863 available expression on the path.
4865 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
4867 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
4868 aarch64_parse_branch_protection,
4869 struct aarch64_branch_protect_type,
4870 aarch64_handle_no_branch_protection,
4871 aarch64_handle_standard_branch_protection,
4872 aarch64_validate_mbranch_protection,
4873 aarch64_handle_pac_ret_protection,
4874 aarch64_handle_attr_branch_protection,
4875 accepted_branch_protection_string,
4876 aarch64_pac_ret_subtypes,
4877 aarch64_branch_protect_types,
4878 aarch64_handle_pac_ret_leaf): Define.
4879 (aarch64_override_options_after_change_1, aarch64_override_options):
4880 Add check for accepted_branch_protection_string.
4881 (aarch64_option_save): Save accepted_branch_protection_string.
4882 (aarch64_option_restore): Save accepted_branch_protection_string.
4883 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
4884 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
4885 msign-return-address.
4886 * doc/invoke.texi: Add mbranch-protection.
4888 2019-01-08 Alan Modra <amodra@gmail.com>
4891 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
4892 Delete "unknownp" parameter. Adjust callers. Handle
4893 CONST_INT, PLUS, MINUS, and MULT.
4894 (attr_value_aligned): Renamed from or_attr_value.
4895 (min_attr_value): Return INT_MIN for unhandled rtl case..
4896 (min_fn): ..and translate to INT_MAX here.
4897 (write_length_unit_log): Modify to cope without "unknown".
4898 (write_attr_value): Handle IF_THEN_ELSE.
4900 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4902 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
4903 optimization for masked stores.
4905 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4908 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
4909 output vector directly to duplicate_and_interleave instead of
4910 going through a temporary. Postpone insertion of ctor_seq to
4911 the end of the loop.
4913 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
4916 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
4917 unsigned_p. Handle signed and unsigned overflow correction as
4919 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
4921 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
4923 (add<mode>3_compareV_imm): Make this callable for expanding.
4924 (subv<GPI:mode>4): Use register_operand for operand 1. Use
4925 aarch64_plus_operand for operand 2.
4926 (subv<GPI:mode>_insn): New insn pattern.
4927 (subv<GPI:mode>_imm): Likewise.
4928 (negv<GPI:mode>3): New expand pattern.
4929 (negv<GPI:mode>_insn): New insn pattern.
4930 (negv<GPI:mode>_cmp_only): Likewise.
4931 (cmpv<GPI:mode>_insn): Likewise.
4932 (subvti4): Use register_operand for operand 1. Update call to
4933 aarch64_expand_subvti.
4934 (usubvti4): Likewise.
4935 (negvti3): New expand pattern.
4936 (negdi_carryout): New insn pattern.
4937 (negvdi_carryinV): New insn pattern.
4938 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
4939 version the named version.
4940 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
4942 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
4944 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
4946 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
4947 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
4948 (sub<mode>3_carryinCV): Delete.
4949 (sub<GPI:mode>3_carryinV): New expand pattern.
4950 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
4952 2019-01-07 Richard Biener <rguenther@suse.de>
4954 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
4955 of tree_operand_hash.
4957 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4959 PR tree-optimization/88598
4960 * tree.h (single_nonzero_element): Declare.
4961 * tree.c (single_nonzero_element): New function.
4962 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
4963 if I is the only nonzero element of CST.
4965 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4967 PR tree-optimization/88598
4968 * tree.h (initializer_each_zero_or_onep): Declare.
4969 * tree.c (initializer_each_zero_or_onep): New function.
4970 (signed_or_unsigned_type_for): Handle float types too.
4971 (unsigned_type_for, signed_type_for): Update comments accordingly.
4972 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
4973 x & { 0 or -1, 0 or -1, ... }.
4975 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
4977 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
4978 with x86_64-pc-linux-gnu.
4980 2019-01-07 Tom de Vries <tdevries@suse.de>
4983 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
4985 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
4988 2019-01-07 Jakub Jelinek <jakub@redhat.com>
4990 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
4991 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
4992 TARGET_AVX512F as condition.
4995 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
4996 const_not_ok_for_debug_p target hook.
4997 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
4998 on UNSPEC and subexpressions thereof if all subexpressions of the
4999 UNSPEC are CONSTANT_P.
5001 PR tree-optimization/88676
5002 * tree-ssa-phiopt.c (two_value_replacement): New function.
5003 (tree_ssa_phiopt_worker): Call it.
5006 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
5007 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
5010 * tree-vect-generic.c: Include insn-config.h and recog.h.
5011 (expand_vector_piecewise): Add defaulted ret_type argument,
5012 if non-NULL, use that in preference to type for the result type.
5013 (expand_vector_parallel): Formatting fix.
5014 (do_vec_conversion, do_vec_narrowing_conversion,
5015 expand_vector_conversion): New functions.
5016 (expand_vector_operations_1): Call expand_vector_conversion
5017 for VEC_CONVERT ifn calls.
5018 * internal-fn.def (VEC_CONVERT): New internal function.
5019 * internal-fn.c (expand_VEC_CONVERT): New function.
5020 * fold-const-call.c (fold_const_vec_convert): New function.
5021 (fold_const_call): Use it for CFN_VEC_CONVERT.
5022 * doc/extend.texi (__builtin_convertvector): Document.
5024 2019-01-07 Tom de Vries <tdevries@suse.de>
5026 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
5027 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
5028 vector_red_partition, vector_red_sym): New global variables.
5029 (nvptx_option_override): Initialize vector_red_sym.
5030 (nvptx_declare_function_name): Restore red_partition register.
5031 (nvptx_file_end): Emit code to declare the vector reduction variables.
5032 (nvptx_output_red_partition): New function.
5033 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
5034 large vector reductions.
5035 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
5036 (nvptx_init_builtins): Add VECTOR_ADDR.
5037 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
5038 Handle nvptx_expand_shared_addr.
5039 (nvptx_get_shared_red_addr): Add vector argument and handle large
5041 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
5043 (nvptx_goacc_reduction_init): Likewise.
5044 (nvptx_goacc_reduction_fini): Likewise.
5045 (nvptx_goacc_reduction_teardown): Likewise.
5046 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
5047 init,fini,teardown}.
5048 (nvptx_init_axis_predicate): Initialize vector_red_partition.
5049 (nvptx_set_current_function): Init vector_red_partition.
5050 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
5051 (nvptx_red_partition): New insn.
5052 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
5054 2019-01-07 Tom de Vries <tdevries@suse.de>
5057 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
5060 2019-01-07 Tom de Vries <tdevries@suse.de>
5062 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
5063 (nvptx_option_override): Init oacc_bcast_partition.
5064 (nvptx_init_oacc_workers): New function.
5065 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
5066 (nvptx_needs_shared_bcast): New function.
5067 (nvptx_find_par): Generalize to enable vectors to use shared-memory
5069 (nvptx_shared_propagate): Initialize vector bcast partition and
5070 synchronization state.
5071 (nvptx_single): Generalize to enable vectors to use shared-memory
5073 (nvptx_process_pars): Likewise.
5074 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
5075 * config/nvptx/nvptx.h (struct machine_function): Add
5076 bcast_partition and sync_bar members.
5078 2019-01-07 Tom de Vries <tdevries@suse.de>
5080 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
5081 (nvptx_apply_dim_limits): New function.
5082 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
5085 2019-01-07 Tom de Vries <tdevries@suse.de>
5087 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
5088 as late as possible.
5090 2019-01-07 Tom de Vries <tdevries@suse.de>
5092 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
5093 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
5094 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
5095 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
5096 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
5098 2019-01-07 Tom de Vries <tdevries@suse.de>
5100 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
5102 2019-01-07 Tom de Vries <tdevries@suse.de>
5104 * omp-offload.c (oacc_get_min_dim): New function.
5105 * omp-offload.h (oacc_get_min_dim): Declare.
5107 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
5110 * config/i386/i386.c (function_value_ms_64): Return small sturct in
5111 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
5113 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5117 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
5119 * ipa-inline.c (edge_badness): Use inlined_time instead of
5120 inline_summaries->get.
5122 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5124 * opts.c (enable_fdo_optimizations): Enable
5125 version-loops-for-strides, loop-interchange, unrol-and-jam
5126 and tree-loop-distribution.
5127 * invoke.texi: Document newly enabled options.
5129 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5131 * doc/invoke.texi (max-inline-insns-small): New parameters.
5132 * ipa-inline.c (want_early_inline_function_p): simplify.
5133 (want_inline_small_function_p): Fix pasto from previous patch;
5134 use max-inline-insns-small bound.
5135 * params.def (max-inline-insns-small): New param.
5136 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
5137 variables correctly.
5139 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5141 * doc/invoke.texi: Document max-inline-insns-size,
5142 uninlined-function-insns, uninlined-function-time,
5143 uninlined-thunk-insns and uninlined-thunk-time.
5144 * params.def: Add max-inline-insns-size,
5145 uninlined-function-insns, uninlined-function-time,
5146 uninlined-thunk-insns and uninlined-thunk-time.
5147 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
5149 * ipa-inline.c (can_inline_edge_by_limits_p,
5150 want_inline_small_function_p): Use new parameters.
5152 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5154 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
5156 2019-01-05 Jakub Jelinek <jakub@redhat.com>
5160 * expr.c (expand_assignment): For calls returning VLA structures
5161 if to_rtx is not a MEM, force it into a stack temporary.
5164 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
5165 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
5166 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
5167 subexpressions of both operands.
5168 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
5169 subrtxes are CONSTANT_P.
5170 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
5173 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
5175 * params.def (hot-bb-count-ws-permille): Set to 990.
5177 2019-01-04 Martin Sebor <msebor@redhat.com>
5180 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
5183 2019-01-04 Martin Sebor <msebor@redhat.com>
5186 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
5188 2019-01-04 Jakub Jelinek <jakub@redhat.com>
5190 * gdbinit.in: Turn off pagination for the skip commands, restore
5191 it to previous state afterwards.
5193 2019-01-04 Jakub Jelinek <jakub@redhat.com>
5196 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
5197 of GET_MODE (opN) as modes of the libcall arguments.
5199 2019-01-04 Jan Beulich <jbeulich@suse.com>
5201 * config/i386/sse.md
5202 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
5203 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
5204 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
5205 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
5206 avx512f_vmcmp<mode>3<round_saeonly_name>,
5207 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
5208 avx512f_maskcmp<mode>3,
5209 <avx512>_cvt<ssemodesuffix>2mask<mode>,
5210 <avx512>_cvt<ssemodesuffix>2mask<mode>,
5211 *<avx512>_cvtmask2<ssemodesuffix><mode>,
5212 *<avx512>_cvtmask2<ssemodesuffix><mode>,
5213 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
5214 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
5215 <avx512>_gt<mode>3<mask_scalar_merge_name>,
5216 <avx512>_gt<mode>3<mask_scalar_merge_name>,
5217 <avx512>_testm<mode>3<mask_scalar_merge_name>,
5218 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
5219 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
5220 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
5221 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
5222 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
5223 avx512cd_maskb_vec_dup<mode>,
5224 avx512cd_maskw_vec_dup<mode>,
5225 avx512dq_fpclass<mode><mask_scalar_merge_name>,
5226 avx512dq_vmfpclass<mode>,
5227 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
5230 2019-01-03 Martin Sebor <msebor@redhat.com>
5232 PR tree-optimization/88659
5233 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
5235 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
5237 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
5238 unaligned vsx and avoid lxvd2x/stxvd2x.
5239 (gen_lvx_v4si_move): New function.
5241 2019-01-03 Tom de Vries <tdevries@suse.de>
5243 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
5244 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
5246 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
5248 2019-01-03 Tom de Vries <tdevries@suse.de>
5250 * config/nvptx/nvptx.c (struct offload_attrs): New.
5251 (populate_offload_attrs): New function. Factor mask extraction out of
5252 nvptx_reorg. Add extraction of dimensions.
5253 (nvptx_reorg): Use populate_offload_attrs.
5255 2019-01-03 Tom de Vries <tdevries@suse.de>
5257 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
5258 cases for oacc_min_dims_p and routine_p. Add asserts for
5259 oacc_default_dims_p and offload_region_p.
5261 2019-01-03 Tom de Vries <tdevries@suse.de>
5263 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
5265 (nvptx_goacc_validate_dims): ... here.
5267 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
5269 PR tree-optimization/85574
5270 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
5272 (struct ssa_equip_hash_traits): Declare.
5273 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
5275 2019-01-03 Jakub Jelinek <jakub@redhat.com>
5278 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
5279 change it to qualified_type.
5281 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
5283 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
5284 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
5286 2019-01-02 Martin Sebor <msebor@redhat.com>
5287 Jeff Law <law@redhat.com>
5289 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
5290 (get_range_strlen_tree): Update appropriately.
5292 * gimple-fold.h (get_range_strlen): Drop unused last argument.
5294 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
5295 rather than set_range_info.
5296 * tree-ssa-strlen.c (set_strlen_range): Extracted from
5297 maybe_set_strlen_range. Handle potentially boundary crossing
5298 cases more conservatively.
5299 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
5300 Call set_strlen_range.
5301 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
5304 * gimple-fold.c (get_range_strlen): Update prototype to no longer
5305 need the flexp argument.
5306 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
5307 from calls to get_range_strlen. Update comments. Just update
5308 VAL for an unterminated const char array and let the reset of the
5309 code handle it normally. No longer try to set *flexp. Adjust
5311 (get_range_strlen): Update for the new get_range_strlen API.
5312 (get_maxval_strlen): Similarly.
5313 (gimple_fold_builtin_strlen): Handle update meaning of return value
5314 from get_range_strlen.
5315 * gimple-ssa-sprintf.c (get_string_length): Update for the new
5316 get_range_strlen API.
5318 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
5321 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
5322 false at WPA time when body was removed.
5324 2019-01-02 Martin Liska <mliska@suse.cz>
5326 PR tree-optimization/88650
5327 * predict.c (set_even_probabilities): Calculate probability
5328 remainer only when really used.
5330 2019-01-02 Richard Biener <rguenther@suse.de>
5333 * tree-data-ref.c (analyze_subscript_affine_affine): Use
5334 widest_ints when mangling max_stmt_execution results.
5336 2019-01-02 Richard Biener <rguenther@suse.de>
5338 PR tree-optimization/88621
5339 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
5340 bitfields when canoncalizing.
5342 2019-01-02 Richard Biener <rguenther@suse.de>
5345 * config/i386/x86-tune-costs.h (intel_cost): Adjust
5346 cost of cheap SSE instruction.
5348 2019-01-02 Richard Biener <rguenther@suse.de>
5351 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
5352 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
5354 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
5355 set after UIDs before splitting them.
5357 2019-01-01 Martin Sebor <msebor@redhat.com>
5358 Jeff Law <law@redhat.com>
5360 * gimple-fold.c (get_range_strlen_tree): Record if the computed
5361 length is optimistic. If it is, then arrange to compute the
5362 conservative length as well.
5364 * gimple-fold.h (get_range_strlen): Update prototype.
5365 * builtins.c (check_access): Update call to get_range_strlen to use
5366 c_strlen_data pointer. Change various variable accesses to instead
5367 pull data from the c_strlen_data structure.
5368 (check_strncat_sizes, expand_builtin_strncat): Likewise.
5369 * calls.c (maybe_warn_nonstring_arg): Likewise.
5370 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
5371 minimum length if maximum lengh is unknown.
5372 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
5373 that used c_strlen, it's no longer needed. Restructure slightly.
5374 (format_string): Set unlikely range appropriately.
5375 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
5377 (get_range_strlen): Accept c_strlen_data pointer for external
5378 call sites as well. Pass through to call to internal get_range_strlen.
5379 Adjust minlen, maxlen and maxbound as needed.
5380 (get_maxval_strlen): Update comments.
5381 (gimple_fold_builtin_strlen): Update call to get_range_strlen
5382 to use c_strlen_data pointer. Change variable accesses to instead
5383 use c_strlen_data data members.
5385 * gimple-fold.c (get_range_strlen): Update prototype.
5386 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
5387 local variables. Use pdata to return information to caller.
5388 Update calls to get_range_strlen. Update pdata->maxbound.
5389 (get_range_strlen -- static version): Similarly.
5390 (get_range_strlen -- extern version): Update for internal
5391 get_range_strlen API change. Convert to external data format.
5392 (get_maxval_strlen): Similarly.
5394 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
5396 * coverage.c (get_coverage_counts): Use current_function_decl.
5397 * profile.c (read_thunk_profile): New function.
5398 (branch_prob): Add THUNK parameter.
5399 * tree-profile.c (tree_profiling): Handle thunks.
5400 * value-prof.c (init_node_map): Handle thunks.
5401 * value-prof.h (branch_prob): Upate prototype.
5402 (read_thunk_profile): Declare.
5404 2019-01-01 Jakub Jelinek <jakub@redhat.com>
5406 Update copyright years.
5408 * gcc.c (process_command): Update copyright notice dates.
5409 * gcov-dump.c (print_version): Ditto.
5410 * gcov.c (print_version): Ditto.
5411 * gcov-tool.c (print_version): Ditto.
5412 * gengtype.c (create_file): Ditto.
5413 * doc/cpp.texi: Bump @copying's copyright year.
5414 * doc/cppinternals.texi: Ditto.
5415 * doc/gcc.texi: Ditto.
5416 * doc/gccint.texi: Ditto.
5417 * doc/gcov.texi: Ditto.
5418 * doc/install.texi: Ditto.
5419 * doc/invoke.texi: Ditto.
5421 Copyright (C) 2019 Free Software Foundation, Inc.
5423 Copying and distribution of this file, with or without modification,
5424 are permitted in any medium without royalty provided the copyright
5425 notice and this notice are preserved.