1 2019-03-21 Jakub Jelinek <jakub@redhat.com>
3 * hash-table.h (hash_table): Add Lazy template parameter defaulted
4 to false, if true, don't alloc_entries during construction, but defer
5 it to the first method that needs m_entries allocated.
6 (hash_table::hash_table, hash_table::~hash_table,
7 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
8 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
9 hash_table::clear_slot, hash_table::traverse_noresize,
10 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
11 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
13 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
14 NO_INSERT instead of find_with_hash.
15 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
16 hash_set::m_table): Add Lazy to template params of hash_table.
17 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
18 * attribs.c (test_attribute_exclusions): Likewise.
19 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
20 hash_set. Add tests for hash_set with Lazy = true.
22 2019-03-21 Richard Biener <rguenther@suse.de>
24 PR tree-optimization/89779
25 * tree.c (tree_nop_conversion): Consolidate and fix defensive
26 checks with respect to released SSA names now having error_mark_node
28 * fold-const.c (operand_equal_p): Likewise.
30 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
33 * config/s390/s390.c (global_not_special_regno_p): Move to make it
35 (s390_optimize_register_info): Use global_not_special_regno_p to
36 check for global regs.
38 2019-03-20 Jakub Jelinek <jakub@redhat.com>
41 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
42 update this_alternative nor this_alternative_set.
44 2019-03-19 Jim Wilson <jimw@sifive.com>
47 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
48 align, size, offset. Use them to handle a BLKmode reference. Update
50 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
52 2019-03-19 Jakub Jelinek <jakub@redhat.com>
54 PR rtl-optimization/89768
55 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
57 (unroll_loop_runtime_iterations): Likewise.
59 2019-03-19 Martin Sebor <msebor@redhat.com>
61 PR tree-optimization/89644
62 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
63 rather than endptr as an indicator of nul-termination.
65 PR tree-optimization/89644
66 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
67 arrays in determining sequence sizes in strncpy and stpncpy.
69 2019-03-19 Martin Liska <mliska@suse.cz>
72 * predict.c (combine_predictions_for_bb): Empty likely_edges and
73 unlikely_edges if there's an edge that belongs to both these sets.
75 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
78 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
79 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
80 go via a stack temporary.
82 2019-03-19 Jakub Jelinek <jakub@redhat.com>
85 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
86 instead of gen_rtx_SUBREG.
87 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
89 2019-03-19 Richard Biener <rguenther@suse.de>
92 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
94 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
98 * tree.c (free_lang_data_in_decl): Do not free context of C++
101 2019-03-19 Jakub Jelinek <jakub@redhat.com>
104 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
105 subs for the first alternative except when operands[3] is 1.
108 * gimplify.c (gimplify_asm_expr): For output argument with
109 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
112 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
114 PR rtl-optimization/89753
115 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
116 explicit unrolling factor even more robust.
118 2019-03-19 Jakub Jelinek <jakub@redhat.com>
121 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
122 compensation use x2 += 1 instead of x2 -= -1 and when honoring
123 signed zeros, do another copysign after the compensation.
125 2019-03-18 Martin Sebor <msebor@redhat.com>
127 PR tree-optimization/89720
128 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
129 more conservatively, the same as anti-range.
131 2019-03-18 Richard Biener <rguenther@suse.de>
134 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
135 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
136 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
137 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
139 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
141 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
142 Extend queue to 1024 entries.
143 Add "consumed" field.
144 (gomp_print_output): Remove print_index parameter.
146 Change limit to unsigned.
147 Use consumed field to implement circular buffer.
148 Detect interrupted print in final pass.
149 Flush output at the end.
150 (run): Update gomp_print_output usage.
151 (main): Initialize kernargs->output_data.consumed.
153 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
155 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
156 calculation of the minimum number of scalar iterations for
157 fully-predicated loops.
159 2019-03-18 Martin Jambor <mjambor@suse.cz>
161 PR tree-optimization/89546
162 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
163 any propagation to its children took place.
165 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
168 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
169 parameter, and make use of it.
170 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
172 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
174 * config/arc/arc.opt (mcode-density-frame): Get the inital value
175 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
176 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
177 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
178 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
179 match what the ops is doing.
180 (push_multi_fp_blink): Likewise.
181 * config/arc/arc.c (arc_override_options): Enable enter/leave when
182 compiling for size and elf target.
183 (arc_save_callee_enter): Adjust note to match what enter/leave
186 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
188 * config/arc/arc.md (tst_movb): Fix constraint.
190 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
192 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
194 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
196 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
197 * config/arc/arc.c (arc_conditional_register_usage): Remove all
198 reg_alloc_order references.
199 (size_alloc_order): Define.
200 (arc_adjust_reg_alloc_order): New function.
201 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
203 (ADJUST_REG_ALLOC_ORDER): Define.
204 (HONOR_REG_ALLOC_ORDER): Likewise.
206 2019-03-18 Richard Biener <rguenther@suse.de>
209 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
210 loads and stores a bit more.
212 2019-03-18 Richard Biener <rguenther@suse.de>
215 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
216 load pessimization to stores as well.
218 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
221 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
222 successor, use NULL as its av set.
224 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
226 PR rtl-optimization/89721
227 * lra-constraints (invariant_p): Return false if side_effects_p holds.
229 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
232 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
233 When handling vec_extract, use modular arithmetic to allow
234 constant selectors greater than vector length.
235 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
236 V1TImode vectors to have constant selector values greater than 0.
237 Use modular arithmetic to compute vector index.
238 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
239 index for in-memory vectors. Correct code generation for
241 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
244 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
248 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
251 2019-03-15 Jakub Jelinek <jakub@redhat.com>
254 * tree.c (inchash::add_expr): Strip any location wrappers.
255 * fold-const.c (operand_equal_p): Move stripping of location wrapper
256 after hash verification.
259 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
260 SIGN_EXTEND and ZERO_EXTEND.
262 2019-03-14 Jason Merrill <jason@redhat.com>
263 Jakub Jelinek <jakub@redhat.com>
265 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
266 than if is_empty (*slot).
267 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
268 existing elt and for elt removal.
269 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
270 of already removed elt.
272 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
275 * config/i386/i386.c (remove_partial_avx_dependency): Handle
278 2019-03-14 Martin Liska <mliska@suse.cz>
281 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
283 2019-03-14 Richard Biener <rguenther@suse.de>
286 * config/i386/i386.c (make_resolver_func): Properly set
287 DECL_CONTEXT on the RESULT_DECL.
288 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
290 2019-03-14 Richard Biener <rguenther@suse.de>
292 * gimple-pretty-print.c: Include cfgloop.h.
293 (dump_gimple_phi): Adjust.
294 (dump_gimple_bb_header): Dump loop header for GIMPLE.
295 (pp_cfg_jump): Adjust.
296 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
297 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
298 (lower_phi_internal_fn): Remove.
299 (verify_gimple_call): Remove IFN_PHI special-casing.
300 (dump_function_to_file): Dump IL state.
301 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
302 done to deal with PHI nodes being present in non-SSA state.
304 2019-03-14 Jakub Jelinek <jakub@redhat.com>
307 * multiple_target.c (create_dispatcher_calls): Change
308 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
309 In the node->iterate_referring loop, push *ref rather than ref, call
310 ref->remove_reference () and always pass 0 to iterate_referring.
312 PR rtl-optimization/89679
313 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
314 would contain a paradoxical SUBREG.
316 2019-03-14 Richard Biener <rguenther@suse.de>
318 PR tree-optimization/89710
319 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
322 2019-03-14 Martin Liska <mliska@suse.cz>
324 * coverage.c (coverage_begin_function): Stream also
326 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
327 documentation about function declaration location.
328 * gcov-dump.c (tag_function): Print whole range
329 of function declaration.
330 * gcov.c (struct function_info): Add end_column field.
331 (function_info::function_info): Initialize it.
332 (output_json_intermediate_file): Output {start,end}_column
334 (read_graph_file): Read end_column.
336 2019-03-14 Richard Biener <rguenther@suse.de>
339 * fold-const.c (operand_equal_p): For INDIRECT_REF check
340 that the access types are similar.
342 2019-03-14 Jakub Jelinek <jakub@redhat.com>
344 PR tree-optimization/89703
345 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
346 aren't compatible also with builtin_decl_explicit. Check pure
347 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
348 and BUILT_IN_STPNCPY{,_CHK}.
350 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
353 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
354 addr32 prefix to VSIB address for X32.
355 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
357 (*avx512pf_gatherpf<mode>df_mask): Likewise.
358 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
359 (*avx512pf_scatterpf<mode>df_mask): Likewise.
360 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
361 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
362 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
363 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
364 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
365 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
366 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
367 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
368 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
369 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
370 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
371 (*avx512f_scatterdi<mode>): Likewise.
373 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
376 * lra-constraints.c (inherit_in_ebb): Update
377 potential_reload_hard_regs along with live_hard_regs.
379 2019-03-13 Jakub Jelinek <jakub@redhat.com>
382 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
384 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
386 2019-03-13 Martin Sebor <msebor@redhat.com>
388 PR tree-optimization/89662
389 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
392 2019-03-13 Richard Biener <rguenther@suse.de>
395 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
396 throw FP expressions at tree-affine.
398 2019-03-14 Richard Biener <rguenther@suse.de>
400 * tree-pretty-print.c (dump_generic_node): For -gimple properly
401 dump negative integer constants using _Literal (type) -num.
403 2019-03-13 Jakub Jelinek <jakub@redhat.com>
405 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
406 nonlocal_value member.
409 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
410 (ipa_simd_modify_function_body): Handle PHIs.
412 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
414 * config/s390/s390.c (s390_option_override_internal): Use more
415 aggressive inlining parameters.
417 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
419 * config/s390/3906.md: New file.
420 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
421 (LONGRUNNING_THRESHOLD): Remove.
422 (MAX_SCHED_MIX_SCORE): Decrease.
423 (MAX_SCHED_MIX_DISTANCE): Decrease.
424 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
425 (struct s390_sched_state): New struct to hold scheduling state.
426 (S390_SCHED_STATE_NORMAL): Remove.
427 (S390_SCHED_STATE_CRACKED): Remove.
428 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
429 (s390_get_sched_attrmask): Use new attribute.
430 (s390_get_unit_mask): Use new units.
431 (s390_is_fpd): New function.
432 (s390_is_fxd): New function.
433 (s390_is_longrunning): New function.
434 (s390_sched_score): Use new functions.
435 (s390_sched_reorder): Likewise.
436 (s390_sched_variable_issue): Rework and use new functions.
437 (s390_sched_init): Use new functions.
438 * config/s390/s390.h (s390_tune_attr): Add z14.
439 * config/s390/s390.md: Add z14.
441 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
443 * config/s390/2964.md: Update pipeline description.
444 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
445 (LONGRUNNING_THRESHOLD): Remove.
446 (LATENCY_FACTOR): Remove.
447 (s390_get_unit_mask): Add unit.
448 (s390_sched_score): Use fxd/fpd.
449 (s390_sched_variable_issue): Use fxd/fpd.
451 2019-03-12 Martin Liska <mliska@suse.cz>
453 * config/i386/i386.c: Reword an error message.
455 2019-03-12 Martin Jambor <mjambor@suse.cz>
457 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
458 terminate with newline.
460 2019-03-12 Jakub Jelinek <jakub@redhat.com>
463 * config/s390/s390.md (tabort): Use %wd instead of
464 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
466 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
467 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
471 * builtins.c (expand_builtin_int_roundingfn,
472 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
473 gcc_unreachable if validate_arglist fails.
475 2019-03-12 Richard Biener <rguenther@suse.de>
477 PR tree-optimization/89664
478 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
479 free the occurance tree after the early out.
481 2019-03-11 Jakub Jelinek <jakub@redhat.com>
485 * vr-values.c (vr_values::update_value_range): If
486 old_vr->varying_p (), don't update it, make new_vr also VARYING
489 2019-03-11 Martin Liska <mliska@suse.cz>
491 * config/aarch64/aarch64.c (aarch64_override_options_internal):
492 Fix double string quoting.
494 2019-03-11 Martin Liska <mliska@suse.cz>
496 * collect-utils.c (collect_wait): Wrap apostrophes
497 in gcc internal format with %'.
498 * collect2.c (main): Likewise.
499 (scan_prog_file): Likewise.
500 (scan_libraries): Likewise.
501 * config/i386/i386.c (ix86_expand_call): Likewise.
502 (ix86_handle_interrupt_attribute): Likewise.
503 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
504 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
505 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
506 * lto-wrapper.c (find_crtoffloadtable): Likewise.
507 * symtab.c (symtab_node::verify_base): Likewise.
508 * tree-cfg.c (verify_gimple_label): Likewise.
509 * tree.c (verify_type_variant): Likewise.
511 2019-03-11 Martin Liska <mliska@suse.cz>
513 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
514 in a string format message and fix GNU coding style.
515 (expand_builtin_set_thread_pointer): Likewise.
516 * common/config/aarch64/aarch64-common.c (aarch64_rewrite_selected_cpu): Likewise.
517 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
518 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
519 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
520 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
521 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
522 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
523 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
524 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
525 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
526 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option): Likewise.
527 * common/config/riscv/riscv-common.c (riscv_subset_list::parsing_subset_version): Likewise.
528 (riscv_subset_list::parse_std_ext): Likewise.
529 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
530 (riscv_subset_list::parse): Likewise.
531 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
532 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
533 (aarch64_override_options_internal): Likewise.
534 (aarch64_validate_mcpu): Likewise.
535 (aarch64_validate_march): Likewise.
536 (aarch64_validate_mtune): Likewise.
537 (aarch64_override_options): Likewise.
538 * config/alpha/alpha.c (alpha_option_override): Likewise.
539 * config/arc/arc.c (arc_init): Likewise.
540 (parse_mrgf_banked_regs_option): Likewise.
541 (arc_override_options): Likewise.
542 (arc_expand_builtin_aligned): Likewise.
543 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
544 (arm_expand_builtin): Likewise.
545 * config/arm/arm.c (arm_option_check_internal): Likewise.
546 (arm_configure_build_target): Likewise.
547 (arm_option_override): Likewise.
548 (arm_options_perform_arch_sanity_checks): Likewise.
549 (arm_handle_cmse_nonsecure_entry): Likewise.
550 (arm_handle_cmse_nonsecure_call): Likewise.
551 (arm_tls_referenced_p): Likewise.
552 (thumb1_expand_prologue): Likewise.
553 * config/avr/avr.c (avr_option_override): Likewise.
554 * config/bfin/bfin.c (bfin_option_override): Likewise.
555 * config/c6x/c6x.c (c6x_option_override): Likewise.
556 * config/cr16/cr16.c (cr16_override_options): Likewise.
557 * config/cris/cris.c (cris_option_override): Likewise.
558 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
559 * config/darwin-c.c (macosx_version_as_macro): Likewise.
560 * config/darwin.c (darwin_override_options): Likewise.
561 * config/frv/frv.c (frv_expand_builtin): Likewise.
562 * config/h8300/h8300.c (h8300_option_override): Likewise.
563 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
564 (ix86_option_override_internal): Likewise.
565 (warn_once_call_ms2sysv_xlogues): Likewise.
566 (ix86_expand_prologue): Likewise.
567 (split_stack_prologue_scratch_regno): Likewise.
568 (ix86_warn_parameter_passing_abi): Likewise.
569 * config/ia64/ia64.c (fix_range): Likewise.
570 * config/m68k/m68k.c (m68k_option_override): Likewise.
571 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
572 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
573 (mips_set_compression_mode): Likewise.
574 * config/mmix/mmix.c (mmix_option_override): Likewise.
575 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
576 * config/msp430/msp430.c (msp430_option_override): Likewise.
577 * config/nds32/nds32.c (nds32_option_override): Likewise.
578 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
579 (nios2_option_override): Likewise.
580 (nios2_expand_custom_builtin): Likewise.
581 * config/nvptx/mkoffload.c (main): Likewise.
582 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
583 * config/pa/pa.c (fix_range): Likewise.
584 (pa_option_override): Likewise.
585 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
586 (riscv_option_override): Likewise.
587 * config/rl78/rl78.c (rl78_option_override): Likewise.
588 * config/rs6000/aix61.h: Likewise.
589 * config/rs6000/aix71.h: Likewise.
590 * config/rs6000/aix72.h: Likewise.
591 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
592 * config/rs6000/freebsd64.h: Likewise.
593 * config/rs6000/linux64.h: Likewise.
594 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
595 (rs6000_expand_zeroop_builtin): Likewise.
596 (rs6000_expand_mtfsb_builtin): Likewise.
597 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
598 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
599 (rs6000_invalid_builtin): Likewise.
600 (rs6000_expand_split_stack_prologue): Likewise.
601 * config/rs6000/rtems.h: Likewise.
602 * config/rx/rx.c (valid_psw_flag): Likewise.
603 (rx_expand_builtin): Likewise.
604 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
605 * config/s390/s390.c (s390_expand_builtin): Likewise.
606 (s390_function_profiler): Likewise.
607 (s390_option_override_internal): Likewise.
608 (s390_option_override): Likewise.
609 * config/sh/sh.c (sh_option_override): Likewise.
610 (sh_builtin_saveregs): Likewise.
611 (sh_fix_range): Likewise.
612 * config/sh/vxworks.h: Likewise.
613 * config/sparc/sparc.c (sparc_option_override): Likewise.
614 * config/spu/spu.c (spu_option_override): Likewise.
615 (fix_range): Likewise.
616 * config/visium/visium.c (visium_option_override): Likewise.
617 (visium_handle_interrupt_attr): Likewise.
618 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
619 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
620 (dbg_cnt_process_opt): Likewise.
621 * dwarf2out.c (output_dwarf_version): Likewise.
622 * except.c (expand_eh_return): Likewise.
623 * gcc.c (defined): Likewise.
624 (driver_handle_option): Likewise.
625 (process_command): Likewise.
626 (compare_files): Likewise.
627 (driver::prepare_infiles): Likewise.
628 (driver::do_spec_on_infiles): Likewise.
629 (driver::maybe_run_linker): Likewise.
630 * omp-offload.c (oacc_parse_default_dims): Likewise.
631 * opts-global.c (handle_common_deferred_options): Likewise.
632 * opts.c (parse_sanitizer_options): Likewise.
633 (common_handle_option): Likewise.
634 (enable_warning_as_error): Likewise.
635 * passes.c (enable_disable_pass): Likewise.
636 * plugin.c (parse_plugin_arg_opt): Likewise.
637 (default_plugin_dir_name): Likewise.
638 * targhooks.c (default_expand_builtin_saveregs): Likewise.
639 (default_pch_valid_p): Likewise.
640 * toplev.c (init_asm_output): Likewise.
641 (process_options): Likewise.
642 (toplev::run_self_tests): Likewise.
643 * tree-cfg.c (verify_gimple_call): Likewise.
644 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
645 (tree_inlinable_function_p): Likewise.
646 * var-tracking.c (vt_find_locations): Likewise.
648 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
650 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
651 only on the else branch.
653 2019-03-11 Martin Liska <mliska@suse.cz>
655 * gcov.c (output_intermediate_json_line): Print function
657 (output_json_intermediate_file): Add new argument.
658 * doc/gcov.texi: Document the change.
660 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
662 PR rtl-optimization/89588
663 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
664 explicit unrolling factor more robust.
666 2019-03-11 Richard Biener <rguenther@suse.de>
668 PR tree-optimization/89649
669 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
670 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
671 on the prolog and epilog loops.
672 (vect_loop_versioning): Return copy of loop.
673 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
674 on the non-vectorized version of the loop.
676 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
679 * config/i386/sse.md (*vec_extractv2di_0_sse):
680 Add (=r,x) alternative and corresponding splitter.
682 2019-03-10 Martin Jambor <mjambor@suse.cz>
684 PR tree-optimization/85762
685 PR tree-optimization/87008
686 PR tree-optimization/85459
687 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
688 it points to if there is a type changing MEM_REF. Adjust all callers.
689 (build_accesses_from_assign): Disable total scalarization if
690 contains_vce_or_bfcref_p returns true through the new parameter, for
693 2019-03-09 Jakub Jelinek <jakub@redhat.com>
696 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
697 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
700 * common.opt (fdiagnostics-show-labels,
701 fdiagnostics-show-line-numbers, fdiagnostics-format=,
702 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
703 gas-locview-support, ginline-points, ginternal-reset-location-views):
704 Terminate description text with a dot.
705 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
706 * config/mcore/mcore.opt (m210, m340): Likewise.
707 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
708 mnops=): Start description text with a capital letter.
709 * config/arc/arc.opt (msize-level=): Likewise.
710 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
711 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
713 * config/ft32/ft32.opt (msim): Likewise.
714 (mft32b, mcompress): Likewise. Terminate description text with a dot.
715 (mnodiv, mnopm): Terminate description text with a dot.
716 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
718 * config/i386/i386.opt (prefer_vector_width, instrument_return):
720 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
723 PR rtl-optimization/89634
724 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
725 are modified in BB_END (e->src) instruction.
727 2019-03-08 David Malcolm <dmalcolm@redhat.com>
730 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
731 messages more amenable to translation, and improve wording.
733 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
735 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
736 ud- and du-chains between phases.
738 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
741 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
742 instead of POLY_INT_CST.
744 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
746 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
749 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
754 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
755 (_mm_storeu_si64): Ditto.
757 2019-03-08 Martin Liska <mliska@suse.cz>
760 * config/i386/i386.c (ix86_option_override_internal): Disable
761 jump tables when retpolines are used.
763 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
766 * ipa-split.c (execute_split_functions): Do not split
767 'noinline' or 'section' function.
769 2019-03-08 Jakub Jelinek <jakub@redhat.com>
772 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
773 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
774 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
777 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
778 from diagnostics. Formatting fixes.
781 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
782 warn_odr diagnostics.
785 * lra-constraints.c (process_alt_operands): Avoid one space before
786 " at the end of line and another after " on another line in a string
788 * attribs.c (handle_dll_attribute): Likewise.
789 * config/avr/avr-devices.c (avr_texinfo): Likewise.
791 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
792 warning_at or inform messages in G_() if there is no ?:.
794 PR tree-optimization/89550
795 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
796 returned true. Formatting fixes.
797 (expand_builtin_strnlen): Formatting fixes.
798 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
799 if warning_at returned true.
800 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
802 2019-03-08 Richard Biener <rguenther@suse.de>
805 * cfgloop.h (struct loop): Add owned_clique field.
806 * cfgloopmanip.c (copy_loop_info): Copy it.
807 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
809 * tree-inline.c (copy_loops): Remap owned_clique.
810 * lto-streamer-in.c (input_cfg): Stream owned_clique.
811 * lto-streamer-out.c (output_cfg): Likewise.
813 2019-03-08 Jakub Jelinek <jakub@redhat.com>
816 * config/darwin.c: Include intl.h.
817 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
818 composing the message out of two separate parts.
820 2019-03-07 Jakub Jelinek <jakub@redhat.com>
823 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
824 doesn't start with a capital letter and doesn't end with a dot.
825 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
826 with a capital letter.
827 (ix86_mangle_function_version_assembler_name): Likewise.
828 (ix86_generate_version_dispatcher_body): Likewise.
829 (fold_builtin_cpu): Likewise.
830 (get_builtin_code_for_version): Likewise. Remove extraneous space.
831 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
832 translators, wrap full type name in %qs.
835 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
836 depend clause with source (or sink) modifier.
837 * omp-expand.c (expand_omp_ordered_sink): Likewise.
840 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
841 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
842 (avx512f_load<mode>_mask): New define_expand.
843 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
844 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
845 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
846 __builtin_ia32_movess_mask): New builtins.
847 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
848 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
849 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
850 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
852 2019-03-07 Martin Jambor <mjambor@suse.cz>
855 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
856 for extern inline functions.
858 2019-03-07 Martin Jambor <mjambor@suse.cz>
861 * cgraph.h (cgraph_node): New inline method former_thunk_p.
862 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
863 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
864 have multiple callees. At the end check if declarations match as
865 opposed to cgraph_nodes.
867 2019-03-07 Martin Liska <mliska@suse.cz>
869 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
870 which is equivalent to searching for this in clones chain.
871 * symtab.c (symtab_node::verify_base): Similarly compare ASM
872 names with a neighbour and special case first node in a chain.
874 2019-01-25 Jason Merrill <jason@redhat.com>
876 PR c++/80916 - spurious "static but not defined" warning.
877 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
878 for an internal symbol with DECL_EXTERNAL.
880 2019-04-07 Richard Biener <rguenther@suse.de>
883 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
884 * tree-inline.c (copy_loops): Simplify.
886 2019-03-07 Martin Liska <mliska@suse.cz>
888 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
890 2019-03-07 Richard Biener <rguenther@suse.de>
892 PR tree-optimization/89595
893 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
894 stmt iterator as reference, take boolean output parameter to
895 indicate whether the stmt was removed and thus the iterator
897 (dom_opt_dom_walker::before_dom_children): Re-iterate over
898 stmts created by folding.
900 2019-03-07 Jakub Jelinek <jakub@redhat.com>
903 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
906 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
908 PR rtl-optimization/88845
909 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
911 * lra.c (remove_scratches_1): New function.
912 (remove_scratches): Use it.
913 (lra_emit_move): Likewise.
915 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
917 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
918 unaligned_access variable.
919 * config/arc/arc.c (arc_override_options): Set unaligned access
920 default on for HS CPUs.
921 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
923 2019-03-06 Martin Liska <mliska@suse.cz>
925 PR gcov-profile/89577
926 * doc/gcov.texi: Prefer to use --coverage.
927 * doc/sourcebuild.texi: Likewise.
929 2019-03-02 Jason Merrill <jason@redhat.com>
931 PR c++/86485 - -Wmaybe-unused with empty class ?:
932 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
934 2019-03-05 Jakub Jelinek <jakub@redhat.com>
937 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
941 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
942 exactly one argument.
944 2019-03-05 Jakub Jelinek <jakub@redhat.com>
945 Richard Sandiford <richard.sandiford@arm.com>
947 PR tree-optimization/89570
948 * match.pd (vec_cond into cond_op simplification): Don't use
949 get_conditional_internal_fn, use as_internal_fn (cond_op).
951 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
954 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
955 to decide when to split off a non-zero offset from a symbol.
956 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
959 2019-03-05 Richard Biener <rguenther@suse.de>
961 PR tree-optimization/89594
962 * tree-if-conv.c (pass_if_conversion::execute): Handle
963 case where .LOOP_VECTORIZED_FUNCTION was removed.
965 2019-03-05 Jakub Jelinek <jakub@redhat.com>
968 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
969 instead alloca it only when needed with the needed size.
971 PR tree-optimization/89570
972 * match.pd (vec_cond into cond_op simplification): Guard with
973 vectorized_internal_fn_supported_p test and #if GIMPLE.
975 PR tree-optimization/89566
976 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
977 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
978 Punt if get_user_idx_format succeeds, but idx_format argument is
979 not provided or doesn't have pointer type, or if idx_args is above
980 number of provided arguments.
982 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
984 PR tree-optimization/89437
985 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
987 2019-03-04 Richard Biener <rguenther@suse.de>
990 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
993 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
995 PR tree-optimization/89487
996 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
997 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
998 (distribute_loop): Don't do runtime alias check if there is non-
999 addressable data reference.
1000 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
1001 is a register variable.
1003 2019-03-02 Jakub Jelinek <jakub@redhat.com>
1006 * config/arm/arm.md (cmpsi2_addneg): Use
1007 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
1008 If operands[2] is 0 or INT_MIN, force use of subs.
1009 (*compare_scc splitter): Use gen_int_mode.
1010 (*negscc): Likewise.
1011 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
1013 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
1014 Monk Chiang <sh.chiang04@gmail.com>
1016 * common/config/riscv/riscv-common.c: Include sstream.
1017 (riscv_subset_list::to_string): New.
1018 (riscv_arch_str): Likewise.
1019 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
1021 * config/riscv/riscv-protos.h (riscv_arch_str): New.
1022 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
1023 (riscv_emit_attribute): New.
1024 (riscv_file_start): Emit attribute if needed.
1025 (riscv_option_override): Init riscv_emit_attribute_p.
1026 * config/riscv/riscv.opt (mriscv-attribute): New option.
1027 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
1029 * doc/install.texi: Document --with-riscv-attribute.
1030 * doc/invoke.texi: Document -mriscv-attribute.
1032 * common/config/riscv/riscv-common.c:
1033 Include config/riscv/riscv-protos.h.
1034 (INCLUDE_STRING): Defined.
1035 (RISCV_DONT_CARE_VERSION): Defined.
1036 (riscv_subset_t): Declare.
1037 (riscv_subset_t::riscv_subset_t): New.
1038 (riscv_subset_list): Declare.
1039 (riscv_subset_list::riscv_subset_list): New.
1040 (riscv_subset_list::~riscv_subset_list): Likewise.
1041 (riscv_subset_list::parsing_subset_version): Likewise.
1042 (riscv_subset_list::parse_std_ext): Likewise.
1043 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
1044 (riscv_subset_list::add): Likewise.
1045 (riscv_subset_list::lookup): Likewise.
1046 (riscv_subset_list::xlen): Likewise.
1047 (riscv_subset_list::parse): Likewise.
1048 (riscv_supported_std_ext): Likewise.
1049 (current_subset_list): Likewise.
1050 (riscv_parse_arch_string): Using riscv_subset_list::parse to
1053 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
1055 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1056 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
1057 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
1059 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
1061 PR rtl-optimization/85899
1062 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
1063 fallthru edges leading to the exit block.
1065 2019-03-01 Tamar Christina <tamar.christina@arm.com>
1068 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
1069 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
1071 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
1073 PR tree-optimization/89535
1074 * tree-vect-stmts.c (vectorizable_call): Record the vector types
1075 for each operand. Calculate the fallback choice for mask operands
1076 and pass it to vect_get_vec_def_for_operand.
1078 2019-03-01 Richard Biener <rguenther@suse.de>
1081 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
1082 get virtual operands.
1083 (get_expr_operands): Handle CONST_DECL like other decls.
1085 2019-03-01 Jakub Jelinek <jakub@redhat.com>
1088 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
1089 on DECL_P and EXPR_P.
1091 2019-03-01 Richard Biener <rguenther@suse.de>
1094 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
1095 argument, defaulted to zero.
1096 * passes.c (execute_function_todo): Pass down SSA update flags
1097 to cleanup_tree_cfg.
1098 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
1099 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
1101 (cleanup_tree_cfg): Get and pass down SSA update flags.
1103 2019-03-01 Jakub Jelinek <jakub@redhat.com>
1106 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
1107 early_lto_debug argument.
1109 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
1111 PR tree-optimization/89536
1112 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
1113 only whether bit #0 of the value is 0 instead of the entire value.
1115 2019-02-28 Marek Polacek <polacek@redhat.com>
1117 PR c++/87068 - missing diagnostic with fallthrough statement.
1118 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
1119 at the end of a seq, save its location to walk_stmt_info.
1120 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
1123 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
1126 * tree.c (find_atomic_core_type): Move ahead in file.
1127 (check_base_type): Correctly compare alignments of atomic types.
1129 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
1132 * config/i386/i386.c (get_builtin_code_for_version): Identify
1133 Westmere from PCLMUL, instead of AES.
1135 2019-02-28 Jakub Jelinek <jakub@redhat.com>
1138 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
1139 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
1142 2019-02-28 Tamar Christina <tamar.christina@arm.com>
1145 * config/aarch64/aarch64-option-extensions.def: Document it.
1146 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
1149 2019-02-28 Jakub Jelinek <jakub@redhat.com>
1152 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
1153 builtins if they don't have a single scalar floating point argument.
1156 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
1158 PR rtl-optimization/89490
1159 * varasm.c (get_block_for_section): Bail out for mergeable sections.
1160 (default_use_anchors_for_symbol_p, output_object_block): Assert the
1161 block section is not mergeable.
1163 2019-02-27 Jakub Jelinek <jakub@redhat.com>
1166 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
1167 old define_insn to ...
1168 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
1169 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
1170 Rename old define_insn to ...
1171 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
1172 (thumb2_casesi_internal_pic): New define_expand. Rename old
1174 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
1175 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
1176 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
1178 2019-02-27 Richard Biener <rguenther@suse.de>
1181 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
1183 2019-02-27 Richard Biener <rguenther@suse.de>
1185 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
1188 2019-02-27 Richard Biener <rguenther@suse.de>
1191 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
1192 parameter, prefix section name with .gnu.debuglto_ if true.
1193 (dwarf2out_finish): Pass false to output_comdat_type_unit.
1194 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
1196 2019-02-27 Richard Biener <rguenther@suse.de>
1199 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
1200 rather than on use_debug_types, doing what output_die does.
1201 (value_format): Likewise.
1203 2019-02-27 Martin Jambor <mjambor@suse.cz>
1204 Martin Sebor <msebor@redhat.com>
1206 * doc/invoke.texi (Warning Options): Reword description of
1207 -Wno-absolute-value.
1209 2019-02-27 Jakub Jelinek <jakub@redhat.com>
1211 PR tree-optimization/89280
1212 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
1213 builtin_setjmp_setup_bb): New functions.
1214 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
1215 When visiting __builtin_setjmp_setup block, queue in special
1216 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
1217 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
1218 from visited after the loop if they don't have any visited successor
1221 2018-02-26 Steve Ellcey <sellcey@marvell.com>
1223 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
1225 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
1227 2019-02-26 Jakub Jelinek <jakub@redhat.com>
1230 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
1231 with types other than sizetype/ssizetype.
1233 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
1235 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
1236 (enum sparc_processor_type): ...this.
1237 (enum sparc_code_model_type): New enumeration type.
1238 (enum sparc_memory_model_type): Tweak comments.
1239 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
1241 (mcmodel): Use sparc_code_model enumeration and variable.
1242 (sparc_code_model): New enumeration.
1243 (mdebug): Add Undocumented marker.
1244 * config/sparc/sparc.h (enum cmodel): Delete.
1245 (sparc_cmodel): Likewise.
1246 (TARGET_CM_MEDLOW): Adjust to above renaming.
1247 (TARGET_CM_MEDMID): Likewise.
1248 (TARGET_CM_MEDANY): Likewise.
1249 (TARGET_CM_EMBMEDANY): Likewise.
1250 * config/sparc/sparc.c (sparc_cmodel): Delete.
1251 (sparc_option_override): Remove string/value mapping support for the
1252 code model. Move code and memory model support to after the handling
1253 of target flags. Do private machine setup last.
1254 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
1255 (sparc_legitimize_reload_address): Likewise.
1256 (sparc_output_mi_thunk): Likewise.
1257 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
1259 2019-02-26 Jakub Jelinek <jakub@redhat.com>
1261 PR tree-optimization/89500
1262 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
1263 (handle_builtin_strlen): Remove noncst_bound variable. Always
1264 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
1265 cst if the first cst bytes starting at x are known to be non-zero,
1266 even if the string is not zero terminated. Don't try to modify
1267 *si for strnlen. Update strlen_to_stridx only for strlen or if
1268 we can prove strnlen returns the same value as strlen would.
1270 2019-02-26 Martin Liska <mliska@suse.cz>
1272 * alloc-pool.h (struct pool_usage): Remove extra
1274 * bitmap.h (struct bitmap_usage): Likewise.
1275 * ggc-common.c (struct ggc_usage): Likewise.
1276 * mem-stats.h (struct mem_usage): Likewise.
1277 (mem_alloc_description::dump): Print dash lines
1278 here and repeat header at the end of a table report.
1279 It's then more readable.
1280 * tree-phinodes.c (phinodes_print_statistics): Make
1281 horizontal alignment.
1282 * tree-ssanames.c (ssanames_print_statistics): Likewise.
1283 * vec.c (struct vec_usage): Remove extra print_dash_line.
1284 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
1286 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
1288 * doc/extend.texi (__builtin_object_size):
1289 Use @pxref instead of @xref inside parenthesis.
1290 (__builtin_has_attribute): Add missing comma after @xref.
1291 (__builtin_object_size): Ditto.
1292 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
1293 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
1296 2019-02-26 Jeff Law <law@redhat.com>
1298 PR rtl-optimization/87761
1299 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
1300 detect obviously dead insns and delete them.
1302 2019-02-26 Richard Biener <rguenther@suse.de>
1304 PR tree-optimization/89505
1305 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
1306 to handle restrict pointed-to vars with multiple subvars
1309 2019-02-26 Richard Biener <rguenther@suse.de>
1311 PR tree-optimization/89489
1312 * tree-parloops.c (create_loop_fn): Copy over last_clique.
1314 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
1316 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
1317 and move around comment.
1318 <BIT_AND_EXPR>: Likewise.
1319 <BIT_NOT_EXPR>: Add specific handling for boolean types.
1321 2019-02-26 Jakub Jelinek <jakub@redhat.com>
1324 * config/i386/i386.c (remove_partial_avx_dependency): Call
1325 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
1326 after changing possibly many instructions to use that pseudo. Fix up
1327 insertion of v4sf_const0 setter at the start of bb.
1329 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
1332 * doc/extend.texi (Variadic Pointer Args): New section.
1334 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
1335 Martin Sebor <msebor@gmail.com>
1337 * common.opt (Wattribute-alias): Likewise.
1338 * doc/invoke.texi (Option Summary): List general form of
1339 -Wattribute-alias=. List positive form of -Wmissing-attributes.
1340 (-Wmissing-attributes): Invert entry, rewrite and correct default.
1341 Add cross-references.
1342 (-Wattribute-alias): Rewrite and correct default. Mention
1343 considered attributes (same as for -Wmissing-attributes).
1345 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
1347 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
1348 (_mm_cvtpd_ps): Likewise.
1349 (_mm_cvttpd_epi32): Likewise.
1352 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
1353 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
1356 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
1358 2019-02-25 Tamar Christina <tamar.christina@arm.com>
1361 * common/config/aarch64/aarch64-common.c
1362 (struct aarch64_option_extension): Add is_synthetic.
1363 (all_extensions): Use it.
1364 (TARGET_OPTION_INIT_STRUCT): Define hook.
1365 (struct gcc_targetm_common): Moved to end.
1366 (all_extensions_by_on): New.
1367 (opt_ext_cmp, typedef opt_ext): New.
1368 (aarch64_option_init_struct): New.
1369 (aarch64_contains_opt): New.
1370 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
1371 * config/aarch64/aarch64-option-extensions.def
1372 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
1373 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
1374 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
1375 Set is_synthetic to false.
1376 (crypto): Set is_synthetic to true.
1377 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
1380 2019-02-25 Tamar Christina <tamar.christina@arm.com>
1382 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
1383 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
1384 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
1385 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
1386 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
1387 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
1388 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
1389 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
1391 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
1392 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
1393 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
1394 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
1395 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
1396 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
1397 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
1398 vfmlsl_laneq_high_f16): ... To this.
1399 * config/arm/neon.md: Update comments.
1401 2019-02-25 Tamar Christina <tamar.christina@arm.com>
1403 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
1404 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
1405 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
1406 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
1407 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
1408 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
1409 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
1410 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
1412 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
1413 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
1414 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
1415 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
1416 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
1417 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
1418 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
1419 vfmlslq_laneq_high_f16): ... To this.
1421 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
1423 PR rtl-optimization/86096
1424 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
1425 comparing mw_order values.
1427 2019-02-25 Jakub Jelinek <jakub@redhat.com>
1430 * config/arm/arm.md (*subsi3_carryin_const): Use
1431 arm_neg_immediate_operand predicate instead of
1432 arm_not_immediate_operand, "L" constraint instead of "K" and
1433 print it using %n2 instead of %B2.
1434 (*subsi3_carryin_const0): New define_insn.
1435 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
1436 instead of arm_not_operand and "I" constraint instead of "K" and
1437 print it using %n3 instead of %B2. Instead of using match_dup 2 add
1438 another match_operand and in the condition check that it is negation
1440 (*subsi3_carryin_compare_const0): New define_ins.
1441 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
1442 *subsi3_carryin_const.
1443 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
1444 split into *subsi3_carryin_compare_const0 if the highpart is zero.
1447 * config/arm.vfp.md (*negdf2_vfp): Use
1448 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
1449 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
1451 2019-02-24 Jakub Jelinek <jakub@redhat.com>
1453 PR rtl-optimization/89445
1454 * simplify-rtx.c (simplify_ternary_operation): Don't use
1455 simplify_merge_mask on operands that may trap.
1456 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
1457 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
1458 second operand is CONST_VECTOR, check if any element could be zero.
1459 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
1460 their operands can trap.
1462 2019-02-23 Martin Sebor <msebor@redhat.com>
1464 * gimple-ssa-sprintf.c (target_strtol): Rename...
1465 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
1466 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
1467 check for range error.
1469 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
1472 * opts-common.c (prune_options): Also prune joined switches
1473 with Negative and RejectNegative.
1474 * config/i386/i386.opt (march=): Add Negative(march=).
1475 (mtune=): Add Negative(mtune=).
1476 * doc/options.texi: Document Negative used together with Joined
1479 2019-02-22 Martin Sebor <msebor@redhat.com>
1481 * doc/extend.texi (Other Builtins): Add
1482 __builtin_is_constant_evaluated.
1484 2019-02-22 Richard Biener <rguenther@suse.de>
1486 PR tree-optimization/87609
1487 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
1489 2019-02-22 Jeff Law <law@redhat.com>
1491 PR rtl-optimization/87761
1492 * config/mips/mips.md: Add new combiner pattern to recognize
1493 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
1495 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
1498 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
1499 destination register in peepholes generating patterns for ADDS/SUBS.
1500 (add<mode>3_compare0,
1501 *addsi3_compare0_uxtw, add<mode>3_compareC,
1502 add<mode>3_compareV_imm, add<mode>3_compareV,
1503 *adds_<optab><ALLX:mode>_<GPI:mode>,
1504 *subs_<optab><ALLX:mode>_<GPI:mode>,
1505 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
1506 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
1507 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
1508 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
1509 sub<mode>3_compare1): Allow stack pointer for source register.
1510 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
1512 2019-02-22 Martin Sebor <msebor@redhat.com>
1514 PR tree-optimization/88993
1515 PR tree-optimization/88853
1516 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
1518 (sprintf_dom_walker::call_info::is_string_func): New helper.
1519 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
1520 for formatted string functions.
1521 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
1523 2019-02-22 Martin Sebor <msebor@redhat.com>
1526 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
1527 unreachable subexpressions.
1529 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
1530 Hongtao Liu <hongtao.liu@intel.com>
1531 Sunil K Pandey <sunil.k.pandey@intel.com>
1534 * config/i386/i386-passes.def: Add
1535 pass_remove_partial_avx_dependency.
1536 * config/i386/i386-protos.h
1537 (make_pass_remove_partial_avx_dependency): New.
1538 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
1540 (pass_data_remove_partial_avx_dependency): New.
1541 (pass_remove_partial_avx_dependency): Likewise.
1542 (make_pass_remove_partial_avx_dependency): Likewise.
1543 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
1544 (*extendsfdf2): Add avx_partial_xmm_update.
1545 (truncdfsf2): Likewise.
1546 (*float<SWI48:mode><MODEF:mode>2): Likewise.
1547 (SF/DF conversion splitters): Disabled for TARGET_AVX.
1549 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
1552 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
1555 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
1558 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
1559 (PTA_SKYLAKE): Add PTA_AES.
1560 (PTA_GOLDMONT): Likewise.
1562 2019-02-22 Sudakshina Das <sudi.das@arm.com>
1564 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
1565 instruction if enabled.
1566 (aarch64_override_options): Remove reference to return address key.
1568 2019-02-22 Richard Biener <rguenther@suse.de>
1570 PR tree-optimization/89440
1571 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
1572 not necessary assert.
1574 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
1577 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
1578 (oacc_replace_fn_attrib_attr): ... this new function.
1579 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
1580 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
1582 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1584 * config/arm/arm-cpus.in (ares): Rename to...
1585 (neoverse-n1): ... This. Add ares as alias.
1586 * config/arm/arm-tables.opt: Regenerate.
1587 * config/arm/arm-tune.md: Likewise.
1588 * doc/invoke.txt (ARM Options): Document neoverse-n1.
1590 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1592 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
1593 * config/aarch64/aarch64-tune.md: Regenerate.
1594 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
1596 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1598 * config/aarch64/aarch64.c (ares_tunings): Rename to...
1599 (neoversen1_tunings): ... This.
1600 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
1601 (neoverse-n1): New CPU.
1602 * config/aarch64/aarch64-tune.md: Regenerate.
1603 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
1605 2019-02-22 Richard Biener <rguenther@suse.de>
1608 * cfghooks.h (dependence_hash): New typedef.
1609 (struct copy_bb_data): New type.
1610 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
1611 (duplicate_block): Likewise.
1612 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
1613 (copy_bbs): Create and pass down copy_bb_data.
1614 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
1615 (rtl_duplicate_bb): Likewise.
1616 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
1617 remap dependence info.
1619 2019-02-22 Richard Biener <rguenther@suse.de>
1621 PR tree-optimization/87609
1622 * tree-core.h (tree_base): Document special clique values.
1623 * tree-inline.c (remap_dependence_clique): Do not use the
1624 special clique value of one.
1625 (maybe_set_dependence_info): Use clique one.
1626 (clear_dependence_clique): New callback.
1627 (compute_dependence_clique): Clear clique one from all refs
1628 before assigning it (again).
1630 2019-02-21 Martin Sebor <msebor@redhat.com>
1632 * doc/extend.texi (__clear_cache): Correct signature.
1634 2019-02-21 Ian Lance Taylor <iant@golang.org>
1637 * varasm.c (decode_addr_const): Call lookup_constant_def rather
1638 than output_constant_def.
1639 (add_constant_to_table): New static function.
1640 (output_constant_def): Call add_constant_to_table.
1641 (tree_output_constant_def): Likewise.
1643 2019-02-21 Jakub Jelinek <jakub@redhat.com>
1646 * builtins.c (fold_builtin_arith_overflow): If first two args are
1647 INTEGER_CSTs, set intres and ovfres to constants rather than calls
1650 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
1653 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
1654 error for -mindirect-branch/-mfunction-return with incompatible
1657 2019-02-21 Jakub Jelinek <jakub@redhat.com>
1660 * constraints.md (q): Remove.
1661 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
1664 2019-02-21 Martin Jambor <mjambor@suse.cz>
1667 * omp-general.c (omp_extract_for_data): Removed a duplicate call
1668 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
1669 (omp_adjust_for_condition): ...here. Added necessary parameters.
1670 * omp-general.h (omp_adjust_for_condition): Updated declaration.
1671 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
1672 proper values to new parameters of omp_adjust_for_condition.
1674 2019-02-20 Jakub Jelinek <jakub@redhat.com>
1677 * expr.c (expand_assignment): If result is a MEM, use change_address
1678 instead of simplify_gen_subreg.
1680 2019-02-20 Jakub Jelinek <jakub@redhat.com>
1681 David Malcolm <dmalcolm@redhat.com>
1684 * fold-const.c (decode_field_reference): Return NULL_TREE if
1685 lang_hooks.types.type_for_size returns NULL. Check it before
1686 overwriting *exp_. Use return NULL_TREE instead of return 0.
1688 2019-02-20 Jakub Jelinek <jakub@redhat.com>
1692 * toplev.c (do_compile): Double the emin/emax exponents to workaround
1695 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
1698 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
1699 TARGET_SSE in addition to TARGET_SSE_MATH.
1701 (ix86_excess_precision): Ditto.
1702 (ix86_float_exceptions_rounding_supported_p): Ditto.
1703 (use_rsqrt_p): Ditto.
1704 * config/i386/sse.md (rsqrt<mode>2): Ditto.
1706 2019-02-20 David Malcolm <dmalcolm@redhat.com>
1709 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
1710 linenum_arith_t when determining if two adjacent line spans are
1711 close enough to merge.
1712 (diagnostic_show_locus): Use linenum_arith_t when iterating over
1713 lines within each line_span.
1715 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
1718 * lra-constraints.c(uses_hard_regs_p): Fix handling of
1719 paradoxical SUBREGS.
1721 2019-02-20 Li Jia He <helijia@linux.ibm.com>
1724 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
1725 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
1726 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
1729 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
1731 * config/gcn/gcn.c (print_operand): Fix typo.
1733 2019-02-19 Richard Biener <rguenther@suse.de>
1736 * toplev.c (do_compile): Initialize mpfr's exponent range
1737 based on available float modes.
1739 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
1741 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
1742 as long as the epilogue isn't completed.
1744 2019-02-18 Martin Sebor <msebor@redhat.com>
1746 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
1747 __has_cpp_attribute, and __has_include.
1749 2019-02-18 Martin Sebor <msebor@redhat.com>
1751 * doc/invoke.texi (-Wreturn-type): Correct and expand.
1753 2019-02-18 Martin Sebor <msebor@redhat.com>
1756 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
1758 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
1760 2019-02-18 Richard Biener <rguenther@suse.de>
1762 PR tree-optimization/89296
1763 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
1764 of no-warning flag to cases that might emit the bogus warning.
1766 2019-02-18 Jakub Jelinek <jakub@redhat.com>
1769 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
1771 * config/arm/vfp.md (*movdi_vfp): Likewise.
1772 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
1773 "q" constraint for operands[0].
1776 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
1777 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
1778 pattern in a temporary buffer.
1779 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
1780 than 64-operands[2].
1783 * config/s390/s390.c (s390_indirect_branch_attrvalue,
1784 s390_indirect_branch_settings): Define unconditionally.
1785 (s390_set_current_function): Likewise, but guard the whole body except
1786 the s390_indirect_branch_settings call with
1787 #if S390_USE_TARGET_ATTRIBUTE.
1788 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
1790 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
1791 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
1792 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
1793 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
1794 HOST_WIDE_INT_1U instead of 1ULL.
1795 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
1796 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
1797 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
1798 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
1800 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
1803 2019-02-18 Martin Jambor <mjambor@suse.cz>
1805 PR tree-optimization/89209
1806 * tree-sra.c (create_access_replacement): New optional parameter
1807 reg_tree. Use it as a type if non-NULL and access type is not of
1809 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
1810 to create_access_replacement.
1811 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
1812 Check lacc is non-NULL before attempting to re-create it on the RHS.
1814 2019-02-18 Martin Liska <mliska@suse.cz>
1817 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
1819 (symbol_table::free_edge): Recycle m_summary_id.
1820 * cgraph.h (get_summary_id): New.
1821 (symbol_table::release_symbol): Set m_summary_id to -1
1823 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
1824 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
1825 function_summary to fast_function_summary.
1826 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
1827 * ipa-pure-const.c (class funct_state_summary_t):
1828 Switch from function_summary to fast_function_summary.
1829 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
1830 (class ipa_ref_opt_summary_t): Switch from function_summary
1831 to fast_function_summary.
1832 * symbol-summary.h (class function_summary_base): New class
1833 that is created from base of former function_summary.
1834 (function_summary_base::unregister_hooks): New.
1835 (class function_summary): Inherit from function_summary_base.
1836 (class call_summary_base): New class
1837 that is created from base of former call_summary.
1838 (class call_summary): Inherit from call_summary_base.
1839 (struct is_same): New.
1840 (class fast_function_summary): New summary class.
1841 (class fast_call_summary): New summary class.
1842 * vec.h (vec_safe_grow_cleared): New function.
1844 2019-02-18 Martin Liska <mliska@suse.cz>
1846 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
1847 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
1848 * doc/tm.texi: Document new target hook.
1849 * doc/tm.texi.in: Likewise.
1850 * target.def: Add new target macro.
1851 * gcc.c (find_fortran_preinclude_file): Do not search multilib
1854 2019-02-17 Alan Modra <amodra@gmail.com>
1857 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
1858 output reg on add insn.
1859 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
1861 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
1864 * config/i386/sse.md (ssedoublemode): Remove V4HI.
1865 (PMULHRSW): Likewise.
1866 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
1868 (ssse3_pmulhrswv4hi3): New expander.
1870 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
1872 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
1873 MMX. Add isa attribute.
1875 2019-02-16 Jakub Jelinek <jakub@redhat.com>
1877 PR rtl-optimization/66152
1878 * builtins.h (c_readstr): Declare.
1879 * builtins.c (c_readstr): Remove forward declaration. Add
1880 null_terminated_p argument, if false, read all bytes from the
1881 string instead of stopping after '\0'.
1882 * expr.c (string_cst_read_str): New function.
1883 (store_expr): Use string_cst_read_str instead of
1884 builtin_strncpy_read_str. Try to store by pieces the whole
1885 exp_len first, and only if that fails, split it up into
1886 store by pieces followed by clear_storage. Formatting fix.
1888 * config/i386/i386.md (*movqi_internal): Remove static from
1889 buf variable. Use output_asm_insn (buf, operands); return "";
1890 instead of return buf;.
1891 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
1892 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
1893 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
1895 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
1897 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
1898 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
1899 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
1900 (CC1_SPEC): Likewise.
1901 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
1903 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
1905 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
1906 the base address on 64-bit strict-alignment platforms.
1908 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
1910 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
1912 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
1914 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
1916 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
1918 PR rtl-optimization/88308
1919 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
1920 on copied instruction.
1922 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
1924 * final.c (insn_current_reference_address): Replace test on JUMP_P
1925 with test on jump_to_label_p.
1926 * config/visium/visium-passes.def: New file.
1927 * config/visium/t-visium (PASSES_EXTRA): Define.
1928 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
1929 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
1930 (TRAMPOLINE_ALIGNMENT): Define.
1931 * config/visium/visium.c (visium_option_override): Do not register
1932 the machine-specific reorg pass here.
1933 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
1935 (output_branch): Adjust threshold for long branch instruction.
1936 * config/visium/visium.md (cpu): Move around.
1937 (length): Adjust for the GR6.
1939 2019-02-15 Richard Biener <rguenther@suse.de>
1940 Jakub Jelinek <jakub@redhat.com>
1942 PR tree-optimization/89278
1943 * tree-loop-distribution.c: Include tree-eh.h.
1944 (generate_memset_builtin, generate_memcpy_builtin): Call
1945 rewrite_to_non_trapping_overflow on builtin->size before passing it
1946 to force_gimple_operand_gsi.
1948 2019-02-15 Jakub Jelinek <jakub@redhat.com>
1951 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
1953 * opth-gen.awk: Likewise.
1955 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
1957 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
1958 Enable MMX, SSE and SSE2 by default.
1959 * config/i386/i386.c (ix86_option_override_internal): Do not
1960 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
1962 2019-02-14 Jakub Jelinek <jakub@redhat.com>
1964 PR rtl-optimization/89354
1965 * combine.c (make_extraction): Punt if extraction_mode is narrower
1968 2019-02-14 Maya Rashish <coypu@sdf.org>
1970 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
1971 * config/netbsd-d.c: New file.
1972 * config/t-netbsd: Add netbsd-d.o
1974 2018-02-14 Steve Ellcey <sellcey@marvell.com>
1976 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
1977 affects_type_identity to true for aarch64_vector_pcs.
1978 (aarch64_comp_type_attributes): New function.
1979 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
1981 2019-02-14 Tamar Christina <tamar.christina@arm.com>
1984 * config/arm/iterators.md (ANY64): Add V4HF.
1986 2019-02-14 Martin Liska <mliska@suse.cz>
1988 PR rtl-optimization/89242
1989 * dce.c (delete_unmarked_insns): Call free_dominance_info we
1990 process a transformation.
1992 2019-02-14 Jakub Jelinek <jakub@redhat.com>
1994 PR tree-optimization/89314
1995 * fold-const.c (fold_binary_loc): Cast strlen argument to
1996 const char * before dereferencing it. Formatting fixes.
1999 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
2001 2019-02-13 Ian Lance Taylor <iant@golang.org>
2003 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
2004 and set current index for other optimizations.
2006 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
2008 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
2009 nonimmediate_operand as operand 2 predicate.
2010 (vec_set<VF2_512_256:mode>_0): Ditto.
2011 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
2012 (*vec_concatv2si): Remove alternative 2.
2013 (*vec_concatv4si_0): Use vm constraint for alternative 0.
2014 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
2015 (vec_concatv2di): Split alternatives 4,5,6 to ...
2016 (*vec_concatv2di_0) ... new pattern.
2018 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
2021 * config/arm/arm.c (ldm_stm_operation_p) Set
2022 addr_reg_in_reglist correctly for first register.
2023 (load_multiple_sequence): Remove dead base check.
2024 (gen_ldm_seq): Correctly set write_back for Thumb-1.
2026 2019-02-13 Tamar Christina <tamar.christina@arm.com>
2029 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
2030 Expose as @aarch64_pred_mov.
2031 * config/aarch64/aarch64.c (aarch64_classify_address):
2032 Use expand_insn which legitimizes operands.
2034 2019-02-13 Martin Liska <mliska@suse.cz>
2036 * builtins.h (expand_builtin_with_bounds): Remove declaration.
2037 * calls.c (struct arg_data): Remove special_slot, pointer_arg
2038 and pointer_offset fields.
2039 (initialize_argument_information): Remove usage of dead
2041 * cgraph.h (struct cgraph_thunk_info): Remove
2042 add_pointer_bounds_args.
2043 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
2045 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
2047 * config/i386/i386.c (ix86_function_arg_advance): Remove
2049 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
2050 (def_builtin): Remove usage of dead
2052 (ix86_add_new_builtins): Likewise.
2053 * ipa-fnsummary.c (compute_fn_summary): Likewise.
2054 * ipa-icf.c (sem_function::equals_wpa): Likewise.
2055 (sem_function::init): Likewise.
2056 (sem_variable::merge): Likewise.
2057 * ipa-visibility.c (function_and_variable_visibility): Likewise.
2058 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
2059 * lto-cgraph.c (lto_output_node): Likewise.
2060 (lto_output_varpool_node): Likewise.
2061 (input_node): Likewise.
2062 (input_varpool_node): Likewise.
2063 * lto-streamer-out.c (lto_output): Likewise.
2064 * tree-inline.c (expand_call_inline): Remove usage of
2066 * tree-inline.h (struct copy_body_data): Likewise.
2067 * varpool.c (varpool_node::dump): Likewise.
2069 2019-02-13 Jakub Jelinek <jakub@redhat.com>
2072 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
2073 into pt->vars_contains_escaped_heap instead of setting
2074 pt->vars_contains_escaped_heap to it.
2077 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
2078 INTVAL (size), compare it to GET_MODE_MASK instead of
2079 1 << GET_MODE_BITSIZE.
2082 * config/i386/predicates.md (x86_64_immediate_operand): Allow
2083 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
2086 2019-02-13 Martin Liska <mliska@suse.cz>
2089 * cfgrtl.c (remove_barriers_from_footer): New function.
2090 (try_redirect_by_replacing_jump): Use it.
2091 (cfg_layout_redirect_edge_and_branch): Likewise.
2093 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
2095 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
2096 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
2097 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
2098 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
2099 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
2100 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
2102 * config/rs6000/rs6000.c (builtin_function_type)
2103 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
2104 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
2105 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
2106 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
2107 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
2109 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
2111 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
2112 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
2114 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
2117 * config/i386/i386.md (*movoi_internal_avx): Revert revision
2118 268678 and revision 268657.
2119 (*movti_internal): Likewise.
2121 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
2124 * config/s390/s390.c (s390_decompose_address): Update comment.
2125 (s390_check_qrst_address): Reject invalid address forms after
2128 2019-02-12 Martin Liska <mliska@suse.cz>
2131 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
2132 we need default values of funct_state for a function that
2135 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
2137 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
2138 the object to pick the size of stores on strict-alignment platforms.
2140 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
2141 (*movdi_insn_sp32): Likewise.
2142 (*movdi_insn_sp64): Likewise.
2144 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
2147 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
2148 types that needs constructiong.
2149 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
2151 2019-02-12 Richard Biener <rguenther@suse.de>
2153 PR tree-optimization/89253
2154 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
2157 2019-02-11 David Malcolm <dmalcolm@redhat.com>
2160 * input.c (selftest::test_line_offset_overflow): New selftest.
2161 (selftest::input_c_tests): Call it.
2163 2019-02-11 Martin Sebor <msebor@redhat.com>
2165 PR tree-optimization/88771
2166 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
2167 when -Wstringop-overflow is set.
2168 (builtin_memref::builtin_memref): Adjust excessive upper bound
2169 only when lower bound is not excessive.
2170 (maybe_diag_overlap): Detect and diagnose excessive bounds via
2171 -Wstringop-ovefflow.
2172 (maybe_diag_offset_bounds): Rename...
2173 (maybe_diag_access_bounds): ...to this.
2174 (check_bounds_or_overlap): Adjust for name change above.
2176 2019-02-11 Martin Sebor <msebor@redhat.com>
2179 * builtins.c (max_object_size): Move from here...
2180 * builtins.h (max_object_size): ...and here...
2181 * tree.c (max_object_size): ...to here...
2182 * tree.h (max_object_size): ...and here.
2184 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
2186 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
2187 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
2188 for correct semantics.
2190 2019-02-11 Alan Modra <amodra@gmail.com>
2192 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
2193 -mlongcall and -mpltseq.
2194 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
2195 (RS/6000 and PowerPC Options <-mpltseq>): Document.
2196 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
2197 * config/rs6000/sysv4.opt (mpltseq): New option.
2198 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
2199 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
2200 support is lacking. Don't allow -mpltseq with -mbss-plt.
2201 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
2202 -mpltseq given for ELFv1.
2203 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
2204 Only use UNSPEC_PLTSEQ for inline PLT calls.
2205 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
2206 use UNSPEC_PLTSEQ for inline PLT calls.
2207 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
2208 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
2209 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
2210 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
2211 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
2212 (pltseq_mtctr_<mode>): Likewise.
2214 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2216 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
2218 * configure: Regenerate.
2220 2019-02-11 Jakub Jelinek <jakub@redhat.com>
2223 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
2226 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
2228 * function.c (assign_parm_setup_block): Use the stored
2229 size, not the passed size, when allocating stack-space,
2230 also for a parameter with alignment larger than
2231 MAX_SUPPORTED_STACK_ALIGNMENT.
2233 2019-02-11 Martin Liska <mliska@suse.cz>
2236 * ipa-cp.c (build_toporder_info): Remove usage of a param.
2237 * ipa-inline.c (inline_small_functions): Likewise.
2238 * ipa-pure-const.c (propagate_pure_const): Likewise.
2239 (propagate_nothrow): Likewise.
2240 * ipa-reference.c (propagate): Likewise.
2241 * ipa-utils.c (struct searchc_env): Remove unused field.
2242 (searchc): Always search across AVAIL_INTERPOSABLE.
2243 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
2244 the only called IPA pure const can properly not propagate
2245 across interposable boundary.
2246 * ipa-utils.h (ipa_reduced_postorder): Remove param.
2248 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
2250 * config/nds32/nds32.md (call_internal, call_value_internal,
2251 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
2253 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
2255 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
2258 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
2260 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
2263 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
2265 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
2267 2019-02-10 Jakub Jelinek <jakub@redhat.com>
2269 PR tree-optimization/89268
2270 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
2271 if preds is non-NULL.
2273 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
2276 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
2279 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
2281 * config/nds32/nds32.md (trap): New pattern.
2283 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
2285 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
2288 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
2290 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
2293 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
2295 * ipa-visibility.c (localize_node): Also do not localize
2296 LDPR_PREVAILING_DEF_IRONLY_EXP.
2298 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
2301 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
2302 instead of type_with_linkage.
2304 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
2307 * params.def (uninlined-function-insns, uninlined-function-time,
2308 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
2309 bound so we don't get overflows.
2311 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
2313 * config/rs6000/rs6000-string.c (expand_compare_loop,
2314 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
2317 2019-02-09 Jakub Jelinek <jakub@redhat.com>
2320 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2321 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
2322 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
2324 2019-02-09 Alan Modra <amodra@gmail.com>
2327 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
2328 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
2331 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
2334 * lra-constraints.c (process_alt_operands): Don't increase reject
2335 for memory when offset memory is required.
2337 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
2339 * config/s390/vector.md: Implement vector copysign.
2341 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
2343 * expr.c (expand_constructor): Correct indentations.
2345 2019-02-08 Richard Biener <rguenther@suse.de>
2347 PR tree-optimization/89247
2348 * tree-if-conv.c: Include tree-cfgcleanup.h.
2349 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
2350 (tree_if_conversion): Pass through predicate vector.
2351 (pass_if_conversion::execute): Do CFG cleanup and SSA update
2352 inline, see if any if-converted loops we refrece in
2353 LOOP_VECTORIZED calls vanished and fixup.
2354 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
2356 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
2358 * config/s390/constraints.md (jdd): New constraint.
2360 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
2363 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
2364 upper 16 vector registers without TARGET_AVX512VL.
2365 (*movti_internal): Likewise.
2367 2019-02-08 Jakub Jelinek <jakub@redhat.com>
2369 PR rtl-optimization/89234
2370 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
2371 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
2372 (copy_reg_eh_region_note_backward): Likewise.
2374 2019-02-08 Richard Biener <rguenther@suse.de>
2377 * tree-data-ref.c (initialize_matrix_A): Fail if constant
2379 (analyze_subscript_affine_affine): Handle failure from
2380 initialize_matrix_A.
2382 2019-02-08 Jakub Jelinek <jakub@redhat.com>
2384 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
2387 2019-02-07 David Malcolm <dmalcolm@redhat.com>
2389 PR tree-optimization/86637
2390 PR tree-optimization/89235
2391 * tree-vect-loop.c (optimize_mask_stores): Add an
2392 auto_purge_vect_location sentinel to ensure that vect_location is
2395 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
2396 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
2397 to ensure that vect_location is purged on exit.
2398 (pass_slp_vectorize::execute): Likewise, replacing the manual
2400 * tree-vectorizer.h (class auto_purge_vect_location): New class.
2402 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2404 * config/aarch64/iterators.md (max_opp): New code_attr.
2405 (USMAX): New code iterator.
2406 * config/aarch64/predicates.md (aarch64_smin): New predicate.
2407 (aarch64_smax): Likewise.
2408 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
2409 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
2412 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
2415 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
2416 for TARGET_AVX512VL.
2417 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
2419 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
2421 * config/s390/s390-builtin-types.def: Add new types.
2422 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
2423 (s390_vec_xlw4): Make the memory operand into a const pointer.
2424 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
2426 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
2427 a new vector type with the alignment of the scalar memory operand.
2429 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
2430 Jakub Jelinek <jakub@redhat.com>
2433 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
2434 arm_count_ldrdstrd_insns): New declarations.
2435 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
2437 (valid_operands_ldrd_strd): New function.
2438 (arm_count_ldrdstrd_insns): New function.
2439 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
2440 sets instead of single DImode set and define new insns to match this.
2442 2019-02-07 Tamar Christina <tamar.christina@arm.com>
2444 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
2445 Make it a C initializer.
2447 2019-02-07 Tamar Christina <tamar.christina@arm.com>
2450 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
2452 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2454 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
2455 Use neon_dot<q> for type.
2456 (neon_<sup>dot_lane<vsi2qi>): Likewise.
2458 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2460 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
2461 Use neon_dot<q> for type.
2462 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
2463 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
2465 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
2467 PR rtl-optimization/89225
2468 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
2471 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
2473 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
2474 after restoring registers saved to allocate the frame on Windows.
2476 2019-02-06 Richard Biener <rguenther@suse.de>
2478 PR tree-optimization/89182
2479 * graphite.h (cached_scalar_evolution_in_region): Declare.
2480 * graphite.c (struct seir_cache_key): New.
2481 (struct sese_scev_hash): Likewise.
2482 (seir_cache): New global.
2483 (cached_scalar_evolution_in_region): New function.
2484 (graphite_transform_loops): Allocate and release seir_cache.
2485 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
2486 cached_scalar_evolution_in_region.
2487 * graphite-scop-detection.c (scop_detection::can_represent_loop):
2489 (scop_detection::graphite_can_represent_expr: Use
2490 cached_scalar_evolution_in_region.
2491 (scop_detection::stmt_simple_for_scop_p): Likewise.
2492 (find_params_in_bb): Likewise.
2493 (gather_bbs::before_dom_children): Likewise.
2494 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
2495 (add_loop_constraints): Likewise.
2497 2019-02-06 Jakub Jelinek <jakub@redhat.com>
2500 * fold-const-call.c (fold_const_vec_convert): Pass true as last
2501 operand to new_unary_operation only if both element types are integral
2502 and it isn't a widening conversion. Return NULL_TREE if
2503 new_unary_operation failed.
2505 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
2508 * config/s390/s390.md: Remove load and test FP splitter.
2510 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
2513 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
2514 expand_compare_loop, expand_block_compare_gpr,
2515 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
2516 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
2517 #include "profile-count.h" and "predict.h" for types and functions
2518 needed to work with REG_BR_PROB notes.
2520 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
2523 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
2524 for the long branch case.
2526 2019-02-05 Jakub Jelinek <jakub@redhat.com>
2529 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
2530 can throw, non-call exceptions are enabled and we can't delete
2531 dead exceptions or alter cfg. Set must_clean if
2532 delete_insn_and_edges returns true, don't set it blindly for calls.
2533 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
2535 PR rtl-optimization/89195
2536 * combine.c (make_extraction): For MEMs, don't extract bytes outside
2537 of the original MEM.
2539 2019-02-05 Martin Liska <mliska@suse.cz>
2541 PR gcov-profile/89000
2542 * gcov.c (function_summary): Remove argument.
2543 (file_summary): New function.
2544 (print_usage): Replace tabs with spaces.
2545 (generate_results): Use new function file_summary.
2547 2019-02-05 Jakub Jelinek <jakub@redhat.com>
2550 * optabs.c (prepare_cmp_insn): Pass x and y to
2551 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
2553 2019-02-05 Richard Biener <rguenther@suse.de>
2556 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
2557 (struct bitmap_element): Drop chain_prev so we properly recurse on
2558 the prev member, supporting tree views.
2559 (struct bitmap_head): GTY skip the obstack member.
2561 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
2564 * doc/extend.texi (Vector Extensions): Add an example of using vector
2565 types together with x86 intrinsics.
2567 2019-02-04 Alan Modra <amodra@gmail.com>
2569 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
2570 str[] size to 160, and comment.
2572 2019-02-04 Alan Modra <amodra@gmail.com>
2574 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
2575 (rs6000_pltseq_template): Guard output of TLS markers with
2577 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
2578 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
2579 to use inline PLT sequences.
2580 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
2581 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
2582 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
2584 2019-02-04 Martin Liska <mliska@suse.cz>
2587 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
2588 out when ipa_fn_summaries does not contain entry for callee.
2590 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
2592 * config/sparc/sparc.h: Remove superfluous blank lines.
2593 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
2594 (got_register_rtx): ...this.
2595 (sparc_got): Adjust to above renaming.
2596 (sparc_tls_got): Likewise.
2597 (sparc_delegitimize_address): Likewise.
2598 (sparc_output_mi_thunk): Likewise.
2599 (sparc_init_pic_reg): Likewise.
2600 (save_local_or_in_reg_p): Fix test on the GOT register.
2601 (USE_HIDDEN_LINKONCE): Move around.
2602 (get_pc_thunk_name): Likewise.
2603 (gen_load_pcrel_sym): Likewise.
2604 (load_got_register): Likewise.
2606 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
2608 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
2609 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
2611 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
2613 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
2616 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
2618 * config.gcc (with_nds32_lib, glibc):
2619 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
2620 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
2621 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
2623 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
2626 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
2627 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
2628 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
2629 (*rcpsf2_sse): Ditto.
2630 (*rsqrtsf2_sse): Ditto.
2631 (sse4_1_round<mode<2): Ditto.
2633 2019-02-03 Richard Biener <rguenther@suse.de>
2636 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
2639 2019-02-02 Jakub Jelinek <jakub@redhat.com>
2642 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2643 Punt with warning on aggregate return or argument types. Ignore
2644 type/mode checking for uniform arguments.
2646 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
2648 * combine.c (try_combine): Do not print "Can't combine" messages unless
2649 printing failed combination attempts.
2651 2019-02-01 Martin Jambor <mjambor@suse.cz>
2654 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
2655 segment and global segment variables before making them static.
2657 2019-02-01 Martin Jambor <mjambor@suse.cz>
2659 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
2660 missed optimization dump with dump_enabled_p.
2662 2019-02-01 Richard Biener <rguenther@suse.de>
2665 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
2666 the instantiate cache.
2667 (instantiate_scev_binary): Elide second operand procesing
2668 if equal to the first.
2669 * tree-chrec.c (chrec_contains_symbols): Add visited set.
2670 (chrec_contains_undetermined): Likewise.
2671 (tree_contains_chrecs): Likewise.
2673 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
2675 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
2677 2019-02-01 Jakub Jelinek <jakub@redhat.com>
2679 PR tree-optimization/89143
2680 * wide-int-range.h (wide_int_range_absu): Declare.
2681 * wide-int-range.cc (wide_int_range_absu): New function.
2682 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
2684 PR tree-optimization/88107
2685 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
2686 instead of assertion that eh_region_outermost is non-NULL, if it
2687 is NULL, set *ALL to true and return NULL.
2688 (move_sese_region_to_fn): Adjust caller, if all is set, call
2689 duplicate_eh_regions with NULL region.
2691 2019-02-01 Richard Biener <rguenth@suse.de>
2693 PR rtl-optimization/88593
2694 * mode-switching.c (optimize_mode_switching): Free dominators before
2695 calling cleanup_cfg.
2697 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
2699 PR tree-optimization/88932
2700 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
2702 2019-01-31 Jakub Jelinek <jakub@redhat.com>
2705 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
2706 bogus clang warning.
2708 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
2711 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
2712 alternative to avoid partial SSE register stall for TARGET_AVX.
2713 (truncdfsf2): Ditto.
2714 (sse4_1_round<mode>2): Ditto.
2716 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
2718 PR tree-optimization/89008
2719 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
2720 process anything of the form X * 0.
2722 2019-01-31 Richard Biener <rguenther@suse.de>
2724 PR tree-optimization/89135
2725 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
2726 with abnormal preds.
2728 2019-01-31 Jakub Jelinek <jakub@redhat.com>
2731 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
2732 always_inline callees into no_sanitize_address callers.
2734 2019-01-31 Richard Biener <rguenther@suse.de>
2736 PR rtl-optimization/89115
2737 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
2739 2019-01-30 Martin Sebor <msebor@redhat.com>
2742 * doc/extend.texi (cast to a union): Correct and expand.
2744 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
2746 PR rtl-optimization/87246
2747 * lra-constraints.c (simplify_operand_subreg): Reload memory
2748 in subreg if the address became invalid.
2750 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
2753 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
2754 Disable for little-endian.
2756 2019-01-30 Richard Biener <rguenther@suse.de>
2758 PR rtl-optimization/89115
2759 * opts.c (default_options_optimization): Reduce
2760 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
2761 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
2764 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
2766 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
2767 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
2768 type of vector element when vec_extract is implemented by direct
2771 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
2773 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
2775 2019-01-30 Richard Biener <rguenther@suse.de>
2777 PR tree-optimization/89111
2778 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
2779 canonicalization to appropriately sized access types.
2781 2019-01-30 Jakub Jelinek <jakub@redhat.com>
2784 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
2785 for arguments to functions that are TU-local and shouldn't be
2786 referenced by assembly.
2788 2019-01-30 Ulrich Drepper <drepper@redhat.com>
2790 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
2793 2019-01-29 Martin Sebor <msebor@redhat.com>
2796 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
2798 2019-01-29 Jakub Jelinek <jakub@redhat.com>
2802 * omp-simd-clone.c (simd_clone_clauses_extract)
2803 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
2804 OMP_CLAUSE_ALIGNED_ALIGNMENT.
2806 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
2808 * config.gcc: Force .init_array for ARC.
2810 2019-01-29 Richard Biener <rguenther@suse.de>
2813 * dwarf2out.c (collect_skeleton_dies): New helper.
2814 (copy_decls_for_unworthy_types): Call it.
2815 (build_abbrev_table): Assert we do not try to replace
2816 DW_AT_signature refs with local refs.
2818 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2821 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
2822 for lastprivate/linear IV, push gimplify context around gimplify_assign
2823 and, if it needed any temporaries, pop it into a gimple bind around the
2826 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
2828 * common.opt (-Wattribute-alias): Remove "no-" from name.
2829 Make -Wattribute-alias command line option and
2830 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
2832 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2835 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
2836 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
2838 (bmi2): Add missing @opindex.
2839 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
2840 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
2841 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
2842 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
2843 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
2844 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
2845 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
2846 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
2847 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
2848 xsavec, xsaveopt and xsaves options.
2850 2019-01-28 Richard Biener <rguenther@suse.de>
2853 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
2856 2019-01-28 Richard Biener <rguenther@suse.de>
2858 PR tree-optimization/88739
2859 * tree-cfg.c (verify_types_in_gimple_reference): Verify
2860 BIT_FIELD_REFs only are applied to mode-precision operands
2861 when they are integral.
2862 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
2863 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
2864 BIT_FIELD_REFs of non-mode-precision integral operands.
2866 2019-01-27 Jakub Jelinek <jakub@redhat.com>
2869 * config/i386/sse.md
2870 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
2871 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
2872 first constants in pairs are multiples of 2. Formatting fixes.
2873 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
2874 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
2875 first constants in each quadruple are multiples of 4. Formatting fixes.
2877 2019-01-26 Martin Jambor <mjambor@suse.cz>
2880 * tree-inline.c: Include tree-cfgcleanup.h.
2881 (delete_unreachable_blocks_update_callgraph): Move...
2882 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
2883 ...here, make externally visible, make second argument bool, adjust
2885 * tree-cfgcleanup.c: Include cgraph.h.
2886 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
2888 * ipa-prop.c: Include tree-cfgcleanup.h.
2889 (ipcp_transform_function): Call
2890 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
2892 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
2894 PR rtl-optimization/88846
2895 * ira.c (process_set_for_memref_referenced_p): New.
2896 (memref_referenced_p): Add new param. Use
2897 process_set_for_memref_referenced_p. Add new switch cases.
2898 (memref_used_between_p): Pass new arg to memref_referenced_p.
2900 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
2903 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
2904 argument ABI_BREAK. Set to true if the calculated alignment has
2905 changed in gcc-9. Check bit-fields for their base type alignment.
2906 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
2907 (aarch64_function_arg_boundary): Likewise.
2908 (aarch64_gimplify_va_arg_expr): Likewise.
2910 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
2913 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
2914 instead of accessing TREE_INT_CST_ELT directly.
2916 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
2918 * doc/sourcebuild.texi (Environment attributes): Add fenv and
2919 fenv_exceptions description.
2921 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
2923 PR rtl-optimization/87763
2924 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
2925 Allow SUBREG when matching CC_NZmode compare.
2927 2019-01-25 Richard Biener <rguenther@suse.de>
2929 PR tree-optimization/89049
2930 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
2931 Look at the pattern stmt to determine if the stmt is vectorized.
2933 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
2935 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
2936 (pred_mov<mode>): Handle all-register forms using both a new
2937 alternative and a split.
2939 2019-01-25 Richard Biener <rguenther@suse.de>
2941 PR tree-optimization/86865
2942 * graphite-scop-detection.c (scop_detection::can_represent_loop):
2943 Reject non-do-while loops.
2945 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
2947 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
2948 * config/rs6000/constraints.md (Q constraint): Use REG_P.
2949 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
2950 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
2951 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
2952 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
2953 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
2954 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
2955 vlogical_operand, gpc_reg_operand, int_reg_operand,
2956 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
2957 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
2958 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
2959 (save_world_operation, restore_world_operation, lmw_operation,
2960 stmw_operation): Use MEM_P and REG_P.
2961 (tie_operand): Use MEM_P.
2962 (vrsave_operation, crsave_operation): Use REG_P.
2963 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
2964 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
2965 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
2966 (call_operand): Use HARD_REGISTER_P.
2967 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
2969 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
2970 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
2971 quad_aligned_load_p, replace_swapped_aligned_store,
2972 recombine_lvx_pattern, replace_swapped_aligned_load,
2973 recombine_stvx_pattern): Use MEM_P.
2974 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
2975 Use MEM_P and SYMBOL_REF_P.
2976 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
2977 (insn_is_swappable_p): Use REG_P and MEM_P.
2978 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
2979 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
2981 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
2983 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
2985 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
2986 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
2987 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
2988 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
2990 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
2991 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
2992 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
2993 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
2994 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
2995 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
2996 rs6000_split_logical_di): Use CONST_INT_P.
2997 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
2998 REG_P and SYMBOL_REF_P.
2999 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
3000 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
3001 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
3002 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
3003 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
3004 (small_data_operand, print_operand_address): Use CONST_INT_P and
3006 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
3007 (rs6000_init_hard_regno_mode_ok, direct_move_p):
3008 Use HARD_REGISTER_NUM_P.
3009 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
3010 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
3011 SUBREG_P and SYMBOL_REF_P.
3012 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
3013 and HARD_REGISTER_NUM_P.
3014 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
3016 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
3017 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
3019 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
3020 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
3021 find_addr_reg): Use REG_P.
3022 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
3023 (rs6000_emit_le_vsx_move): Use SUBREG_P.
3024 (offsettable_ok_by_alignment, constant_pool_expr_p,
3025 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
3026 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
3027 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
3028 rs6000_assemble_integer, create_TOC_reference,
3029 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
3030 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
3031 (rs6000_split_vec_extract_var): Use reg_or_subregno.
3032 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
3033 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
3034 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3035 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3036 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
3037 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
3038 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
3039 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
3040 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
3041 and cbranch<mode>4): Use CONST_INT_P.
3042 (multiple define_splits): Use REG_P and SUBREG_P.
3043 (define_expands call, call_value): Use MEM_P.
3044 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
3045 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
3046 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
3047 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
3048 and HARD_REGISTER_NUM_P.
3049 (multiple define_splits): Use HARD_REGISTER_NUM_P.
3051 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3053 PR rtl-optimization/88948
3054 * rtl.h (prepare_copy_insn): New prototype.
3055 * gcse.c (prepare_copy_insn): New function, split out from
3056 process_insert_insn.
3057 (process_insert_insn): Use prepare_copy_insn.
3058 * store-motion.c (replace_store_insn): Use prepare_copy_insn
3059 instead of gen_move_insn.
3061 2019-01-24 Jakub Jelinek <jakub@redhat.com>
3064 * config/i386/i386.c (ix86_pic_register_p): Return true for
3067 PR tree-optimization/88964
3068 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
3069 punt if HONOR_SNANS (chrec).
3072 * tree-nested.c (convert_nonlocal_reference_stmt,
3073 convert_local_reference_stmt, convert_tramp_reference_stmt,
3074 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
3075 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
3078 PR tree-optimization/89027
3079 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
3080 for "omp simd array" variables.
3082 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
3085 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
3086 force the alignment of m_val.
3088 2019-01-24 Richard Biener <rguenther@suse.de>
3091 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
3092 When in "legacy" debug mode make sure to reset self-origins.
3094 2019-01-24 Martin Liska <mliska@suse.cz>
3096 PR gcov-profile/88994
3097 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
3098 result will be always smaller or equal to the original.
3099 * gcov.c (mangle_name): Fix else branch where we should
3100 also copy to PTR and shift the pointer.
3102 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
3104 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
3105 * vr-values.c (find_case_label_ranges): Fix a comment typo.
3107 2019-01-23 Bin Cheng <bin.cheng@arm.com>
3108 Steve Ellcey <sellcey@marvell.com>
3111 * recog.c (address_operand): Return false on wrong mode for address.
3112 (constrain_operands): Check for mode with 'p' constraint.
3114 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
3117 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
3118 Disparage MMX alternative.
3119 (sse2_cvtpd2pi): Ditto.
3120 (sse2_cvttpd2pi): Ditto.
3122 2019-01-23 David Malcolm <dmalcolm@redhat.com>
3125 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
3126 use-after-free of the result of
3127 aarch64_get_extension_string_for_isa_flags.
3129 2019-01-23 Jakub Jelinek <jakub@redhat.com>
3132 * doc/extend.texi: Document break and continue behavior in
3133 statement expressions.
3135 2019-01-23 Richard Biener <rguenther@suse.de>
3137 PR tree-optimization/89008
3138 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
3139 not leave another stray operand.
3141 2019-01-23 Jakub Jelinek <jakub@redhat.com>
3143 * BASE-VER: Bump to 9.0.1.
3145 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
3147 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
3148 thunk that returns by reference, use the type of the return object
3149 of the thunk instead of that of the alias to build the dereference.
3151 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
3153 * config/arc/atomic.md: Add operand to DMB instruction.
3155 2019-01-23 Jakub Jelinek <jakub@redhat.com>
3157 PR tree-optimization/88964
3158 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
3159 build_zero_cst instead of build_int_cst. Return false for loop
3160 invariants which honor signed zeros.
3162 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
3164 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
3166 2019-01-22 Jakub Jelinek <jakub@redhat.com>
3169 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
3170 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
3171 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
3174 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
3175 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
3178 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
3179 Disable for little endian.
3181 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
3184 * config/arm/arm.c (arm_needs_double_word_align): Check
3185 DECL_BIT_FIELD_TYPE.
3187 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
3188 H.J. Lu <hongjiu.lu@intel.com>
3191 * config/i386/i386-builtin.def: Add mask2 to all builtin
3192 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
3194 * config/i386/i386.c (BDESC): Add mask2 to the definition.
3195 (BDESC_FIRST): Likewise.
3196 (define_builtin): Add an argument for mask2. Updated to handle
3197 both ix86_isa_flags and ix86_isa_flags2.
3198 (define_builtin_const): Likewise.
3199 (define_builtin_pure): Likewise.
3200 (define_builtin2): Deleted.
3201 (define_builtin_const2): Likewise.
3202 (builtin_description): Add a member, mask2.
3203 (bdesc_*): Add mask2 to builtin initializations.
3204 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
3205 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
3207 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
3209 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
3212 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
3215 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
3218 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
3219 alignment is dominated by a bitfield with 64-bit aligned base type.
3220 (arm_function_arg): Emit a warning if the alignment has changed since
3221 earlier GCC releases.
3222 (arm_function_arg_boundary): Likewise.
3223 (arm_setup_incoming_varargs): Likewise.
3225 2019-01-22 Richard Biener <rguenther@suse.de>
3227 PR tree-optimization/88862
3228 * graphite-scop-detection.c
3229 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
3231 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
3233 * doc/extend.tex (AMD GCN Function Attributes): New section.
3234 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
3235 * doc/invoke.texi (AMD GCN Options): New section.
3236 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
3238 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
3240 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
3241 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
3243 2019-01-22 Jakub Jelinek <jakub@redhat.com>
3245 PR tree-optimization/88044
3246 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
3247 is false in the first iteration, but !every_iteration, return false
3248 instead of true with niter->niter zero.
3250 PR rtl-optimization/88904
3251 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
3252 any nonequal registers before processing BB_END (b).
3255 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
3257 (expand_binop_directly, expand_doubleword_clz,
3258 expand_doubleword_popcount, expand_ctz, expand_ffs,
3259 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
3261 PR rtl-optimization/49429
3263 PR rtl-optimization/86334
3265 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
3266 addressable from here...
3267 (emit_block_op_via_libcall): ... to here.
3269 2019-01-22 Richard Biener <rguenther@suse.de>
3271 * tree-vect-loop.c (vect_analyze_loop_operations): Use
3272 auto_vec for cost vector to fix memleak.
3273 (vectorize_fold_left_reduction): Properly gather SLP defs.
3274 (vectorizable_comparison): Do not swap operands to properly
3277 2019-01-22 Alan Modra <amodra@gmail.com>
3280 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
3281 stays a reg. Allow a const_int.
3282 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
3283 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
3284 (IS_NOMARK_TLSGETADDR): Define.
3285 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
3286 (rs6000_output_tlsargs): New function.
3287 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
3288 __tls_get_addr call takes an arg.
3289 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
3290 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
3292 (call_value_nonlocal_sysv): ..or here, delete split.
3293 (tls_gdld_nomark): Delete.
3294 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
3295 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
3296 (call_value_nonlocal_sysv): Likewise.
3297 (call_value_nonlocal_sysv_secure): Likewise.
3298 (call_value_nonlocal_aix): Likewise.
3299 (call_value_indirect_aix): Likewise.
3300 (call_value_indirect_elfv2): Likewise.
3301 (call_value_local32, call_value_local64): Disable for no-mark tls.
3302 (call_value_local_aix): Likewise.
3304 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
3307 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
3308 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
3310 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
3312 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
3313 string contents as hash_map keys.
3315 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3318 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
3319 for rvalue context. Handle rvalues correctly. Use min_align_of_type
3320 instead of TYPE_ALIGN.
3321 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
3322 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
3323 pointer from TYPE_STUB_DECL.
3325 2019-01-21 Richard Biener <rguenther@suse.de>
3327 PR tree-optimization/88934
3328 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
3329 at the possibly non-constant operand.
3330 (vect_get_constant_vectors): Adjust.
3332 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3335 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
3336 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
3337 instead of _X86INTRIN_H_INCLUDED.
3338 * onfig/i386/clwbintrin.h: Likewise.
3339 * config/i386/pkuintrin.h: Likewise.
3340 * config/i386/prfchwintrin.h: Likewise.
3341 * config/i386/rdseedintrin.h: Likewise.
3342 * config/i386/wbnoinvdintrin.h: Likewise.
3343 * config/i386/xsavecintrin.h: Likewise.
3344 * config/i386/xsavesintrin.h: Likewise.
3345 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
3346 * config/i386/xsaveintrin.h: Likewise.
3347 * config/i386/xsaveoptintrin.h: Likewise.
3348 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
3349 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
3350 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
3351 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
3352 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
3353 * config/i386/immintrin.h: Here.
3355 2019-01-20 Martin Jambor <mjambor@suse.cz>
3358 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
3359 with aa_walk_budget.
3360 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
3361 aa_walk_budget_p parameter.
3362 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
3363 walk. Updated all callers.
3364 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
3365 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
3367 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
3368 parameter info. Extract info from fbi. Pass fbi to recursive calls
3369 and to unmodified_parm.
3370 (phi_result_unknown_predicate): New parameter fbi, removed parameter
3371 info, updated call to will_be_nonconstant_expr_predicate.
3372 (param_change_prob): New parameter fbi, limit AA walking.
3373 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
3374 calls to various above functions.
3375 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
3376 parameter. Use it to limit AA walking.
3377 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
3379 (detect_type_change): New parameter fbi, pass it on to
3380 detect_type_change_from_memory_writes.
3381 (detect_type_change_ssa): Likewise.
3382 (aa_overwalked): Removed.
3383 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
3384 accordingly, adjust to the neew AA limiting scheme.
3385 (parm_ref_data_preserved_p): Likewise.
3386 (ipa_compute_jump_functions_for_edge): Adjust call to
3388 (ipa_analyze_call_uses): Likewise.
3389 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
3390 (ipa_analyze_node): Initialize aa_walk_budget.
3391 (ipcp_transform_function): Likewise.
3392 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
3393 to get_dynamic_type.
3395 2019-01-19 Jakub Jelinek <jakub@redhat.com>
3397 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
3398 outside of #if CHECKING_P code.
3400 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
3402 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
3403 New function, split out from...
3404 (loop_versioning::analyze_stride): ...here.
3405 (loop_versioning::find_per_loop_multiplication): Use gassign.
3406 (loop_versioning::analyze_term_using_scevs): Return a success code.
3407 (loop_versioning::analyze_arbitrary_term): New function.
3408 (loop_versioning::analyze_address_fragment): Use
3409 analyze_arbitrary_term if all else fails.
3411 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
3414 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
3417 2019-01-18 Richard Biener <rguenther@suse.de>
3419 PR tree-optimization/88903
3420 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
3421 scalar stmts a SLP shift amount is composed of when detecting
3424 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
3427 * config/arm/arm-cpus.in (mp): New feature.
3429 (fgroup ARMv7ve): Add mp and sec features.
3430 (arch armv7-a): Add options to allow mp and sec extensions.
3431 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
3432 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
3433 extenstions to the base architecture.
3434 (cpu cortex-a8): Add sec extension to the base architecture.
3435 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
3436 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
3437 variants down to the base v7-a varaint.
3438 * config/arm/t-multilib (v7_a_arch_variants): New variable.
3439 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
3440 of permitted extensions for -march=armv7-a and for
3441 -mcpu=generic-armv7-a.
3443 2019-01-18 Martin Liska <mliska@suse.cz>
3445 * params.def: Fix comment.
3446 * tree-profile.c (gimple_init_gcov_profiler): Bump function
3448 (gimple_gen_ic_func_profiler): Likewise.
3450 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3452 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
3453 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
3454 and put in error checks for stack protector guard options.
3455 (aarch64_stack_protect_guard): New.
3456 (TARGET_STACK_PROTECT_GUARD): Define.
3457 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
3458 (reg_stack_protect_address<mode>): New.
3459 (stack_protect_set): Adjust for SSP_GLOBAL.
3460 (stack_protect_test): Likewise.
3461 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
3462 (-mstack-protector-guard): Likewise.
3463 (-mstack-protector-guard-offset): Likewise.
3465 2019-01-18 Jakub Jelinek <jakub@redhat.com>
3467 PR tree-optimization/86214
3468 * tree-inline.h (struct copy_body_data): Add
3469 add_clobbers_to_eh_landing_pads member.
3470 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
3471 (copy_edges_for_bb): Call it if EH edge destination is <
3472 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
3473 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
3474 if flag_stack_reuse != SR_NONE and clear it afterwards.
3476 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
3479 * doc/install.texi (with-multilib-list): Document for aarch64.
3481 2019-01-18 Jakub Jelinek <jakub@redhat.com>
3484 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
3485 (("..."))) with ("...").
3487 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
3489 * doc/extend.texi (Built-in Functions for Memory Model Aware
3490 Atomic Operations): Document atomic fetch and nand.
3492 2019-01-18 Martin Liska <mliska@suse.cz>
3493 Richard Biener <rguenther@suse.de>
3496 * cgraph.h (create_version_clone_with_body): Add new argument
3498 * cgraphclones.c (cgraph_node::create_version_clone): Add
3499 DECL_ATTRIBUTES to a newly created decl. And call
3500 valid_attribute_p so that proper cl_target_optimization_node
3501 is set for the newly created declaration.
3502 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
3504 (expand_target_clones): Do not call valid_attribute_p, it must
3506 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
3509 2019-01-17 Jakub Jelinek <jakub@redhat.com>
3512 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
3513 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
3514 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
3516 2019-01-17 Martin Sebor <msebor@redhat.com>
3519 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
3520 Handle anti-ranges the same as no range at all.
3522 2018-01-17 Steve Ellcey <sellcey@cavium.com>
3524 * config/aarch64/aarch64.c (cgraph.h): New include.
3525 (intl.h): New include.
3526 (supported_simd_type): New function.
3527 (currently_supported_simd_type): Ditto.
3528 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
3529 (aarch64_simd_clone_adjust): Ditto.
3530 (aarch64_simd_clone_usable): Ditto.
3531 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
3532 (TARGET_SIMD_CLONE_ADJUST): Ditto.
3533 (TARGET_SIMD_CLONE_USABLE): Ditto.
3534 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
3535 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
3538 2019-01-17 Martin Sebor <msebor@redhat.com>
3540 PR tree-optimization/88800
3541 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
3542 NO_WARNING bit here. Avoid folding out-of-bounds calls.
3543 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
3544 redundant argument. Add new argument and issue diagnostics under
3545 its control. Detect out-of-bounds access even with warnings
3547 (check_bounds_or_overlap): Change return type. Add argument.
3548 (wrestrict_dom_walker::check_call): Adjust.
3549 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
3550 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
3551 check_bounds_or_overlap's return value.
3552 (handle_builtin_stxncpy): Same.
3553 (handle_builtin_strcat): Same.
3555 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3556 Kwok Cheung Yeung <kcy@codesourcery.com>
3557 Julian Brown <julian@codesourcery.com>
3558 Tom de Vries <tom@codesourcery.com>
3560 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
3562 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3564 * doc/sourcebuild.texi: Document dg-require-effective-target
3565 llvm_binutils and offload_gcn.
3567 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3568 Kwok Cheung Yeung <kcy@codesourcery.com>
3569 Julian Brown <julian@codesourcery.com>
3570 Tom de Vries <tom@codesourcery.com>
3572 * doc/sourcebuild.texi: Document dg-required-effective-target
3575 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3576 Kwok Cheung Yeung <kcy@codesourcery.com>
3577 Julian Brown <julian@codesourcery.com>
3578 Tom de Vries <tom@codesourcery.com>
3579 Jan Hubicka <hubicka@ucw.cz>
3580 Martin Jambor <mjambor@suse.cz>
3582 * config.gcc: Add amdgcn*-*-amdhsa configuration.
3583 * configure.ac: Check for dlopen.
3584 * configure: Regenerate.
3586 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3587 Kwok Cheung Yeung <kcy@codesourcery.com>
3588 Julian Brown <julian@codesourcery.com>
3589 Tom de Vries <tom@codesourcery.com>
3590 Jan Hubicka <hubicka@ucw.cz>
3591 Martin Jambor <mjambor@suse.cz>
3593 * common/config/gcn/gcn-common.c: New file.
3594 * config/gcn/driver-gcn.c: New file.
3595 * config/gcn/gcn-builtins.def: New file.
3596 * config/gcn/gcn-hsa.h: New file.
3597 * config/gcn/gcn-modes.def: New file.
3598 * config/gcn/gcn-opts.h: New file.
3599 * config/gcn/gcn-passes.def: New file.
3600 * config/gcn/gcn-protos.h: New file.
3601 * config/gcn/gcn-run.c: New file.
3602 * config/gcn/gcn-tree.c: New file.
3603 * config/gcn/gcn.c: New file.
3604 * config/gcn/gcn.h: New file.
3605 * config/gcn/gcn.opt: New file.
3606 * config/gcn/t-gcn-hsa: New file.
3608 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3609 Kwok Cheung Yeung <kcy@codesourcery.com>
3610 Julian Brown <julian@codesourcery.com>
3611 Tom de Vries <tom@codesourcery.com>
3612 Jan Hubicka <hubicka@ucw.cz>
3613 Martin Jambor <mjambor@suse.cz>
3615 * config/gcn/constraints.md: New file.
3616 * config/gcn/gcn-valu.md: New file.
3617 * config/gcn/gcn.md: New file.
3618 * config/gcn/predicates.md: New file.
3620 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
3622 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
3623 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
3624 (stmt_uses_0_or_null_in_undefined_way): Likewise.
3625 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
3627 2019-01-17 Tamar Christina <tamar.christina@arm.com>
3630 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
3631 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
3632 it and document registers.
3634 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3636 * config/aarch64/aarch64.c (ares_tunings): Define.
3637 * config/aarch64/aarch64-cores.def (ares): Use the above.
3639 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
3643 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
3645 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
3646 (_mm512_fixupimm_round_pd): Update parameters and builtin.
3647 (_mm512_maskz_fixupimm_round_pd): Ditto.
3648 (_mm512_fixupimm_round_ps): Ditto.
3649 (_mm512_maskz_fixupimm_round_ps): Ditto.
3650 (_mm_fixupimm_round_sd): Ditto.
3651 (_mm_maskz_fixupimm_round_sd): Ditto.
3652 (_mm_fixupimm_round_ss): Ditto.
3653 (_mm_maskz_fixupimm_round_ss): Ditto.
3654 (_mm512_fixupimm_pd): Ditto.
3655 (_mm512_maskz_fixupimm_pd): Ditto.
3656 (_mm512_fixupimm_ps): Ditto.
3657 (_mm512_maskz_fixupimm_ps): Ditto.
3658 (_mm_fixupimm_sd): Ditto.
3659 (_mm_maskz_fixupimm_sd): Ditto.
3660 (_mm_fixupimm_ss): Ditto.
3661 (_mm_maskz_fixupimm_ss): Ditto.
3662 (_mm512_mask_fixupimm_round_pd): Update builtin.
3663 (_mm512_mask_fixupimm_round_ps): Ditto.
3664 (_mm_mask_fixupimm_round_sd): Ditto.
3665 (_mm_mask_fixupimm_round_ss): Ditto.
3666 (_mm512_mask_fixupimm_pd): Ditto.
3667 (_mm512_mask_fixupimm_ps): Ditto.
3668 (_mm_mask_fixupimm_sd): Ditto.
3669 (_mm_mask_fixupimm_ss): Ditto.
3670 * config/i386/avx512vlintrin.h:
3671 (_mm256_fixupimm_pd): Update parameters and builtin.
3672 (_mm256_maskz_fixupimm_pd): Ditto.
3673 (_mm256_fixupimm_ps): Ditto.
3674 (_mm256_maskz_fixupimm_ps): Ditto.
3675 (_mm_fixupimm_pd): Ditto.
3676 (_mm_maskz_fixupimm_pd): Ditto.
3677 (_mm_fixupimm_ps): Ditto.
3678 (_mm_maskz_fixupimm_ps): Ditto.
3679 (_mm256_mask_fixupimm_pd): Update builtin.
3680 (_mm256_mask_fixupimm_ps): Ditto.
3681 (_mm_mask_fixupimm_pd): Ditto.
3682 (_mm_mask_fixupimm_ps): Ditto.
3683 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
3684 * config/i386/i386-builtin.def: Update builtin definitions.
3685 * config/i386/i386.c: Handle new builtin types and remove useless ones.
3686 * config/i386/sse.md: Update VFIXUPIMM* patterns.
3687 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3688 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3689 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
3690 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3691 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3692 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
3693 * config/i386/subst.md:
3694 (round_saeonly_sd_mask_operand4): Add new subst_attr.
3695 (round_saeonly_sd_mask_op4): Ditto.
3696 (round_saeonly_expand_operand5): Ditto.
3697 (round_saeonly_expand): Update.
3699 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
3703 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
3705 * config/i386/sse.md: Combine VFIXUPIMM* patterns
3706 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3707 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3708 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
3709 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3710 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3711 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
3713 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
3717 2018-12-15 Jakub Jelinek <jakub@redhat.com>
3720 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
3721 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
3722 instead of UNSPEC_FIXUPIMM.
3724 2019-01-17 Richard Biener <rguenther@suse.de>
3727 * dwarf2out.c (want_pubnames): Never generate pubnames sections
3728 and friends for the LTO part of debug info.
3730 2019-01-17 Jakub Jelinek <jakub@redhat.com>
3732 PR tree-optimization/86214
3733 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
3736 PR rtl-optimization/88870
3737 * dce.c (deletable_insn_p): Never delete const/pure calls that can
3738 throw if we can't alter the cfg or delete dead exceptions.
3739 (mark_insn): Don't call find_call_stack_args for such calls.
3741 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
3743 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
3744 prototypes for vec_st.
3745 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
3746 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
3747 mainly on signed/unsigned long long and double.
3749 2019-01-16 David Malcolm <dmalcolm@redhat.com>
3752 * combine.c (delete_noop_moves): Convert to "bool" return,
3753 returning true if any edges are eliminated.
3754 (combine_instructions): Also return true if delete_noop_moves
3757 2019-01-16 Tamar Christina <tamar.christina@arm.com>
3759 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
3760 correct max nunits for endian swap.
3761 (aarch64_expand_fcmla_builtin): Correct subreg code.
3762 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
3763 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
3766 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
3768 * config/alpha/alpha.c (alpha_gimplify_va_arg):
3769 Handle split indirect COMPLEX_TYPE arguments.
3771 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
3774 * config/aarch64/aarch64-modes.def: Add comment about how the carry
3775 bit is set by add and compare.
3776 (CC_ADC): New CC_MODE.
3777 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
3778 to cache the code and mode of X. Adjust the shape of a CC_Cmode
3779 comparison. Add detection for CC_ADCmode.
3780 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
3782 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
3783 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
3784 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
3785 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
3786 to eliminate the need for zero-extending the operands.
3787 (add<mode>3_compareC_imm): Delete. Merge into ...
3788 (add<mode>3_compareC): ... this. Restructure the comparison to
3789 eliminate the need for zero-extending the operands.
3790 (add<mode>3_carryin): Use LTU for the overflow detection.
3791 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
3792 Reexpress comparison for overflow.
3793 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
3794 (add<mode>3_carryinC): Likewise.
3795 (add<mode>3_carryinV): Use LTU for carry between partials.
3796 * config/aarch64/predicates.md (aarch64_carry_operation): Update
3797 handling of CC_Cmode and add CC_ADCmode.
3798 (aarch64_borrow_operation): Likewise.
3800 2019-01-16 Tamar Christina <tamar.christina@arm.com>
3802 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
3803 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
3804 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
3805 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
3807 2019-01-16 Martin Liska <mliska@suse.cz>
3809 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
3811 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
3813 * gcc.c (add_sysrooted_hdrs_prefix): New function.
3814 (path_prefix_reset): Move up in the source file.
3815 (find_fortran_preinclude_file): Make complex search for the
3816 fortran header files.
3818 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
3820 * godump.c (go_output_typedef): When outputting a typedef, refer
3821 to the underlying type by its name and not its structure.
3823 2019-01-15 David Malcolm <dmalcolm@redhat.com>
3826 * tree.c (build_function_type): Assert that arg_types is not
3829 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
3832 * doc/extend.texi: Document that listing the stack pointer in the
3833 clobber list of an asm is a deprecated feature.
3834 * common.opt (Wdeprecated): Moved from c-family/c.opt.
3835 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
3836 warning instead of an error for clobbers of the stack pointer.
3837 Add a note explaining why.
3839 2019-01-15 Richard Biener <rguenther@suse.de>
3842 * dwarf2out.c (gen_member_die): Do not generate inheritance
3845 2019-01-15 Richard Biener <rguenther@suse.de>
3847 PR tree-optimization/88855
3848 * tree-if-conv.c (combine_blocks): Collect
3849 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
3851 2019-01-15 Tom de Vries <tdevries@suse.de>
3854 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
3855 lhs == NULL_TREE for gang-level reduction.
3857 2019-01-15 Richard Biener <rguenther@suse.de>
3858 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3861 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
3862 return true if SSA_NAME is already marked in visited bitmap.
3863 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
3865 2019-01-15 Jakub Jelinek <jakub@redhat.com>
3867 PR tree-optimization/88775
3868 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
3869 equal == 0 equality pointer comparisons some more if compared in
3870 integral types and either one points to an automatic var and the
3871 other to a global, or we can prove at least one points to the middle
3872 or both point to start or both point to end.
3874 2019-01-14 Andi Kleen <ak@linux.intel.com>
3876 * Makefile.in: Lower autofdo sampling rate by 10x.
3877 * Makefile.tpl: Dito.
3879 2019-01-14 Tom Honermann <tom@honermann.net>
3881 * defaults.h: Define CHAR8_TYPE.
3883 2019-01-14 Martin Sebor <msebor@redhat.com>
3886 * doc/extend.texi (Darwin Format Checks): Clarify.
3888 2019-01-14 Richard Biener <rguenther@suse.de>
3890 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
3891 whether we are in (simplify ...) or (match ...) context.
3893 2019-01-14 Jakub Jelinek <jakub@redhat.com>
3895 PR rtl-optimization/88796
3896 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
3897 * cfgexpand.c (stack_protect_prologue): Initialize
3898 crtl->stack_protect_guard_decl.
3899 * function.c (stack_protect_epilogue): Use it instead of calling
3900 targetm.stack_protect_guard again.
3901 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
3902 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
3903 crtl->stack_protect_guard_decl.
3904 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
3905 on the returned MEM_EXPR.
3907 2019-01-12 Tom de Vries <tdevries@suse.de>
3909 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
3910 vector length using -fopenacc-dim.
3912 2019-01-12 Tom de Vries <tdevries@suse.de>
3914 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
3915 lengths into account.
3917 2019-01-12 Svante Signell <svante.signell@gmail.com>
3919 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
3920 (TARGET_CAN_SPLIT_STACK): Define.
3921 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
3923 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
3925 * params.def (inline-unit-growth): Set to 40.
3927 2019-01-12 Jakub Jelinek <jakub@redhat.com>
3929 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
3931 2019-01-12 Tom de Vries <tdevries@suse.de>
3933 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
3934 region calling vector-partitionable routine, set default_vector_length
3937 2019-01-12 Tom de Vries <tdevries@suse.de>
3939 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
3940 variable default_vector_length.
3942 2019-01-12 Tom de Vries <tdevries@suse.de>
3945 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
3946 from oacc_default_dims, as oacc_validate_dims would do it, and apply
3949 2019-01-12 Tom de Vries <tdevries@suse.de>
3951 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
3952 (nvptx_goacc_validate_dims): Add used parameter.
3953 * doc/tm.texi: Regenerate.
3954 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
3955 argument to call to targetm.goacc.validate_dims.
3956 (default_goacc_validate_dims): Add used
3958 * target.def (validate_dims): Add used parameter in DEFHOOK.
3959 * targhooks.h (default_goacc_validate_dims): Add used parameter.
3961 2019-01-11 Jakub Jelinek <jakub@redhat.com>
3965 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
3967 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
3968 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
3969 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
3970 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
3972 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
3974 PR rtl-optimization/87305
3976 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
3977 for little endian pseudos used as paradoxical subreg.
3979 2019-01-11 Jakub Jelinek <jakub@redhat.com>
3981 PR tree-optimization/88693
3982 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
3983 for STRING_CSTs that don't contain any NUL characters in the first
3984 TREE_STRING_LENGTH bytes.
3986 2019-01-11 Alan Modra <amodra@gmail.com>
3990 * genattrtab.c (min_fn): Don't translate values.
3991 (min_attr_value): Return INT_MAX when the value can't be calculated.
3992 Return minimum among any values that can be calculated.
3993 (max_attr_value): Adjust.
3995 2019-01-11 Jakub Jelinek <jakub@redhat.com>
3997 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
3999 2019-01-11 Steve Ellcey <sellcey@marvell.com>
4001 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
4002 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
4003 (aarch64_return_call_with_max_clobbers): New function.
4004 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
4005 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
4007 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
4008 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
4009 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
4010 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
4011 * cselib.c (cselib_process_insn): Add argument to
4012 targetm.hard_regno_call_part_clobbered call.
4013 * ira-conflicts.c (ira_build_conflicts): Ditto.
4014 * ira-costs.c (ira_tune_allocno_costs): Ditto.
4015 * lra-constraints.c (inherit_reload_reg): Ditto.
4016 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
4017 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
4018 argument. Call targetm.return_call_with_max_clobbers.
4019 Add argument to targetm.hard_regno_call_part_clobbered call.
4020 (calls_have_same_clobbers_p): New function.
4021 (process_bb_lives): Add call_insn and last_call_insn variables.
4022 Pass call_insn to check_pseudos_live_through_calls.
4023 Modify if stmt to check targetm.return_call_with_max_clobbers.
4024 Update setting of flush variable.
4025 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
4027 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
4028 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
4029 targetm.hard_regno_call_part_clobbered call.
4030 * reginfo.c (choose_hard_reg_mode): Ditto.
4031 * regrename.c (check_new_reg_p): Ditto.
4032 * reload.c (find_equiv_reg): Ditto.
4033 * reload1.c (emit_reload_insns): Ditto.
4034 * sched-deps.c (deps_analyze_insn): Ditto.
4035 * sel-sched.c (init_regs_for_mode): Ditto.
4036 (mark_unavailable_hard_regs): Ditto.
4037 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
4038 * target.def (hard_regno_call_part_clobbered): Add insn argument.
4039 (return_call_with_max_clobbers): New target function.
4040 * doc/tm.texi: Regenerate.
4041 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
4042 * hooks.c (hook_bool_uint_mode_false): Change to
4043 hook_bool_insn_uint_mode_false.
4044 * hooks.h (hook_bool_uint_mode_false): Ditto.
4046 2019-01-11 Steve Ellcey <sellcey@marvell.com>
4048 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
4049 (aarch64_remove_extra_call_preserved_regs): New function.
4050 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
4051 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
4052 * doc/tm.texi: Regenerate.
4053 * final.c (get_call_reg_set_usage): Call new hook.
4054 * target.def (remove_extra_call_preserved_regs): New hook.
4055 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
4056 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
4058 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4061 * passes.c (finish_optimization_passes): Call print_combine_total_stats
4062 inside of pass_combine_1 dump rather than pass_profile_1.
4064 2019-01-11 Tom de Vries <tdevries@suse.de>
4066 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
4067 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
4068 (PTX_NUM_PER_WORKER_BARRIERS): Define.
4069 (nvptx_apply_dim_limits): Prevent vector_length 64 and
4072 2019-01-11 Tom de Vries <tdevries@suse.de>
4074 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
4076 2019-01-11 Jan Beulich <jbeulich@suse.com>
4078 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
4079 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
4080 sse2_cvtsi2sd): Add {l}.
4081 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
4084 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4087 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
4089 (*float<floatunssuffix>v2div2sf2): New define_insn.
4090 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
4091 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
4092 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
4093 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
4094 match_operands with "const0_operand" "C".
4096 2019-01-10 Tamar Christina <tamar.christina@arm.com>
4098 * config/aarch64/aarch64-builtins.c
4099 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
4100 (aarch64_init_simd_builtins): ...Here
4102 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
4104 PR rtl-optimization/87305
4106 (setup_live_pseudos_and_spill_after_risky_transforms): Check
4107 allocation for big endian pseudos used as paradoxical subregs and
4108 spill them if it is wrong.
4109 * lra-constraints.c (lra_constraints): Add a comment.
4111 2019-01-10 Richard Biener <rguenther@suse.de>
4113 PR tree-optimization/88792
4114 * tree-ssa-pre.c (get_representative_for): Do not return a
4117 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4121 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
4122 (assign_parm_setup_block): Do the argument slot realignment here
4125 2019-01-10 Stefan Agner <stefan@agner.ch>
4128 * config/arm/arm.c (arm_option_override_internal): Force
4129 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
4131 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4134 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
4137 2019-01-10 Tamar Christina <tamar.christina@arm.com>
4139 * config/arm/arm-builtins.c
4140 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
4141 (MAC_LANE_PAIR_QUALIFIERS): New.
4142 (arm_expand_builtin_args): Use it.
4143 (arm_expand_builtin_1): Likewise.
4144 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
4145 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
4146 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
4147 * config/arm/arm_neon.h:
4148 (vcadd_rot90_f16): New.
4149 (vcaddq_rot90_f16): New.
4150 (vcadd_rot270_f16): New.
4151 (vcaddq_rot270_f16): New.
4154 (vcmla_lane_f16): New.
4155 (vcmla_laneq_f16): New.
4156 (vcmlaq_lane_f16): New.
4157 (vcmlaq_laneq_f16): New.
4158 (vcmla_rot90_f16): New.
4159 (vcmlaq_rot90_f16): New.
4160 (vcmla_rot90_lane_f16): New.
4161 (vcmla_rot90_laneq_f16): New.
4162 (vcmlaq_rot90_lane_f16): New.
4163 (vcmlaq_rot90_laneq_f16): New.
4164 (vcmla_rot180_f16): New.
4165 (vcmlaq_rot180_f16): New.
4166 (vcmla_rot180_lane_f16): New.
4167 (vcmla_rot180_laneq_f16): New.
4168 (vcmlaq_rot180_lane_f16): New.
4169 (vcmlaq_rot180_laneq_f16): New.
4170 (vcmla_rot270_f16): New.
4171 (vcmlaq_rot270_f16): New.
4172 (vcmla_rot270_lane_f16): New.
4173 (vcmla_rot270_laneq_f16): New.
4174 (vcmlaq_rot270_lane_f16): New.
4175 (vcmlaq_rot270_laneq_f16): New.
4176 (vcadd_rot90_f32): New.
4177 (vcaddq_rot90_f32): New.
4178 (vcadd_rot270_f32): New.
4179 (vcaddq_rot270_f32): New.
4182 (vcmla_lane_f32): New.
4183 (vcmla_laneq_f32): New.
4184 (vcmlaq_lane_f32): New.
4185 (vcmlaq_laneq_f32): New.
4186 (vcmla_rot90_f32): New.
4187 (vcmlaq_rot90_f32): New.
4188 (vcmla_rot90_lane_f32): New.
4189 (vcmla_rot90_laneq_f32): New.
4190 (vcmlaq_rot90_lane_f32): New.
4191 (vcmlaq_rot90_laneq_f32): New.
4192 (vcmla_rot180_f32): New.
4193 (vcmlaq_rot180_f32): New.
4194 (vcmla_rot180_lane_f32): New.
4195 (vcmla_rot180_laneq_f32): New.
4196 (vcmlaq_rot180_lane_f32): New.
4197 (vcmlaq_rot180_laneq_f32): New.
4198 (vcmla_rot270_f32): New.
4199 (vcmlaq_rot270_f32): New.
4200 (vcmla_rot270_lane_f32): New.
4201 (vcmla_rot270_laneq_f32): New.
4202 (vcmlaq_rot270_lane_f32): New.
4203 (vcmlaq_rot270_laneq_f32): New.
4204 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
4205 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180, vcmla_lane270,
4206 vcmla_laneq0, vcmla_laneq90, vcmla_laneq180, vcmla_laneq270,
4207 vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180, vcmlaq_lane270): New.
4208 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
4209 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
4210 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
4211 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
4212 (arm_option_reconfigure_globals): Use them.
4213 * config/arm/iterators.md (VDF, VQ_HSF): New.
4214 (VCADD, VCMLA): New.
4215 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
4216 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>): New.
4217 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
4218 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
4220 2019-01-10 Tamar Christina <tamar.christina@arm.com>
4222 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add qualifier_lane_pair_index.
4223 (emit-rtl.h): Include.
4224 (TYPES_QUADOP_LANE_PAIR): New.
4225 (aarch64_simd_expand_args): Use it.
4226 (aarch64_simd_expand_builtin): Likewise.
4227 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum): New.
4228 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
4229 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
4230 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
4231 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
4232 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
4233 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
4234 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
4235 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
4236 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
4237 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
4238 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add __ARM_FEATURE_COMPLEX.
4239 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0, fcmla90,
4240 fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180, fcmla_lane270,
4241 fcmla_laneq0, fcmla_laneq90, fcmla_laneq180, fcmla_laneq270,
4242 fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180, fcmlaq_lane270): New.
4243 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
4244 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,aarch64_fcadd<rot><mode>,
4245 aarch64_fcmla<rot><mode>): New.
4246 * config/aarch64/arm_neon.h:
4247 (vcadd_rot90_f16): New.
4248 (vcaddq_rot90_f16): New.
4249 (vcadd_rot270_f16): New.
4250 (vcaddq_rot270_f16): New.
4253 (vcmla_lane_f16): New.
4254 (vcmla_laneq_f16): New.
4255 (vcmlaq_lane_f16): New.
4256 (vcmlaq_rot90_lane_f16): New.
4257 (vcmla_rot90_laneq_f16): New.
4258 (vcmla_rot90_lane_f16): New.
4259 (vcmlaq_rot90_f16): New.
4260 (vcmla_rot90_f16): New.
4261 (vcmlaq_laneq_f16): New.
4262 (vcmla_rot180_laneq_f16): New.
4263 (vcmla_rot180_lane_f16): New.
4264 (vcmlaq_rot180_f16): New.
4265 (vcmla_rot180_f16): New.
4266 (vcmlaq_rot90_laneq_f16): New.
4267 (vcmlaq_rot270_laneq_f16): New.
4268 (vcmlaq_rot270_lane_f16): New.
4269 (vcmla_rot270_laneq_f16): New.
4270 (vcmlaq_rot270_f16): New.
4271 (vcmla_rot270_f16): New.
4272 (vcmlaq_rot180_laneq_f16): New.
4273 (vcmlaq_rot180_lane_f16): New.
4274 (vcmla_rot270_lane_f16): New.
4275 (vcadd_rot90_f32): New.
4276 (vcaddq_rot90_f32): New.
4277 (vcaddq_rot90_f64): New.
4278 (vcadd_rot270_f32): New.
4279 (vcaddq_rot270_f32): New.
4280 (vcaddq_rot270_f64): New.
4284 (vcmla_lane_f32): New.
4285 (vcmla_laneq_f32): New.
4286 (vcmlaq_lane_f32): New.
4287 (vcmlaq_laneq_f32): New.
4288 (vcmla_rot90_f32): New.
4289 (vcmlaq_rot90_f32): New.
4290 (vcmlaq_rot90_f64): New.
4291 (vcmla_rot90_lane_f32): New.
4292 (vcmla_rot90_laneq_f32): New.
4293 (vcmlaq_rot90_lane_f32): New.
4294 (vcmlaq_rot90_laneq_f32): New.
4295 (vcmla_rot180_f32): New.
4296 (vcmlaq_rot180_f32): New.
4297 (vcmlaq_rot180_f64): New.
4298 (vcmla_rot180_lane_f32): New.
4299 (vcmla_rot180_laneq_f32): New.
4300 (vcmlaq_rot180_lane_f32): New.
4301 (vcmlaq_rot180_laneq_f32): New.
4302 (vcmla_rot270_f32): New.
4303 (vcmlaq_rot270_f32): New.
4304 (vcmlaq_rot270_f64): New.
4305 (vcmla_rot270_lane_f32): New.
4306 (vcmla_rot270_laneq_f32): New.
4307 (vcmlaq_rot270_lane_f32): New.
4308 (vcmlaq_rot270_laneq_f32): New.
4309 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
4310 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
4311 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
4312 (FCADD, FCMLA): New.
4314 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
4316 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
4320 * config/pa/pa.c: Change "can not" to "cannot".
4321 * gimple-ssa-evrp-analyze.c: Likewise.
4322 * ipa-icf.c: Likewise.
4323 * ipa-polymorphic-call.c: Likewise.
4324 * ipa-pure-const.c: Likewise.
4325 * lra-constraints.c: Likewise.
4326 * lra-remat.c: Likewise.
4327 * reload1.c: Likewise.
4328 * reorg.c: Likewise.
4329 * tree-ssa-uninit.c: Likewise.
4331 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
4335 * Makefile.in: Mechanically replace "can not" with "cannot".
4336 * alias.c: Likewise.
4337 * builtins.c: Likewise.
4338 * calls.c: Likewise.
4339 * cgraph.c: Likewise.
4340 * cgraph.h: Likewise.
4341 * cgraphclones.c: Likewise.
4342 * cgraphunit.c: Likewise.
4343 * combine-stack-adj.c: Likewise.
4344 * combine.c: Likewise.
4345 * common/config/i386/i386-common.c: Likewise.
4346 * config/aarch64/aarch64.c: Likewise.
4347 * config/alpha/sync.md: Likewise.
4348 * config/arc/arc.c: Likewise.
4349 * config/arc/predicates.md: Likewise.
4350 * config/arm/arm-c.c: Likewise.
4351 * config/arm/arm.c: Likewise.
4352 * config/arm/arm.h: Likewise.
4353 * config/arm/arm.md: Likewise.
4354 * config/arm/cortex-r4f.md: Likewise.
4355 * config/csky/csky.c: Likewise.
4356 * config/csky/csky.h: Likewise.
4357 * config/darwin-f.c: Likewise.
4358 * config/epiphany/epiphany.md: Likewise.
4359 * config/i386/i386.c: Likewise.
4360 * config/i386/sol2.h: Likewise.
4361 * config/m68k/m68k.c: Likewise.
4362 * config/mcore/mcore.h: Likewise.
4363 * config/microblaze/microblaze.md: Likewise.
4364 * config/mips/20kc.md: Likewise.
4365 * config/mips/sb1.md: Likewise.
4366 * config/nds32/nds32.c: Likewise.
4367 * config/nds32/predicates.md: Likewise.
4368 * config/pa/pa.c: Likewise.
4369 * config/rs6000/e300c2c3.md: Likewise.
4370 * config/rs6000/rs6000.c: Likewise.
4371 * config/s390/s390.h: Likewise.
4372 * config/sh/sh.c: Likewise.
4373 * config/sh/sh.md: Likewise.
4374 * config/spu/vmx2spu.h: Likewise.
4375 * cprop.c: Likewise.
4376 * dbxout.c: Likewise.
4377 * df-scan.c: Likewise.
4378 * doc/cfg.texi: Likewise.
4379 * doc/extend.texi: Likewise.
4380 * doc/fragments.texi: Likewise.
4381 * doc/gty.texi: Likewise.
4382 * doc/invoke.texi: Likewise.
4383 * doc/lto.texi: Likewise.
4384 * doc/md.texi: Likewise.
4385 * doc/objc.texi: Likewise.
4386 * doc/rtl.texi: Likewise.
4387 * doc/tm.texi: Likewise.
4389 * emit-rtl.c: Likewise.
4390 * emit-rtl.h: Likewise.
4391 * except.c: Likewise.
4392 * expmed.c: Likewise.
4394 * fold-const.c: Likewise.
4395 * genautomata.c: Likewise.
4396 * gimple-fold.c: Likewise.
4397 * hard-reg-set.h: Likewise.
4398 * ifcvt.c: Likewise.
4399 * ipa-comdats.c: Likewise.
4400 * ipa-cp.c: Likewise.
4401 * ipa-devirt.c: Likewise.
4402 * ipa-fnsummary.c: Likewise.
4403 * ipa-icf.c: Likewise.
4404 * ipa-inline-transform.c: Likewise.
4405 * ipa-inline.c: Likewise.
4406 * ipa-polymorphic-call.c: Likewise.
4407 * ipa-profile.c: Likewise.
4408 * ipa-prop.c: Likewise.
4409 * ipa-pure-const.c: Likewise.
4410 * ipa-reference.c: Likewise.
4411 * ipa-split.c: Likewise.
4412 * ipa-visibility.c: Likewise.
4414 * ira-build.c: Likewise.
4415 * ira-color.c: Likewise.
4416 * ira-conflicts.c: Likewise.
4417 * ira-costs.c: Likewise.
4418 * ira-int.h: Likewise.
4419 * ira-lives.c: Likewise.
4422 * loop-invariant.c: Likewise.
4423 * loop-unroll.c: Likewise.
4424 * lower-subreg.c: Likewise.
4425 * lra-assigns.c: Likewise.
4426 * lra-constraints.c: Likewise.
4427 * lra-eliminations.c: Likewise.
4428 * lra-lives.c: Likewise.
4429 * lra-remat.c: Likewise.
4430 * lra-spills.c: Likewise.
4432 * lto-cgraph.c: Likewise.
4433 * lto-streamer-out.c: Likewise.
4434 * postreload-gcse.c: Likewise.
4435 * predict.c: Likewise.
4436 * profile-count.h: Likewise.
4437 * profile.c: Likewise.
4438 * recog.c: Likewise.
4440 * reload.c: Likewise.
4441 * reload1.c: Likewise.
4442 * reorg.c: Likewise.
4443 * resource.c: Likewise.
4444 * rtl.def: Likewise.
4446 * rtlanal.c: Likewise.
4447 * sched-deps.c: Likewise.
4448 * sched-ebb.c: Likewise.
4449 * sched-rgn.c: Likewise.
4450 * sel-sched-ir.c: Likewise.
4451 * sel-sched.c: Likewise.
4452 * shrink-wrap.c: Likewise.
4453 * simplify-rtx.c: Likewise.
4454 * symtab.c: Likewise.
4455 * target.def: Likewise.
4456 * toplev.c: Likewise.
4457 * tree-call-cdce.c: Likewise.
4458 * tree-cfg.c: Likewise.
4459 * tree-complex.c: Likewise.
4460 * tree-core.h: Likewise.
4461 * tree-eh.c: Likewise.
4462 * tree-inline.c: Likewise.
4463 * tree-loop-distribution.c: Likewise.
4464 * tree-nrv.c: Likewise.
4465 * tree-profile.c: Likewise.
4466 * tree-sra.c: Likewise.
4467 * tree-ssa-alias.c: Likewise.
4468 * tree-ssa-dce.c: Likewise.
4469 * tree-ssa-dom.c: Likewise.
4470 * tree-ssa-forwprop.c: Likewise.
4471 * tree-ssa-loop-im.c: Likewise.
4472 * tree-ssa-loop-ivcanon.c: Likewise.
4473 * tree-ssa-loop-ivopts.c: Likewise.
4474 * tree-ssa-loop-niter.c: Likewise.
4475 * tree-ssa-phionlycprop.c: Likewise.
4476 * tree-ssa-phiopt.c: Likewise.
4477 * tree-ssa-propagate.c: Likewise.
4478 * tree-ssa-threadedge.c: Likewise.
4479 * tree-ssa-threadupdate.c: Likewise.
4480 * tree-ssa-uninit.c: Likewise.
4481 * tree-ssanames.c: Likewise.
4482 * tree-streamer-out.c: Likewise.
4485 * vr-values.c: Likewise.
4487 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
4489 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
4490 (ix86_split_xorsign): Ditto.
4491 * config/i386/i386.c (ix86_expand_xorsign): New function.
4492 (ix86_split_xorsign): Ditto.
4493 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
4494 (xorsign<mode>3): New expander.
4495 (xorsign<mode>3_1): New insn_and_split pattern.
4496 * config/i386/sse.md (xorsign<mode>3): New expander.
4498 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
4500 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
4501 (*tablejump_sp64): Likewise.
4502 (*tablejump<P:mode>): ...this.
4503 (*call_address_sp32): Merge into...
4504 (*call_address_sp64): Likewise.
4505 (*call_address<P:mode>): ...this.
4506 (*call_symbolic_sp32): Merge into...
4507 (*call_symbolic_sp64): Likewise.
4508 (*call_symbolic<P:mode>): ...this.
4509 (call_value): Remove constraint and add predicate.
4510 (*call_value_address_sp32): Merge into...
4511 (*call_value_address_sp64): Likewise.
4512 (*call_value_address<P:mode>): ...this.
4513 (*call_value_symbolic_sp32): Merge into...
4514 (*call_value_symbolic_sp64): Likewise.
4515 (*call_value_symbolic<P:mode>): ...this.
4516 (*sibcall_symbolic_sp32): Merge into...
4517 (*sibcall_symbolic_sp64): Likewise.
4518 (*sibcall_symbolic<P:mode>): ...this.
4519 (sibcall_value): Remove constraint and add predicate.
4520 (*sibcall_value_symbolic_sp32): Merge into...
4521 (*sibcall_value_symbolic_sp64): Likewise.
4522 (*sibcall_value_symbolic<P:mode>): ...this.
4523 (window_save): Minor tweak.
4524 (*branch_sp32): Merge into...
4525 (*branch_sp64): Likewise.
4526 (*branch<P:mode>): ...this.
4528 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
4529 James Clarke <jrtc27@jrtc27.com>
4532 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
4533 consistently in TLS address generation and adjust code to the renaming
4534 of patterns. Mark calls to __tls_get_addr as const.
4535 * config/sparc/sparc.md (tgd_hi22): Turn into...
4536 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
4537 (tgd_lo10): Turn into...
4538 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
4539 (tgd_add32): Merge into...
4540 (tgd_add64): Likewise.
4541 (tgd_add<P:mode>): ...this and use Pmode throughout.
4542 (tldm_hi22): Turn into...
4543 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
4544 (tldm_lo10): Turn into...
4545 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
4546 (tldm_add32): Merge into...
4547 (tldm_add64): Likewise.
4548 (tldm_add<P:mode>): ...this and use Pmode throughout.
4549 (tldm_call32): Merge into...
4550 (tldm_call64): Likewise.
4551 (tldm_call<P:mode>): ...this and use Pmode throughout.
4552 (tldo_hix22): Turn into...
4553 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
4554 (tldo_lox10): Turn into...
4555 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
4556 (tldo_add32): Merge into...
4557 (tldo_add64): Likewise.
4558 (tldo_add<P:mode>): ...this and use Pmode throughout.
4559 (tie_hi22): Turn into...
4560 (tie_hi22<P:mode>): ...this and use Pmode throughout.
4561 (tie_lo10): Turn into...
4562 (tie_lo10<P:mode>): ...this and use Pmode throughout.
4563 (tie_ld64): Use DImode throughout.
4564 (tie_add32): Merge into...
4565 (tie_add64): Likewise.
4566 (tie_add<P:mode>): ...this and use Pmode throughout.
4567 (tle_hix22_sp32): Merge into...
4568 (tle_hix22_sp64): Likewise.
4569 (tle_hix22<P:mode>): ...this and use Pmode throughout.
4570 (tle_lox22_sp32): Merge into...
4571 (tle_lox22_sp64): Likewise.
4572 (tle_lox22<P:mode>): ...this and use Pmode throughout.
4573 (*tldo_ldub_sp32): Merge into...
4574 (*tldo_ldub_sp64): Likewise.
4575 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
4576 (*tldo_ldub1_sp32): Merge into...
4577 (*tldo_ldub1_sp64): Likewise.
4578 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
4579 (*tldo_ldub2_sp32): Merge into...
4580 (*tldo_ldub2_sp64): Likewise.
4581 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
4582 (*tldo_ldsb1_sp32): Merge into...
4583 (*tldo_ldsb1_sp64): Likewise.
4584 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
4585 (*tldo_ldsb2_sp32): Merge into...
4586 (*tldo_ldsb2_sp64): Likewise.
4587 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
4588 (*tldo_ldub3_sp64): Use DImode throughout.
4589 (*tldo_ldsb3_sp64): Likewise.
4590 (*tldo_lduh_sp32): Merge into...
4591 (*tldo_lduh_sp64): Likewise.
4592 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
4593 (*tldo_lduh1_sp32): Merge into...
4594 (*tldo_lduh1_sp64): Likewise.
4595 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
4596 (*tldo_ldsh1_sp32): Merge into...
4597 (*tldo_ldsh1_sp64): Likewise.
4598 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
4599 (*tldo_lduh2_sp64): Use DImode throughout.
4600 (*tldo_ldsh2_sp64): Likewise.
4601 (*tldo_lduw_sp32): Merge into...
4602 (*tldo_lduw_sp64): Likewise.
4603 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
4604 (*tldo_lduw1_sp64): Use DImode throughout.
4605 (*tldo_ldsw1_sp64): Likewise.
4606 (*tldo_ldx_sp64): Likewise.
4607 (*tldo_stb_sp32): Merge into...
4608 (*tldo_stb_sp64): Likewise.
4609 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
4610 (*tldo_sth_sp32): Merge into...
4611 (*tldo_sth_sp64): Likewise.
4612 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
4613 (*tldo_stw_sp32): Merge into...
4614 (*tldo_stw_sp64): Likewise.
4615 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
4616 (*tldo_stx_sp64): Use DImode throughout.
4618 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4620 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
4621 check configure option to set BTI and Return Address Signing.
4622 * configure.ac: Add --enable-standard-branch-protection and
4623 --disable-standard-branch-protection.
4624 * configure: Regenerated.
4625 * doc/install.texi: Document the same.
4627 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4628 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4630 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
4631 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
4632 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
4634 * config/aarch64/aarch64-bti-insert.c: New file.
4635 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
4637 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
4639 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
4640 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
4641 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
4642 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
4644 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4646 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
4647 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
4648 Disable bti for -mbranch-protection=none.
4649 (aarch64_handle_standard_branch_protection): Enable bti for
4650 -mbranch-protection=standard.
4651 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
4652 -mbranch-protection.
4653 (aarch64_bti_enabled): Check if bti is enabled.
4654 * config/aarch64/aarch64.opt: Declare target variable.
4655 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
4657 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4659 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
4660 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
4661 (aarch64_expand_epilogue): Likewise.
4662 (aarch64_output_mi_thunk): Likewise
4663 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
4664 TAILCALL_ADDR_REGS to x16 and x17.
4665 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
4667 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4669 * config/aarch64/aarch64-option-extensions.def: Define
4670 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
4671 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
4672 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
4673 (AARCH64_FL_PREDRES): New.
4674 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
4675 AARCH64_FL_PREDRES by default.
4676 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
4678 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4680 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
4682 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
4683 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
4684 * doc/invoke.texi: Document ARMv8.5-A.
4686 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
4688 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
4689 (xorsign<mode>3): Likewise.
4691 2019-01-09 Jelinek <jakub@redhat.com>
4694 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
4695 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
4697 PR rtl-optimization/88331
4698 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
4699 not currently_expanding_to_rtl.
4701 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
4703 * doc/invoke.texi (-Os): Remove trailing spaces.
4704 (-finline-functions): Remove reference to -O2.
4706 2019-01-08 Jakub Jelinek <jakub@redhat.com>
4708 PR rtl-optimization/79593
4709 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
4711 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
4712 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
4714 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
4717 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
4721 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
4722 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
4724 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
4727 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
4728 ix86_avx_u128_mode_entry.
4730 2019-01-08 Martin Liska <mliska@suse.cz>
4732 PR tree-optimization/88753
4733 * tree-switch-conversion.c (switch_conversion::build_one_array):
4734 Come up with local variable constructor. Convert first to
4735 type of constructor values.
4737 2019-01-08 Richard Biener <rguenther@suse.de>
4739 PR tree-optimization/86554
4740 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
4741 rpo_avail): Move earlier.
4742 (visit_nary_op): When value-numbering to expressions
4743 with different overflow behavior make sure there's an
4744 available expression on the path.
4746 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
4748 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
4749 aarch64_parse_branch_protection,
4750 struct aarch64_branch_protect_type,
4751 aarch64_handle_no_branch_protection,
4752 aarch64_handle_standard_branch_protection,
4753 aarch64_validate_mbranch_protection,
4754 aarch64_handle_pac_ret_protection,
4755 aarch64_handle_attr_branch_protection,
4756 accepted_branch_protection_string,
4757 aarch64_pac_ret_subtypes,
4758 aarch64_branch_protect_types,
4759 aarch64_handle_pac_ret_leaf): Define.
4760 (aarch64_override_options_after_change_1, aarch64_override_options):
4761 Add check for accepted_branch_protection_string.
4762 (aarch64_option_save): Save accepted_branch_protection_string.
4763 (aarch64_option_restore): Save accepted_branch_protection_string.
4764 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
4765 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
4766 msign-return-address.
4767 * doc/invoke.texi: Add mbranch-protection.
4769 2019-01-08 Alan Modra <amodra@gmail.com>
4772 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
4773 Delete "unknownp" parameter. Adjust callers. Handle
4774 CONST_INT, PLUS, MINUS, and MULT.
4775 (attr_value_aligned): Renamed from or_attr_value.
4776 (min_attr_value): Return INT_MIN for unhandled rtl case..
4777 (min_fn): ..and translate to INT_MAX here.
4778 (write_length_unit_log): Modify to cope without "unknown".
4779 (write_attr_value): Handle IF_THEN_ELSE.
4781 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4783 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
4784 optimization for masked stores.
4786 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4789 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
4790 output vector directly to duplicate_and_interleave instead of
4791 going through a temporary. Postpone insertion of ctor_seq to
4792 the end of the loop.
4794 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
4797 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
4798 unsigned_p. Handle signed and unsigned overflow correction as
4800 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
4802 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
4804 (add<mode>3_compareV_imm): Make this callable for expanding.
4805 (subv<GPI:mode>4): Use register_operand for operand 1. Use
4806 aarch64_plus_operand for operand 2.
4807 (subv<GPI:mode>_insn): New insn pattern.
4808 (subv<GPI:mode>_imm): Likewise.
4809 (negv<GPI:mode>3): New expand pattern.
4810 (negv<GPI:mode>_insn): New insn pattern.
4811 (negv<GPI:mode>_cmp_only): Likewise.
4812 (cmpv<GPI:mode>_insn): Likewise.
4813 (subvti4): Use register_operand for operand 1. Update call to
4814 aarch64_expand_subvti.
4815 (usubvti4): Likewise.
4816 (negvti3): New expand pattern.
4817 (negdi_carryout): New insn pattern.
4818 (negvdi_carryinV): New insn pattern.
4819 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
4820 version the named version.
4821 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
4823 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
4825 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
4827 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
4828 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
4829 (sub<mode>3_carryinCV): Delete.
4830 (sub<GPI:mode>3_carryinV): New expand pattern.
4831 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
4833 2019-01-07 Richard Biener <rguenther@suse.de>
4835 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
4836 of tree_operand_hash.
4838 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4840 PR tree-optimization/88598
4841 * tree.h (single_nonzero_element): Declare.
4842 * tree.c (single_nonzero_element): New function.
4843 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
4844 if I is the only nonzero element of CST.
4846 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4848 PR tree-optimization/88598
4849 * tree.h (initializer_each_zero_or_onep): Declare.
4850 * tree.c (initializer_each_zero_or_onep): New function.
4851 (signed_or_unsigned_type_for): Handle float types too.
4852 (unsigned_type_for, signed_type_for): Update comments accordingly.
4853 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
4854 x & { 0 or -1, 0 or -1, ... }.
4856 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
4858 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
4859 with x86_64-pc-linux-gnu.
4861 2019-01-07 Tom de Vries <tdevries@suse.de>
4864 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
4866 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
4869 2019-01-07 Jakub Jelinek <jakub@redhat.com>
4871 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
4872 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
4873 TARGET_AVX512F as condition.
4876 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
4877 const_not_ok_for_debug_p target hook.
4878 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
4879 on UNSPEC and subexpressions thereof if all subexpressions of the
4880 UNSPEC are CONSTANT_P.
4882 PR tree-optimization/88676
4883 * tree-ssa-phiopt.c (two_value_replacement): New function.
4884 (tree_ssa_phiopt_worker): Call it.
4887 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
4888 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
4891 * tree-vect-generic.c: Include insn-config.h and recog.h.
4892 (expand_vector_piecewise): Add defaulted ret_type argument,
4893 if non-NULL, use that in preference to type for the result type.
4894 (expand_vector_parallel): Formatting fix.
4895 (do_vec_conversion, do_vec_narrowing_conversion,
4896 expand_vector_conversion): New functions.
4897 (expand_vector_operations_1): Call expand_vector_conversion
4898 for VEC_CONVERT ifn calls.
4899 * internal-fn.def (VEC_CONVERT): New internal function.
4900 * internal-fn.c (expand_VEC_CONVERT): New function.
4901 * fold-const-call.c (fold_const_vec_convert): New function.
4902 (fold_const_call): Use it for CFN_VEC_CONVERT.
4903 * doc/extend.texi (__builtin_convertvector): Document.
4905 2019-01-07 Tom de Vries <tdevries@suse.de>
4907 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
4908 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
4909 vector_red_partition, vector_red_sym): New global variables.
4910 (nvptx_option_override): Initialize vector_red_sym.
4911 (nvptx_declare_function_name): Restore red_partition register.
4912 (nvptx_file_end): Emit code to declare the vector reduction variables.
4913 (nvptx_output_red_partition): New function.
4914 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
4915 large vector reductions.
4916 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
4917 (nvptx_init_builtins): Add VECTOR_ADDR.
4918 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
4919 Handle nvptx_expand_shared_addr.
4920 (nvptx_get_shared_red_addr): Add vector argument and handle large
4922 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
4924 (nvptx_goacc_reduction_init): Likewise.
4925 (nvptx_goacc_reduction_fini): Likewise.
4926 (nvptx_goacc_reduction_teardown): Likewise.
4927 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
4928 init,fini,teardown}.
4929 (nvptx_init_axis_predicate): Initialize vector_red_partition.
4930 (nvptx_set_current_function): Init vector_red_partition.
4931 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
4932 (nvptx_red_partition): New insn.
4933 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
4935 2019-01-07 Tom de Vries <tdevries@suse.de>
4938 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
4941 2019-01-07 Tom de Vries <tdevries@suse.de>
4943 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
4944 (nvptx_option_override): Init oacc_bcast_partition.
4945 (nvptx_init_oacc_workers): New function.
4946 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
4947 (nvptx_needs_shared_bcast): New function.
4948 (nvptx_find_par): Generalize to enable vectors to use shared-memory
4950 (nvptx_shared_propagate): Initialize vector bcast partition and
4951 synchronization state.
4952 (nvptx_single): Generalize to enable vectors to use shared-memory
4954 (nvptx_process_pars): Likewise.
4955 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
4956 * config/nvptx/nvptx.h (struct machine_function): Add
4957 bcast_partition and sync_bar members.
4959 2019-01-07 Tom de Vries <tdevries@suse.de>
4961 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
4962 (nvptx_apply_dim_limits): New function.
4963 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
4966 2019-01-07 Tom de Vries <tdevries@suse.de>
4968 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
4969 as late as possible.
4971 2019-01-07 Tom de Vries <tdevries@suse.de>
4973 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
4974 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
4975 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
4976 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
4977 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
4979 2019-01-07 Tom de Vries <tdevries@suse.de>
4981 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
4983 2019-01-07 Tom de Vries <tdevries@suse.de>
4985 * omp-offload.c (oacc_get_min_dim): New function.
4986 * omp-offload.h (oacc_get_min_dim): Declare.
4988 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
4991 * config/i386/i386.c (function_value_ms_64): Return small sturct in
4992 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
4994 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4998 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
5000 * ipa-inline.c (edge_badness): Use inlined_time instead of
5001 inline_summaries->get.
5003 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5005 * opts.c (enable_fdo_optimizations): Enable
5006 version-loops-for-strides, loop-interchange, unrol-and-jam
5007 and tree-loop-distribution.
5008 * invoke.texi: Document newly enabled options.
5010 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5012 * doc/invoke.texi (max-inline-insns-small): New parameters.
5013 * ipa-inline.c (want_early_inline_function_p): simplify.
5014 (want_inline_small_function_p): Fix pasto from previous patch;
5015 use max-inline-insns-small bound.
5016 * params.def (max-inline-insns-small): New param.
5017 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
5018 variables correctly.
5020 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5022 * doc/invoke.texi: Document max-inline-insns-size,
5023 uninlined-function-insns, uninlined-function-time,
5024 uninlined-thunk-insns and uninlined-thunk-time.
5025 * params.def: Add max-inline-insns-size,
5026 uninlined-function-insns, uninlined-function-time,
5027 uninlined-thunk-insns and uninlined-thunk-time.
5028 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
5030 * ipa-inline.c (can_inline_edge_by_limits_p,
5031 want_inline_small_function_p): Use new parameters.
5033 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
5035 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
5037 2019-01-05 Jakub Jelinek <jakub@redhat.com>
5041 * expr.c (expand_assignment): For calls returning VLA structures
5042 if to_rtx is not a MEM, force it into a stack temporary.
5045 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
5046 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
5047 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
5048 subexpressions of both operands.
5049 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
5050 subrtxes are CONSTANT_P.
5051 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
5054 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
5056 * params.def (hot-bb-count-ws-permille): Set to 990.
5058 2019-01-04 Martin Sebor <msebor@redhat.com>
5061 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
5064 2019-01-04 Martin Sebor <msebor@redhat.com>
5067 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
5069 2019-01-04 Jakub Jelinek <jakub@redhat.com>
5071 * gdbinit.in: Turn off pagination for the skip commands, restore
5072 it to previous state afterwards.
5074 2019-01-04 Jakub Jelinek <jakub@redhat.com>
5077 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
5078 of GET_MODE (opN) as modes of the libcall arguments.
5080 2019-01-04 Jan Beulich <jbeulich@suse.com>
5082 * config/i386/sse.md
5083 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
5084 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
5085 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
5086 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
5087 avx512f_vmcmp<mode>3<round_saeonly_name>,
5088 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
5089 avx512f_maskcmp<mode>3,
5090 <avx512>_cvt<ssemodesuffix>2mask<mode>,
5091 <avx512>_cvt<ssemodesuffix>2mask<mode>,
5092 *<avx512>_cvtmask2<ssemodesuffix><mode>,
5093 *<avx512>_cvtmask2<ssemodesuffix><mode>,
5094 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
5095 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
5096 <avx512>_gt<mode>3<mask_scalar_merge_name>,
5097 <avx512>_gt<mode>3<mask_scalar_merge_name>,
5098 <avx512>_testm<mode>3<mask_scalar_merge_name>,
5099 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
5100 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
5101 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
5102 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
5103 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
5104 avx512cd_maskb_vec_dup<mode>,
5105 avx512cd_maskw_vec_dup<mode>,
5106 avx512dq_fpclass<mode><mask_scalar_merge_name>,
5107 avx512dq_vmfpclass<mode>,
5108 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
5111 2019-01-03 Martin Sebor <msebor@redhat.com>
5113 PR tree-optimization/88659
5114 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
5116 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
5118 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
5119 unaligned vsx and avoid lxvd2x/stxvd2x.
5120 (gen_lvx_v4si_move): New function.
5122 2019-01-03 Tom de Vries <tdevries@suse.de>
5124 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
5125 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
5127 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
5129 2019-01-03 Tom de Vries <tdevries@suse.de>
5131 * config/nvptx/nvptx.c (struct offload_attrs): New.
5132 (populate_offload_attrs): New function. Factor mask extraction out of
5133 nvptx_reorg. Add extraction of dimensions.
5134 (nvptx_reorg): Use populate_offload_attrs.
5136 2019-01-03 Tom de Vries <tdevries@suse.de>
5138 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
5139 cases for oacc_min_dims_p and routine_p. Add asserts for
5140 oacc_default_dims_p and offload_region_p.
5142 2019-01-03 Tom de Vries <tdevries@suse.de>
5144 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
5146 (nvptx_goacc_validate_dims): ... here.
5148 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
5150 PR tree-optimization/85574
5151 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
5153 (struct ssa_equip_hash_traits): Declare.
5154 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
5156 2019-01-03 Jakub Jelinek <jakub@redhat.com>
5159 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
5160 change it to qualified_type.
5162 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
5164 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
5165 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
5167 2019-01-02 Martin Sebor <msebor@redhat.com>
5168 Jeff Law <law@redhat.com>
5170 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
5171 (get_range_strlen_tree): Update appropriately.
5173 * gimple-fold.h (get_range_strlen): Drop unused last argument.
5175 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
5176 rather than set_range_info.
5177 * tree-ssa-strlen.c (set_strlen_range): Extracted from
5178 maybe_set_strlen_range. Handle potentially boundary crossing
5179 cases more conservatively.
5180 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
5181 Call set_strlen_range.
5182 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
5185 * gimple-fold.c (get_range_strlen): Update prototype to no longer
5186 need the flexp argument.
5187 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
5188 from calls to get_range_strlen. Update comments. Just update
5189 VAL for an unterminated const char array and let the reset of the
5190 code handle it normally. No longer try to set *flexp. Adjust
5192 (get_range_strlen): Update for the new get_range_strlen API.
5193 (get_maxval_strlen): Similarly.
5194 (gimple_fold_builtin_strlen): Handle update meaning of return value
5195 from get_range_strlen.
5196 * gimple-ssa-sprintf.c (get_string_length): Update for the new
5197 get_range_strlen API.
5199 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
5202 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
5203 false at WPA time when body was removed.
5205 2019-01-02 Martin Liska <mliska@suse.cz>
5207 PR tree-optimization/88650
5208 * predict.c (set_even_probabilities): Calculate probability
5209 remainer only when really used.
5211 2019-01-02 Richard Biener <rguenther@suse.de>
5214 * tree-data-ref.c (analyze_subscript_affine_affine): Use
5215 widest_ints when mangling max_stmt_execution results.
5217 2019-01-02 Richard Biener <rguenther@suse.de>
5219 PR tree-optimization/88621
5220 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
5221 bitfields when canoncalizing.
5223 2019-01-02 Richard Biener <rguenther@suse.de>
5226 * config/i386/x86-tune-costs.h (intel_cost): Adjust
5227 cost of cheap SSE instruction.
5229 2019-01-02 Richard Biener <rguenther@suse.de>
5232 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
5233 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
5235 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
5236 set after UIDs before splitting them.
5238 2019-01-01 Martin Sebor <msebor@redhat.com>
5239 Jeff Law <law@redhat.com>
5241 * gimple-fold.c (get_range_strlen_tree): Record if the computed
5242 length is optimistic. If it is, then arrange to compute the
5243 conservative length as well.
5245 * gimple-fold.h (get_range_strlen): Update prototype.
5246 * builtins.c (check_access): Update call to get_range_strlen to use
5247 c_strlen_data pointer. Change various variable accesses to instead
5248 pull data from the c_strlen_data structure.
5249 (check_strncat_sizes, expand_builtin_strncat): Likewise.
5250 * calls.c (maybe_warn_nonstring_arg): Likewise.
5251 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
5252 minimum length if maximum lengh is unknown.
5253 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
5254 that used c_strlen, it's no longer needed. Restructure slightly.
5255 (format_string): Set unlikely range appropriately.
5256 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
5258 (get_range_strlen): Accept c_strlen_data pointer for external
5259 call sites as well. Pass through to call to internal get_range_strlen.
5260 Adjust minlen, maxlen and maxbound as needed.
5261 (get_maxval_strlen): Update comments.
5262 (gimple_fold_builtin_strlen): Update call to get_range_strlen
5263 to use c_strlen_data pointer. Change variable accesses to instead
5264 use c_strlen_data data members.
5266 * gimple-fold.c (get_range_strlen): Update prototype.
5267 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
5268 local variables. Use pdata to return information to caller.
5269 Update calls to get_range_strlen. Update pdata->maxbound.
5270 (get_range_strlen -- static version): Similarly.
5271 (get_range_strlen -- extern version): Update for internal
5272 get_range_strlen API change. Convert to external data format.
5273 (get_maxval_strlen): Similarly.
5275 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
5277 * coverage.c (get_coverage_counts): Use current_function_decl.
5278 * profile.c (read_thunk_profile): New function.
5279 (branch_prob): Add THUNK parameter.
5280 * tree-profile.c (tree_profiling): Handle thunks.
5281 * value-prof.c (init_node_map): Handle thunks.
5282 * value-prof.h (branch_prob): Upate prototype.
5283 (read_thunk_profile): Declare.
5285 2019-01-01 Jakub Jelinek <jakub@redhat.com>
5287 Update copyright years.
5289 * gcc.c (process_command): Update copyright notice dates.
5290 * gcov-dump.c (print_version): Ditto.
5291 * gcov.c (print_version): Ditto.
5292 * gcov-tool.c (print_version): Ditto.
5293 * gengtype.c (create_file): Ditto.
5294 * doc/cpp.texi: Bump @copying's copyright year.
5295 * doc/cppinternals.texi: Ditto.
5296 * doc/gcc.texi: Ditto.
5297 * doc/gccint.texi: Ditto.
5298 * doc/gcov.texi: Ditto.
5299 * doc/install.texi: Ditto.
5300 * doc/invoke.texi: Ditto.
5302 Copyright (C) 2019 Free Software Foundation, Inc.
5304 Copying and distribution of this file, with or without modification,
5305 are permitted in any medium without royalty provided the copyright
5306 notice and this notice are preserved.