1 2019-03-20 Jakub Jelinek <jakub@redhat.com>
4 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
5 update this_alternative nor this_alternative_set.
7 2019-03-19 Jim Wilson <jimw@sifive.com>
10 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
11 align, size, offset. Use them to handle a BLKmode reference. Update
13 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
15 2019-03-19 Jakub Jelinek <jakub@redhat.com>
17 PR rtl-optimization/89768
18 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
20 (unroll_loop_runtime_iterations): Likewise.
22 2019-03-19 Martin Sebor <msebor@redhat.com>
24 PR tree-optimization/89644
25 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
26 rather than endptr as an indicator of nul-termination.
28 PR tree-optimization/89644
29 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30 arrays in determining sequence sizes in strncpy and stpncpy.
32 2019-03-19 Martin Liska <mliska@suse.cz>
35 * predict.c (combine_predictions_for_bb): Empty likely_edges and
36 unlikely_edges if there's an edge that belongs to both these sets.
38 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
41 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
42 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
43 go via a stack temporary.
45 2019-03-19 Jakub Jelinek <jakub@redhat.com>
48 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
49 instead of gen_rtx_SUBREG.
50 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
52 2019-03-19 Richard Biener <rguenther@suse.de>
55 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
57 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
61 * tree.c (free_lang_data_in_decl): Do not free context of C++
64 2019-03-19 Jakub Jelinek <jakub@redhat.com>
67 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
68 subs for the first alternative except when operands[3] is 1.
71 * gimplify.c (gimplify_asm_expr): For output argument with
72 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
75 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
77 PR rtl-optimization/89753
78 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
79 explicit unrolling factor even more robust.
81 2019-03-19 Jakub Jelinek <jakub@redhat.com>
84 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
85 compensation use x2 += 1 instead of x2 -= -1 and when honoring
86 signed zeros, do another copysign after the compensation.
88 2019-03-18 Martin Sebor <msebor@redhat.com>
90 PR tree-optimization/89720
91 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
92 more conservatively, the same as anti-range.
94 2019-03-18 Richard Biener <rguenther@suse.de>
97 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
98 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
99 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
100 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
102 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
104 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
105 Extend queue to 1024 entries.
106 Add "consumed" field.
107 (gomp_print_output): Remove print_index parameter.
109 Change limit to unsigned.
110 Use consumed field to implement circular buffer.
111 Detect interrupted print in final pass.
112 Flush output at the end.
113 (run): Update gomp_print_output usage.
114 (main): Initialize kernargs->output_data.consumed.
116 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
118 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
119 calculation of the minimum number of scalar iterations for
120 fully-predicated loops.
122 2019-03-18 Martin Jambor <mjambor@suse.cz>
124 PR tree-optimization/89546
125 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
126 any propagation to its children took place.
128 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
131 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
132 parameter, and make use of it.
133 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
135 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
137 * config/arc/arc.opt (mcode-density-frame): Get the inital value
138 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
139 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
140 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
141 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
142 match what the ops is doing.
143 (push_multi_fp_blink): Likewise.
144 * config/arc/arc.c (arc_override_options): Enable enter/leave when
145 compiling for size and elf target.
146 (arc_save_callee_enter): Adjust note to match what enter/leave
149 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
151 * config/arc/arc.md (tst_movb): Fix constraint.
153 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
155 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
157 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
159 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
160 * config/arc/arc.c (arc_conditional_register_usage): Remove all
161 reg_alloc_order references.
162 (size_alloc_order): Define.
163 (arc_adjust_reg_alloc_order): New function.
164 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
166 (ADJUST_REG_ALLOC_ORDER): Define.
167 (HONOR_REG_ALLOC_ORDER): Likewise.
169 2019-03-18 Richard Biener <rguenther@suse.de>
172 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
173 loads and stores a bit more.
175 2019-03-18 Richard Biener <rguenther@suse.de>
178 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
179 load pessimization to stores as well.
181 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
184 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
185 successor, use NULL as its av set.
187 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
189 PR rtl-optimization/89721
190 * lra-constraints (invariant_p): Return false if side_effects_p holds.
192 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
195 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
196 When handling vec_extract, use modular arithmetic to allow
197 constant selectors greater than vector length.
198 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
199 V1TImode vectors to have constant selector values greater than 0.
200 Use modular arithmetic to compute vector index.
201 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
202 index for in-memory vectors. Correct code generation for
204 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
207 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
211 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
214 2019-03-15 Jakub Jelinek <jakub@redhat.com>
217 * tree.c (inchash::add_expr): Strip any location wrappers.
218 * fold-const.c (operand_equal_p): Move stripping of location wrapper
219 after hash verification.
222 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
223 SIGN_EXTEND and ZERO_EXTEND.
225 2019-03-14 Jason Merrill <jason@redhat.com>
226 Jakub Jelinek <jakub@redhat.com>
228 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
229 than if is_empty (*slot).
230 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
231 existing elt and for elt removal.
232 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
233 of already removed elt.
235 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
238 * config/i386/i386.c (remove_partial_avx_dependency): Handle
241 2019-03-14 Martin Liska <mliska@suse.cz>
244 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
246 2019-03-14 Richard Biener <rguenther@suse.de>
249 * config/i386/i386.c (make_resolver_func): Properly set
250 DECL_CONTEXT on the RESULT_DECL.
251 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
253 2019-03-14 Richard Biener <rguenther@suse.de>
255 * gimple-pretty-print.c: Include cfgloop.h.
256 (dump_gimple_phi): Adjust.
257 (dump_gimple_bb_header): Dump loop header for GIMPLE.
258 (pp_cfg_jump): Adjust.
259 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
260 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
261 (lower_phi_internal_fn): Remove.
262 (verify_gimple_call): Remove IFN_PHI special-casing.
263 (dump_function_to_file): Dump IL state.
264 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
265 done to deal with PHI nodes being present in non-SSA state.
267 2019-03-14 Jakub Jelinek <jakub@redhat.com>
270 * multiple_target.c (create_dispatcher_calls): Change
271 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
272 In the node->iterate_referring loop, push *ref rather than ref, call
273 ref->remove_reference () and always pass 0 to iterate_referring.
275 PR rtl-optimization/89679
276 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
277 would contain a paradoxical SUBREG.
279 2019-03-14 Richard Biener <rguenther@suse.de>
281 PR tree-optimization/89710
282 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
285 2019-03-14 Martin Liska <mliska@suse.cz>
287 * coverage.c (coverage_begin_function): Stream also
289 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
290 documentation about function declaration location.
291 * gcov-dump.c (tag_function): Print whole range
292 of function declaration.
293 * gcov.c (struct function_info): Add end_column field.
294 (function_info::function_info): Initialize it.
295 (output_json_intermediate_file): Output {start,end}_column
297 (read_graph_file): Read end_column.
299 2019-03-14 Richard Biener <rguenther@suse.de>
302 * fold-const.c (operand_equal_p): For INDIRECT_REF check
303 that the access types are similar.
305 2019-03-14 Jakub Jelinek <jakub@redhat.com>
307 PR tree-optimization/89703
308 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
309 aren't compatible also with builtin_decl_explicit. Check pure
310 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
311 and BUILT_IN_STPNCPY{,_CHK}.
313 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
316 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
317 addr32 prefix to VSIB address for X32.
318 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
320 (*avx512pf_gatherpf<mode>df_mask): Likewise.
321 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
322 (*avx512pf_scatterpf<mode>df_mask): Likewise.
323 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
324 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
325 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
326 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
327 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
328 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
329 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
330 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
331 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
332 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
333 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
334 (*avx512f_scatterdi<mode>): Likewise.
336 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
339 * lra-constraints.c (inherit_in_ebb): Update
340 potential_reload_hard_regs along with live_hard_regs.
342 2019-03-13 Jakub Jelinek <jakub@redhat.com>
345 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
347 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
349 2019-03-13 Martin Sebor <msebor@redhat.com>
351 PR tree-optimization/89662
352 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
355 2019-03-13 Richard Biener <rguenther@suse.de>
358 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
359 throw FP expressions at tree-affine.
361 2019-03-14 Richard Biener <rguenther@suse.de>
363 * tree-pretty-print.c (dump_generic_node): For -gimple properly
364 dump negative integer constants using _Literal (type) -num.
366 2019-03-13 Jakub Jelinek <jakub@redhat.com>
368 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
369 nonlocal_value member.
372 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
373 (ipa_simd_modify_function_body): Handle PHIs.
375 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
377 * config/s390/s390.c (s390_option_override_internal): Use more
378 aggressive inlining parameters.
380 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
382 * config/s390/3906.md: New file.
383 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
384 (LONGRUNNING_THRESHOLD): Remove.
385 (MAX_SCHED_MIX_SCORE): Decrease.
386 (MAX_SCHED_MIX_DISTANCE): Decrease.
387 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
388 (struct s390_sched_state): New struct to hold scheduling state.
389 (S390_SCHED_STATE_NORMAL): Remove.
390 (S390_SCHED_STATE_CRACKED): Remove.
391 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
392 (s390_get_sched_attrmask): Use new attribute.
393 (s390_get_unit_mask): Use new units.
394 (s390_is_fpd): New function.
395 (s390_is_fxd): New function.
396 (s390_is_longrunning): New function.
397 (s390_sched_score): Use new functions.
398 (s390_sched_reorder): Likewise.
399 (s390_sched_variable_issue): Rework and use new functions.
400 (s390_sched_init): Use new functions.
401 * config/s390/s390.h (s390_tune_attr): Add z14.
402 * config/s390/s390.md: Add z14.
404 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
406 * config/s390/2964.md: Update pipeline description.
407 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
408 (LONGRUNNING_THRESHOLD): Remove.
409 (LATENCY_FACTOR): Remove.
410 (s390_get_unit_mask): Add unit.
411 (s390_sched_score): Use fxd/fpd.
412 (s390_sched_variable_issue): Use fxd/fpd.
414 2019-03-12 Martin Liska <mliska@suse.cz>
416 * config/i386/i386.c: Reword an error message.
418 2019-03-12 Martin Jambor <mjambor@suse.cz>
420 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
421 terminate with newline.
423 2019-03-12 Jakub Jelinek <jakub@redhat.com>
426 * config/s390/s390.md (tabort): Use %wd instead of
427 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
429 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
430 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
434 * builtins.c (expand_builtin_int_roundingfn,
435 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
436 gcc_unreachable if validate_arglist fails.
438 2019-03-12 Richard Biener <rguenther@suse.de>
440 PR tree-optimization/89664
441 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
442 free the occurance tree after the early out.
444 2019-03-11 Jakub Jelinek <jakub@redhat.com>
448 * vr-values.c (vr_values::update_value_range): If
449 old_vr->varying_p (), don't update it, make new_vr also VARYING
452 2019-03-11 Martin Liska <mliska@suse.cz>
454 * config/aarch64/aarch64.c (aarch64_override_options_internal):
455 Fix double string quoting.
457 2019-03-11 Martin Liska <mliska@suse.cz>
459 * collect-utils.c (collect_wait): Wrap apostrophes
460 in gcc internal format with %'.
461 * collect2.c (main): Likewise.
462 (scan_prog_file): Likewise.
463 (scan_libraries): Likewise.
464 * config/i386/i386.c (ix86_expand_call): Likewise.
465 (ix86_handle_interrupt_attribute): Likewise.
466 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
467 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
468 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
469 * lto-wrapper.c (find_crtoffloadtable): Likewise.
470 * symtab.c (symtab_node::verify_base): Likewise.
471 * tree-cfg.c (verify_gimple_label): Likewise.
472 * tree.c (verify_type_variant): Likewise.
474 2019-03-11 Martin Liska <mliska@suse.cz>
476 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
477 in a string format message and fix GNU coding style.
478 (expand_builtin_set_thread_pointer): Likewise.
479 * common/config/aarch64/aarch64-common.c (aarch64_rewrite_selected_cpu): Likewise.
480 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
481 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
482 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
483 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
484 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
485 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
486 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
487 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
488 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
489 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option): Likewise.
490 * common/config/riscv/riscv-common.c (riscv_subset_list::parsing_subset_version): Likewise.
491 (riscv_subset_list::parse_std_ext): Likewise.
492 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
493 (riscv_subset_list::parse): Likewise.
494 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
495 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
496 (aarch64_override_options_internal): Likewise.
497 (aarch64_validate_mcpu): Likewise.
498 (aarch64_validate_march): Likewise.
499 (aarch64_validate_mtune): Likewise.
500 (aarch64_override_options): Likewise.
501 * config/alpha/alpha.c (alpha_option_override): Likewise.
502 * config/arc/arc.c (arc_init): Likewise.
503 (parse_mrgf_banked_regs_option): Likewise.
504 (arc_override_options): Likewise.
505 (arc_expand_builtin_aligned): Likewise.
506 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
507 (arm_expand_builtin): Likewise.
508 * config/arm/arm.c (arm_option_check_internal): Likewise.
509 (arm_configure_build_target): Likewise.
510 (arm_option_override): Likewise.
511 (arm_options_perform_arch_sanity_checks): Likewise.
512 (arm_handle_cmse_nonsecure_entry): Likewise.
513 (arm_handle_cmse_nonsecure_call): Likewise.
514 (arm_tls_referenced_p): Likewise.
515 (thumb1_expand_prologue): Likewise.
516 * config/avr/avr.c (avr_option_override): Likewise.
517 * config/bfin/bfin.c (bfin_option_override): Likewise.
518 * config/c6x/c6x.c (c6x_option_override): Likewise.
519 * config/cr16/cr16.c (cr16_override_options): Likewise.
520 * config/cris/cris.c (cris_option_override): Likewise.
521 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
522 * config/darwin-c.c (macosx_version_as_macro): Likewise.
523 * config/darwin.c (darwin_override_options): Likewise.
524 * config/frv/frv.c (frv_expand_builtin): Likewise.
525 * config/h8300/h8300.c (h8300_option_override): Likewise.
526 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
527 (ix86_option_override_internal): Likewise.
528 (warn_once_call_ms2sysv_xlogues): Likewise.
529 (ix86_expand_prologue): Likewise.
530 (split_stack_prologue_scratch_regno): Likewise.
531 (ix86_warn_parameter_passing_abi): Likewise.
532 * config/ia64/ia64.c (fix_range): Likewise.
533 * config/m68k/m68k.c (m68k_option_override): Likewise.
534 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
535 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
536 (mips_set_compression_mode): Likewise.
537 * config/mmix/mmix.c (mmix_option_override): Likewise.
538 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
539 * config/msp430/msp430.c (msp430_option_override): Likewise.
540 * config/nds32/nds32.c (nds32_option_override): Likewise.
541 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
542 (nios2_option_override): Likewise.
543 (nios2_expand_custom_builtin): Likewise.
544 * config/nvptx/mkoffload.c (main): Likewise.
545 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
546 * config/pa/pa.c (fix_range): Likewise.
547 (pa_option_override): Likewise.
548 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
549 (riscv_option_override): Likewise.
550 * config/rl78/rl78.c (rl78_option_override): Likewise.
551 * config/rs6000/aix61.h: Likewise.
552 * config/rs6000/aix71.h: Likewise.
553 * config/rs6000/aix72.h: Likewise.
554 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
555 * config/rs6000/freebsd64.h: Likewise.
556 * config/rs6000/linux64.h: Likewise.
557 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
558 (rs6000_expand_zeroop_builtin): Likewise.
559 (rs6000_expand_mtfsb_builtin): Likewise.
560 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
561 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
562 (rs6000_invalid_builtin): Likewise.
563 (rs6000_expand_split_stack_prologue): Likewise.
564 * config/rs6000/rtems.h: Likewise.
565 * config/rx/rx.c (valid_psw_flag): Likewise.
566 (rx_expand_builtin): Likewise.
567 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
568 * config/s390/s390.c (s390_expand_builtin): Likewise.
569 (s390_function_profiler): Likewise.
570 (s390_option_override_internal): Likewise.
571 (s390_option_override): Likewise.
572 * config/sh/sh.c (sh_option_override): Likewise.
573 (sh_builtin_saveregs): Likewise.
574 (sh_fix_range): Likewise.
575 * config/sh/vxworks.h: Likewise.
576 * config/sparc/sparc.c (sparc_option_override): Likewise.
577 * config/spu/spu.c (spu_option_override): Likewise.
578 (fix_range): Likewise.
579 * config/visium/visium.c (visium_option_override): Likewise.
580 (visium_handle_interrupt_attr): Likewise.
581 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
582 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
583 (dbg_cnt_process_opt): Likewise.
584 * dwarf2out.c (output_dwarf_version): Likewise.
585 * except.c (expand_eh_return): Likewise.
586 * gcc.c (defined): Likewise.
587 (driver_handle_option): Likewise.
588 (process_command): Likewise.
589 (compare_files): Likewise.
590 (driver::prepare_infiles): Likewise.
591 (driver::do_spec_on_infiles): Likewise.
592 (driver::maybe_run_linker): Likewise.
593 * omp-offload.c (oacc_parse_default_dims): Likewise.
594 * opts-global.c (handle_common_deferred_options): Likewise.
595 * opts.c (parse_sanitizer_options): Likewise.
596 (common_handle_option): Likewise.
597 (enable_warning_as_error): Likewise.
598 * passes.c (enable_disable_pass): Likewise.
599 * plugin.c (parse_plugin_arg_opt): Likewise.
600 (default_plugin_dir_name): Likewise.
601 * targhooks.c (default_expand_builtin_saveregs): Likewise.
602 (default_pch_valid_p): Likewise.
603 * toplev.c (init_asm_output): Likewise.
604 (process_options): Likewise.
605 (toplev::run_self_tests): Likewise.
606 * tree-cfg.c (verify_gimple_call): Likewise.
607 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
608 (tree_inlinable_function_p): Likewise.
609 * var-tracking.c (vt_find_locations): Likewise.
611 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
613 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
614 only on the else branch.
616 2019-03-11 Martin Liska <mliska@suse.cz>
618 * gcov.c (output_intermediate_json_line): Print function
620 (output_json_intermediate_file): Add new argument.
621 * doc/gcov.texi: Document the change.
623 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
625 PR rtl-optimization/89588
626 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
627 explicit unrolling factor more robust.
629 2019-03-11 Richard Biener <rguenther@suse.de>
631 PR tree-optimization/89649
632 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
633 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
634 on the prolog and epilog loops.
635 (vect_loop_versioning): Return copy of loop.
636 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
637 on the non-vectorized version of the loop.
639 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
642 * config/i386/sse.md (*vec_extractv2di_0_sse):
643 Add (=r,x) alternative and corresponding splitter.
645 2019-03-10 Martin Jambor <mjambor@suse.cz>
647 PR tree-optimization/85762
648 PR tree-optimization/87008
649 PR tree-optimization/85459
650 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
651 it points to if there is a type changing MEM_REF. Adjust all callers.
652 (build_accesses_from_assign): Disable total scalarization if
653 contains_vce_or_bfcref_p returns true through the new parameter, for
656 2019-03-09 Jakub Jelinek <jakub@redhat.com>
659 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
660 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
663 * common.opt (fdiagnostics-show-labels,
664 fdiagnostics-show-line-numbers, fdiagnostics-format=,
665 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
666 gas-locview-support, ginline-points, ginternal-reset-location-views):
667 Terminate description text with a dot.
668 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
669 * config/mcore/mcore.opt (m210, m340): Likewise.
670 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
671 mnops=): Start description text with a capital letter.
672 * config/arc/arc.opt (msize-level=): Likewise.
673 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
674 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
676 * config/ft32/ft32.opt (msim): Likewise.
677 (mft32b, mcompress): Likewise. Terminate description text with a dot.
678 (mnodiv, mnopm): Terminate description text with a dot.
679 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
681 * config/i386/i386.opt (prefer_vector_width, instrument_return):
683 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
686 PR rtl-optimization/89634
687 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
688 are modified in BB_END (e->src) instruction.
690 2019-03-08 David Malcolm <dmalcolm@redhat.com>
693 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
694 messages more amenable to translation, and improve wording.
696 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
698 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
699 ud- and du-chains between phases.
701 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
704 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
705 instead of POLY_INT_CST.
707 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
709 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
712 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
717 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
718 (_mm_storeu_si64): Ditto.
720 2019-03-08 Martin Liska <mliska@suse.cz>
723 * config/i386/i386.c (ix86_option_override_internal): Disable
724 jump tables when retpolines are used.
726 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
729 * ipa-split.c (execute_split_functions): Do not split
730 'noinline' or 'section' function.
732 2019-03-08 Jakub Jelinek <jakub@redhat.com>
735 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
736 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
737 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
740 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
741 from diagnostics. Formatting fixes.
744 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
745 warn_odr diagnostics.
748 * lra-constraints.c (process_alt_operands): Avoid one space before
749 " at the end of line and another after " on another line in a string
751 * attribs.c (handle_dll_attribute): Likewise.
752 * config/avr/avr-devices.c (avr_texinfo): Likewise.
754 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
755 warning_at or inform messages in G_() if there is no ?:.
757 PR tree-optimization/89550
758 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
759 returned true. Formatting fixes.
760 (expand_builtin_strnlen): Formatting fixes.
761 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
762 if warning_at returned true.
763 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
765 2019-03-08 Richard Biener <rguenther@suse.de>
768 * cfgloop.h (struct loop): Add owned_clique field.
769 * cfgloopmanip.c (copy_loop_info): Copy it.
770 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
772 * tree-inline.c (copy_loops): Remap owned_clique.
773 * lto-streamer-in.c (input_cfg): Stream owned_clique.
774 * lto-streamer-out.c (output_cfg): Likewise.
776 2019-03-08 Jakub Jelinek <jakub@redhat.com>
779 * config/darwin.c: Include intl.h.
780 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
781 composing the message out of two separate parts.
783 2019-03-07 Jakub Jelinek <jakub@redhat.com>
786 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
787 doesn't start with a capital letter and doesn't end with a dot.
788 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
789 with a capital letter.
790 (ix86_mangle_function_version_assembler_name): Likewise.
791 (ix86_generate_version_dispatcher_body): Likewise.
792 (fold_builtin_cpu): Likewise.
793 (get_builtin_code_for_version): Likewise. Remove extraneous space.
794 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
795 translators, wrap full type name in %qs.
798 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
799 depend clause with source (or sink) modifier.
800 * omp-expand.c (expand_omp_ordered_sink): Likewise.
803 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
804 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
805 (avx512f_load<mode>_mask): New define_expand.
806 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
807 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
808 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
809 __builtin_ia32_movess_mask): New builtins.
810 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
811 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
812 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
813 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
815 2019-03-07 Martin Jambor <mjambor@suse.cz>
818 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
819 for extern inline functions.
821 2019-03-07 Martin Jambor <mjambor@suse.cz>
824 * cgraph.h (cgraph_node): New inline method former_thunk_p.
825 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
826 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
827 have multiple callees. At the end check if declarations match as
828 opposed to cgraph_nodes.
830 2019-03-07 Martin Liska <mliska@suse.cz>
832 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
833 which is equivalent to searching for this in clones chain.
834 * symtab.c (symtab_node::verify_base): Similarly compare ASM
835 names with a neighbour and special case first node in a chain.
837 2019-01-25 Jason Merrill <jason@redhat.com>
839 PR c++/80916 - spurious "static but not defined" warning.
840 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
841 for an internal symbol with DECL_EXTERNAL.
843 2019-04-07 Richard Biener <rguenther@suse.de>
846 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
847 * tree-inline.c (copy_loops): Simplify.
849 2019-03-07 Martin Liska <mliska@suse.cz>
851 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
853 2019-03-07 Richard Biener <rguenther@suse.de>
855 PR tree-optimization/89595
856 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
857 stmt iterator as reference, take boolean output parameter to
858 indicate whether the stmt was removed and thus the iterator
860 (dom_opt_dom_walker::before_dom_children): Re-iterate over
861 stmts created by folding.
863 2019-03-07 Jakub Jelinek <jakub@redhat.com>
866 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
869 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
871 PR rtl-optimization/88845
872 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
874 * lra.c (remove_scratches_1): New function.
875 (remove_scratches): Use it.
876 (lra_emit_move): Likewise.
878 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
880 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
881 unaligned_access variable.
882 * config/arc/arc.c (arc_override_options): Set unaligned access
883 default on for HS CPUs.
884 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
886 2019-03-06 Martin Liska <mliska@suse.cz>
888 PR gcov-profile/89577
889 * doc/gcov.texi: Prefer to use --coverage.
890 * doc/sourcebuild.texi: Likewise.
892 2019-03-02 Jason Merrill <jason@redhat.com>
894 PR c++/86485 - -Wmaybe-unused with empty class ?:
895 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
897 2019-03-05 Jakub Jelinek <jakub@redhat.com>
900 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
904 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
905 exactly one argument.
907 2019-03-05 Jakub Jelinek <jakub@redhat.com>
908 Richard Sandiford <richard.sandiford@arm.com>
910 PR tree-optimization/89570
911 * match.pd (vec_cond into cond_op simplification): Don't use
912 get_conditional_internal_fn, use as_internal_fn (cond_op).
914 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
917 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
918 to decide when to split off a non-zero offset from a symbol.
919 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
922 2019-03-05 Richard Biener <rguenther@suse.de>
924 PR tree-optimization/89594
925 * tree-if-conv.c (pass_if_conversion::execute): Handle
926 case where .LOOP_VECTORIZED_FUNCTION was removed.
928 2019-03-05 Jakub Jelinek <jakub@redhat.com>
931 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
932 instead alloca it only when needed with the needed size.
934 PR tree-optimization/89570
935 * match.pd (vec_cond into cond_op simplification): Guard with
936 vectorized_internal_fn_supported_p test and #if GIMPLE.
938 PR tree-optimization/89566
939 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
940 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
941 Punt if get_user_idx_format succeeds, but idx_format argument is
942 not provided or doesn't have pointer type, or if idx_args is above
943 number of provided arguments.
945 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
947 PR tree-optimization/89437
948 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
950 2019-03-04 Richard Biener <rguenther@suse.de>
953 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
956 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
958 PR tree-optimization/89487
959 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
960 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
961 (distribute_loop): Don't do runtime alias check if there is non-
962 addressable data reference.
963 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
964 is a register variable.
966 2019-03-02 Jakub Jelinek <jakub@redhat.com>
969 * config/arm/arm.md (cmpsi2_addneg): Use
970 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
971 If operands[2] is 0 or INT_MIN, force use of subs.
972 (*compare_scc splitter): Use gen_int_mode.
974 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
976 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
977 Monk Chiang <sh.chiang04@gmail.com>
979 * common/config/riscv/riscv-common.c: Include sstream.
980 (riscv_subset_list::to_string): New.
981 (riscv_arch_str): Likewise.
982 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
984 * config/riscv/riscv-protos.h (riscv_arch_str): New.
985 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
986 (riscv_emit_attribute): New.
987 (riscv_file_start): Emit attribute if needed.
988 (riscv_option_override): Init riscv_emit_attribute_p.
989 * config/riscv/riscv.opt (mriscv-attribute): New option.
990 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
992 * doc/install.texi: Document --with-riscv-attribute.
993 * doc/invoke.texi: Document -mriscv-attribute.
995 * common/config/riscv/riscv-common.c:
996 Include config/riscv/riscv-protos.h.
997 (INCLUDE_STRING): Defined.
998 (RISCV_DONT_CARE_VERSION): Defined.
999 (riscv_subset_t): Declare.
1000 (riscv_subset_t::riscv_subset_t): New.
1001 (riscv_subset_list): Declare.
1002 (riscv_subset_list::riscv_subset_list): New.
1003 (riscv_subset_list::~riscv_subset_list): Likewise.
1004 (riscv_subset_list::parsing_subset_version): Likewise.
1005 (riscv_subset_list::parse_std_ext): Likewise.
1006 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
1007 (riscv_subset_list::add): Likewise.
1008 (riscv_subset_list::lookup): Likewise.
1009 (riscv_subset_list::xlen): Likewise.
1010 (riscv_subset_list::parse): Likewise.
1011 (riscv_supported_std_ext): Likewise.
1012 (current_subset_list): Likewise.
1013 (riscv_parse_arch_string): Using riscv_subset_list::parse to
1016 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
1018 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1019 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
1020 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
1022 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
1024 PR rtl-optimization/85899
1025 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
1026 fallthru edges leading to the exit block.
1028 2019-03-01 Tamar Christina <tamar.christina@arm.com>
1031 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
1032 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
1034 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
1036 PR tree-optimization/89535
1037 * tree-vect-stmts.c (vectorizable_call): Record the vector types
1038 for each operand. Calculate the fallback choice for mask operands
1039 and pass it to vect_get_vec_def_for_operand.
1041 2019-03-01 Richard Biener <rguenther@suse.de>
1044 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
1045 get virtual operands.
1046 (get_expr_operands): Handle CONST_DECL like other decls.
1048 2019-03-01 Jakub Jelinek <jakub@redhat.com>
1051 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
1052 on DECL_P and EXPR_P.
1054 2019-03-01 Richard Biener <rguenther@suse.de>
1057 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
1058 argument, defaulted to zero.
1059 * passes.c (execute_function_todo): Pass down SSA update flags
1060 to cleanup_tree_cfg.
1061 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
1062 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
1064 (cleanup_tree_cfg): Get and pass down SSA update flags.
1066 2019-03-01 Jakub Jelinek <jakub@redhat.com>
1069 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
1070 early_lto_debug argument.
1072 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
1074 PR tree-optimization/89536
1075 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
1076 only whether bit #0 of the value is 0 instead of the entire value.
1078 2019-02-28 Marek Polacek <polacek@redhat.com>
1080 PR c++/87068 - missing diagnostic with fallthrough statement.
1081 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
1082 at the end of a seq, save its location to walk_stmt_info.
1083 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
1086 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
1089 * tree.c (find_atomic_core_type): Move ahead in file.
1090 (check_base_type): Correctly compare alignments of atomic types.
1092 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
1095 * config/i386/i386.c (get_builtin_code_for_version): Identify
1096 Westmere from PCLMUL, instead of AES.
1098 2019-02-28 Jakub Jelinek <jakub@redhat.com>
1101 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
1102 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
1105 2019-02-28 Tamar Christina <tamar.christina@arm.com>
1108 * config/aarch64/aarch64-option-extensions.def: Document it.
1109 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
1112 2019-02-28 Jakub Jelinek <jakub@redhat.com>
1115 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
1116 builtins if they don't have a single scalar floating point argument.
1119 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
1121 PR rtl-optimization/89490
1122 * varasm.c (get_block_for_section): Bail out for mergeable sections.
1123 (default_use_anchors_for_symbol_p, output_object_block): Assert the
1124 block section is not mergeable.
1126 2019-02-27 Jakub Jelinek <jakub@redhat.com>
1129 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
1130 old define_insn to ...
1131 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
1132 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
1133 Rename old define_insn to ...
1134 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
1135 (thumb2_casesi_internal_pic): New define_expand. Rename old
1137 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
1138 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
1139 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
1141 2019-02-27 Richard Biener <rguenther@suse.de>
1144 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
1146 2019-02-27 Richard Biener <rguenther@suse.de>
1148 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
1151 2019-02-27 Richard Biener <rguenther@suse.de>
1154 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
1155 parameter, prefix section name with .gnu.debuglto_ if true.
1156 (dwarf2out_finish): Pass false to output_comdat_type_unit.
1157 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
1159 2019-02-27 Richard Biener <rguenther@suse.de>
1162 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
1163 rather than on use_debug_types, doing what output_die does.
1164 (value_format): Likewise.
1166 2019-02-27 Martin Jambor <mjambor@suse.cz>
1167 Martin Sebor <msebor@redhat.com>
1169 * doc/invoke.texi (Warning Options): Reword description of
1170 -Wno-absolute-value.
1172 2019-02-27 Jakub Jelinek <jakub@redhat.com>
1174 PR tree-optimization/89280
1175 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
1176 builtin_setjmp_setup_bb): New functions.
1177 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
1178 When visiting __builtin_setjmp_setup block, queue in special
1179 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
1180 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
1181 from visited after the loop if they don't have any visited successor
1184 2018-02-26 Steve Ellcey <sellcey@marvell.com>
1186 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
1188 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
1190 2019-02-26 Jakub Jelinek <jakub@redhat.com>
1193 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
1194 with types other than sizetype/ssizetype.
1196 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
1198 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
1199 (enum sparc_processor_type): ...this.
1200 (enum sparc_code_model_type): New enumeration type.
1201 (enum sparc_memory_model_type): Tweak comments.
1202 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
1204 (mcmodel): Use sparc_code_model enumeration and variable.
1205 (sparc_code_model): New enumeration.
1206 (mdebug): Add Undocumented marker.
1207 * config/sparc/sparc.h (enum cmodel): Delete.
1208 (sparc_cmodel): Likewise.
1209 (TARGET_CM_MEDLOW): Adjust to above renaming.
1210 (TARGET_CM_MEDMID): Likewise.
1211 (TARGET_CM_MEDANY): Likewise.
1212 (TARGET_CM_EMBMEDANY): Likewise.
1213 * config/sparc/sparc.c (sparc_cmodel): Delete.
1214 (sparc_option_override): Remove string/value mapping support for the
1215 code model. Move code and memory model support to after the handling
1216 of target flags. Do private machine setup last.
1217 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
1218 (sparc_legitimize_reload_address): Likewise.
1219 (sparc_output_mi_thunk): Likewise.
1220 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
1222 2019-02-26 Jakub Jelinek <jakub@redhat.com>
1224 PR tree-optimization/89500
1225 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
1226 (handle_builtin_strlen): Remove noncst_bound variable. Always
1227 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
1228 cst if the first cst bytes starting at x are known to be non-zero,
1229 even if the string is not zero terminated. Don't try to modify
1230 *si for strnlen. Update strlen_to_stridx only for strlen or if
1231 we can prove strnlen returns the same value as strlen would.
1233 2019-02-26 Martin Liska <mliska@suse.cz>
1235 * alloc-pool.h (struct pool_usage): Remove extra
1237 * bitmap.h (struct bitmap_usage): Likewise.
1238 * ggc-common.c (struct ggc_usage): Likewise.
1239 * mem-stats.h (struct mem_usage): Likewise.
1240 (mem_alloc_description::dump): Print dash lines
1241 here and repeat header at the end of a table report.
1242 It's then more readable.
1243 * tree-phinodes.c (phinodes_print_statistics): Make
1244 horizontal alignment.
1245 * tree-ssanames.c (ssanames_print_statistics): Likewise.
1246 * vec.c (struct vec_usage): Remove extra print_dash_line.
1247 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
1249 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
1251 * doc/extend.texi (__builtin_object_size):
1252 Use @pxref instead of @xref inside parenthesis.
1253 (__builtin_has_attribute): Add missing comma after @xref.
1254 (__builtin_object_size): Ditto.
1255 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
1256 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
1259 2019-02-26 Jeff Law <law@redhat.com>
1261 PR rtl-optimization/87761
1262 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
1263 detect obviously dead insns and delete them.
1265 2019-02-26 Richard Biener <rguenther@suse.de>
1267 PR tree-optimization/89505
1268 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
1269 to handle restrict pointed-to vars with multiple subvars
1272 2019-02-26 Richard Biener <rguenther@suse.de>
1274 PR tree-optimization/89489
1275 * tree-parloops.c (create_loop_fn): Copy over last_clique.
1277 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
1279 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
1280 and move around comment.
1281 <BIT_AND_EXPR>: Likewise.
1282 <BIT_NOT_EXPR>: Add specific handling for boolean types.
1284 2019-02-26 Jakub Jelinek <jakub@redhat.com>
1287 * config/i386/i386.c (remove_partial_avx_dependency): Call
1288 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
1289 after changing possibly many instructions to use that pseudo. Fix up
1290 insertion of v4sf_const0 setter at the start of bb.
1292 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
1295 * doc/extend.texi (Variadic Pointer Args): New section.
1297 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
1298 Martin Sebor <msebor@gmail.com>
1300 * common.opt (Wattribute-alias): Likewise.
1301 * doc/invoke.texi (Option Summary): List general form of
1302 -Wattribute-alias=. List positive form of -Wmissing-attributes.
1303 (-Wmissing-attributes): Invert entry, rewrite and correct default.
1304 Add cross-references.
1305 (-Wattribute-alias): Rewrite and correct default. Mention
1306 considered attributes (same as for -Wmissing-attributes).
1308 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
1310 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
1311 (_mm_cvtpd_ps): Likewise.
1312 (_mm_cvttpd_epi32): Likewise.
1315 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
1316 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
1319 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
1321 2019-02-25 Tamar Christina <tamar.christina@arm.com>
1324 * common/config/aarch64/aarch64-common.c
1325 (struct aarch64_option_extension): Add is_synthetic.
1326 (all_extensions): Use it.
1327 (TARGET_OPTION_INIT_STRUCT): Define hook.
1328 (struct gcc_targetm_common): Moved to end.
1329 (all_extensions_by_on): New.
1330 (opt_ext_cmp, typedef opt_ext): New.
1331 (aarch64_option_init_struct): New.
1332 (aarch64_contains_opt): New.
1333 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
1334 * config/aarch64/aarch64-option-extensions.def
1335 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
1336 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
1337 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
1338 Set is_synthetic to false.
1339 (crypto): Set is_synthetic to true.
1340 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
1343 2019-02-25 Tamar Christina <tamar.christina@arm.com>
1345 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
1346 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
1347 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
1348 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
1349 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
1350 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
1351 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
1352 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
1354 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
1355 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
1356 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
1357 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
1358 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
1359 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
1360 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
1361 vfmlsl_laneq_high_f16): ... To this.
1362 * config/arm/neon.md: Update comments.
1364 2019-02-25 Tamar Christina <tamar.christina@arm.com>
1366 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
1367 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
1368 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
1369 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
1370 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
1371 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
1372 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
1373 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
1375 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
1376 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
1377 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
1378 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
1379 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
1380 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
1381 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
1382 vfmlslq_laneq_high_f16): ... To this.
1384 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
1386 PR rtl-optimization/86096
1387 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
1388 comparing mw_order values.
1390 2019-02-25 Jakub Jelinek <jakub@redhat.com>
1393 * config/arm/arm.md (*subsi3_carryin_const): Use
1394 arm_neg_immediate_operand predicate instead of
1395 arm_not_immediate_operand, "L" constraint instead of "K" and
1396 print it using %n2 instead of %B2.
1397 (*subsi3_carryin_const0): New define_insn.
1398 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
1399 instead of arm_not_operand and "I" constraint instead of "K" and
1400 print it using %n3 instead of %B2. Instead of using match_dup 2 add
1401 another match_operand and in the condition check that it is negation
1403 (*subsi3_carryin_compare_const0): New define_ins.
1404 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
1405 *subsi3_carryin_const.
1406 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
1407 split into *subsi3_carryin_compare_const0 if the highpart is zero.
1410 * config/arm.vfp.md (*negdf2_vfp): Use
1411 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
1412 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
1414 2019-02-24 Jakub Jelinek <jakub@redhat.com>
1416 PR rtl-optimization/89445
1417 * simplify-rtx.c (simplify_ternary_operation): Don't use
1418 simplify_merge_mask on operands that may trap.
1419 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
1420 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
1421 second operand is CONST_VECTOR, check if any element could be zero.
1422 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
1423 their operands can trap.
1425 2019-02-23 Martin Sebor <msebor@redhat.com>
1427 * gimple-ssa-sprintf.c (target_strtol): Rename...
1428 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
1429 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
1430 check for range error.
1432 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
1435 * opts-common.c (prune_options): Also prune joined switches
1436 with Negative and RejectNegative.
1437 * config/i386/i386.opt (march=): Add Negative(march=).
1438 (mtune=): Add Negative(mtune=).
1439 * doc/options.texi: Document Negative used together with Joined
1442 2019-02-22 Martin Sebor <msebor@redhat.com>
1444 * doc/extend.texi (Other Builtins): Add
1445 __builtin_is_constant_evaluated.
1447 2019-02-22 Richard Biener <rguenther@suse.de>
1449 PR tree-optimization/87609
1450 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
1452 2019-02-22 Jeff Law <law@redhat.com>
1454 PR rtl-optimization/87761
1455 * config/mips/mips.md: Add new combiner pattern to recognize
1456 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
1458 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
1461 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
1462 destination register in peepholes generating patterns for ADDS/SUBS.
1463 (add<mode>3_compare0,
1464 *addsi3_compare0_uxtw, add<mode>3_compareC,
1465 add<mode>3_compareV_imm, add<mode>3_compareV,
1466 *adds_<optab><ALLX:mode>_<GPI:mode>,
1467 *subs_<optab><ALLX:mode>_<GPI:mode>,
1468 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
1469 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
1470 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
1471 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
1472 sub<mode>3_compare1): Allow stack pointer for source register.
1473 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
1475 2019-02-22 Martin Sebor <msebor@redhat.com>
1477 PR tree-optimization/88993
1478 PR tree-optimization/88853
1479 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
1481 (sprintf_dom_walker::call_info::is_string_func): New helper.
1482 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
1483 for formatted string functions.
1484 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
1486 2019-02-22 Martin Sebor <msebor@redhat.com>
1489 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
1490 unreachable subexpressions.
1492 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
1493 Hongtao Liu <hongtao.liu@intel.com>
1494 Sunil K Pandey <sunil.k.pandey@intel.com>
1497 * config/i386/i386-passes.def: Add
1498 pass_remove_partial_avx_dependency.
1499 * config/i386/i386-protos.h
1500 (make_pass_remove_partial_avx_dependency): New.
1501 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
1503 (pass_data_remove_partial_avx_dependency): New.
1504 (pass_remove_partial_avx_dependency): Likewise.
1505 (make_pass_remove_partial_avx_dependency): Likewise.
1506 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
1507 (*extendsfdf2): Add avx_partial_xmm_update.
1508 (truncdfsf2): Likewise.
1509 (*float<SWI48:mode><MODEF:mode>2): Likewise.
1510 (SF/DF conversion splitters): Disabled for TARGET_AVX.
1512 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
1515 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
1518 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
1521 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
1522 (PTA_SKYLAKE): Add PTA_AES.
1523 (PTA_GOLDMONT): Likewise.
1525 2019-02-22 Sudakshina Das <sudi.das@arm.com>
1527 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
1528 instruction if enabled.
1529 (aarch64_override_options): Remove reference to return address key.
1531 2019-02-22 Richard Biener <rguenther@suse.de>
1533 PR tree-optimization/89440
1534 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
1535 not necessary assert.
1537 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
1540 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
1541 (oacc_replace_fn_attrib_attr): ... this new function.
1542 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
1543 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
1545 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1547 * config/arm/arm-cpus.in (ares): Rename to...
1548 (neoverse-n1): ... This. Add ares as alias.
1549 * config/arm/arm-tables.opt: Regenerate.
1550 * config/arm/arm-tune.md: Likewise.
1551 * doc/invoke.txt (ARM Options): Document neoverse-n1.
1553 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1555 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
1556 * config/aarch64/aarch64-tune.md: Regenerate.
1557 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
1559 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1561 * config/aarch64/aarch64.c (ares_tunings): Rename to...
1562 (neoversen1_tunings): ... This.
1563 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
1564 (neoverse-n1): New CPU.
1565 * config/aarch64/aarch64-tune.md: Regenerate.
1566 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
1568 2019-02-22 Richard Biener <rguenther@suse.de>
1571 * cfghooks.h (dependence_hash): New typedef.
1572 (struct copy_bb_data): New type.
1573 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
1574 (duplicate_block): Likewise.
1575 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
1576 (copy_bbs): Create and pass down copy_bb_data.
1577 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
1578 (rtl_duplicate_bb): Likewise.
1579 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
1580 remap dependence info.
1582 2019-02-22 Richard Biener <rguenther@suse.de>
1584 PR tree-optimization/87609
1585 * tree-core.h (tree_base): Document special clique values.
1586 * tree-inline.c (remap_dependence_clique): Do not use the
1587 special clique value of one.
1588 (maybe_set_dependence_info): Use clique one.
1589 (clear_dependence_clique): New callback.
1590 (compute_dependence_clique): Clear clique one from all refs
1591 before assigning it (again).
1593 2019-02-21 Martin Sebor <msebor@redhat.com>
1595 * doc/extend.texi (__clear_cache): Correct signature.
1597 2019-02-21 Ian Lance Taylor <iant@golang.org>
1600 * varasm.c (decode_addr_const): Call lookup_constant_def rather
1601 than output_constant_def.
1602 (add_constant_to_table): New static function.
1603 (output_constant_def): Call add_constant_to_table.
1604 (tree_output_constant_def): Likewise.
1606 2019-02-21 Jakub Jelinek <jakub@redhat.com>
1609 * builtins.c (fold_builtin_arith_overflow): If first two args are
1610 INTEGER_CSTs, set intres and ovfres to constants rather than calls
1613 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
1616 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
1617 error for -mindirect-branch/-mfunction-return with incompatible
1620 2019-02-21 Jakub Jelinek <jakub@redhat.com>
1623 * constraints.md (q): Remove.
1624 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
1627 2019-02-21 Martin Jambor <mjambor@suse.cz>
1630 * omp-general.c (omp_extract_for_data): Removed a duplicate call
1631 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
1632 (omp_adjust_for_condition): ...here. Added necessary parameters.
1633 * omp-general.h (omp_adjust_for_condition): Updated declaration.
1634 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
1635 proper values to new parameters of omp_adjust_for_condition.
1637 2019-02-20 Jakub Jelinek <jakub@redhat.com>
1640 * expr.c (expand_assignment): If result is a MEM, use change_address
1641 instead of simplify_gen_subreg.
1643 2019-02-20 Jakub Jelinek <jakub@redhat.com>
1644 David Malcolm <dmalcolm@redhat.com>
1647 * fold-const.c (decode_field_reference): Return NULL_TREE if
1648 lang_hooks.types.type_for_size returns NULL. Check it before
1649 overwriting *exp_. Use return NULL_TREE instead of return 0.
1651 2019-02-20 Jakub Jelinek <jakub@redhat.com>
1655 * toplev.c (do_compile): Double the emin/emax exponents to workaround
1658 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
1661 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
1662 TARGET_SSE in addition to TARGET_SSE_MATH.
1664 (ix86_excess_precision): Ditto.
1665 (ix86_float_exceptions_rounding_supported_p): Ditto.
1666 (use_rsqrt_p): Ditto.
1667 * config/i386/sse.md (rsqrt<mode>2): Ditto.
1669 2019-02-20 David Malcolm <dmalcolm@redhat.com>
1672 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
1673 linenum_arith_t when determining if two adjacent line spans are
1674 close enough to merge.
1675 (diagnostic_show_locus): Use linenum_arith_t when iterating over
1676 lines within each line_span.
1678 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
1681 * lra-constraints.c(uses_hard_regs_p): Fix handling of
1682 paradoxical SUBREGS.
1684 2019-02-20 Li Jia He <helijia@linux.ibm.com>
1687 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
1688 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
1689 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
1692 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
1694 * config/gcn/gcn.c (print_operand): Fix typo.
1696 2019-02-19 Richard Biener <rguenther@suse.de>
1699 * toplev.c (do_compile): Initialize mpfr's exponent range
1700 based on available float modes.
1702 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
1704 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
1705 as long as the epilogue isn't completed.
1707 2019-02-18 Martin Sebor <msebor@redhat.com>
1709 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
1710 __has_cpp_attribute, and __has_include.
1712 2019-02-18 Martin Sebor <msebor@redhat.com>
1714 * doc/invoke.texi (-Wreturn-type): Correct and expand.
1716 2019-02-18 Martin Sebor <msebor@redhat.com>
1719 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
1721 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
1723 2019-02-18 Richard Biener <rguenther@suse.de>
1725 PR tree-optimization/89296
1726 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
1727 of no-warning flag to cases that might emit the bogus warning.
1729 2019-02-18 Jakub Jelinek <jakub@redhat.com>
1732 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
1734 * config/arm/vfp.md (*movdi_vfp): Likewise.
1735 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
1736 "q" constraint for operands[0].
1739 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
1740 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
1741 pattern in a temporary buffer.
1742 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
1743 than 64-operands[2].
1746 * config/s390/s390.c (s390_indirect_branch_attrvalue,
1747 s390_indirect_branch_settings): Define unconditionally.
1748 (s390_set_current_function): Likewise, but guard the whole body except
1749 the s390_indirect_branch_settings call with
1750 #if S390_USE_TARGET_ATTRIBUTE.
1751 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
1753 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
1754 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
1755 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
1756 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
1757 HOST_WIDE_INT_1U instead of 1ULL.
1758 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
1759 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
1760 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
1761 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
1763 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
1766 2019-02-18 Martin Jambor <mjambor@suse.cz>
1768 PR tree-optimization/89209
1769 * tree-sra.c (create_access_replacement): New optional parameter
1770 reg_tree. Use it as a type if non-NULL and access type is not of
1772 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
1773 to create_access_replacement.
1774 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
1775 Check lacc is non-NULL before attempting to re-create it on the RHS.
1777 2019-02-18 Martin Liska <mliska@suse.cz>
1780 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
1782 (symbol_table::free_edge): Recycle m_summary_id.
1783 * cgraph.h (get_summary_id): New.
1784 (symbol_table::release_symbol): Set m_summary_id to -1
1786 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
1787 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
1788 function_summary to fast_function_summary.
1789 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
1790 * ipa-pure-const.c (class funct_state_summary_t):
1791 Switch from function_summary to fast_function_summary.
1792 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
1793 (class ipa_ref_opt_summary_t): Switch from function_summary
1794 to fast_function_summary.
1795 * symbol-summary.h (class function_summary_base): New class
1796 that is created from base of former function_summary.
1797 (function_summary_base::unregister_hooks): New.
1798 (class function_summary): Inherit from function_summary_base.
1799 (class call_summary_base): New class
1800 that is created from base of former call_summary.
1801 (class call_summary): Inherit from call_summary_base.
1802 (struct is_same): New.
1803 (class fast_function_summary): New summary class.
1804 (class fast_call_summary): New summary class.
1805 * vec.h (vec_safe_grow_cleared): New function.
1807 2019-02-18 Martin Liska <mliska@suse.cz>
1809 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
1810 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
1811 * doc/tm.texi: Document new target hook.
1812 * doc/tm.texi.in: Likewise.
1813 * target.def: Add new target macro.
1814 * gcc.c (find_fortran_preinclude_file): Do not search multilib
1817 2019-02-17 Alan Modra <amodra@gmail.com>
1820 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
1821 output reg on add insn.
1822 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
1824 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
1827 * config/i386/sse.md (ssedoublemode): Remove V4HI.
1828 (PMULHRSW): Likewise.
1829 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
1831 (ssse3_pmulhrswv4hi3): New expander.
1833 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
1835 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
1836 MMX. Add isa attribute.
1838 2019-02-16 Jakub Jelinek <jakub@redhat.com>
1840 PR rtl-optimization/66152
1841 * builtins.h (c_readstr): Declare.
1842 * builtins.c (c_readstr): Remove forward declaration. Add
1843 null_terminated_p argument, if false, read all bytes from the
1844 string instead of stopping after '\0'.
1845 * expr.c (string_cst_read_str): New function.
1846 (store_expr): Use string_cst_read_str instead of
1847 builtin_strncpy_read_str. Try to store by pieces the whole
1848 exp_len first, and only if that fails, split it up into
1849 store by pieces followed by clear_storage. Formatting fix.
1851 * config/i386/i386.md (*movqi_internal): Remove static from
1852 buf variable. Use output_asm_insn (buf, operands); return "";
1853 instead of return buf;.
1854 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
1855 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
1856 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
1858 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
1860 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
1861 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
1862 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
1863 (CC1_SPEC): Likewise.
1864 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
1866 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
1868 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
1869 the base address on 64-bit strict-alignment platforms.
1871 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
1873 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
1875 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
1877 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
1879 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
1881 PR rtl-optimization/88308
1882 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
1883 on copied instruction.
1885 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
1887 * final.c (insn_current_reference_address): Replace test on JUMP_P
1888 with test on jump_to_label_p.
1889 * config/visium/visium-passes.def: New file.
1890 * config/visium/t-visium (PASSES_EXTRA): Define.
1891 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
1892 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
1893 (TRAMPOLINE_ALIGNMENT): Define.
1894 * config/visium/visium.c (visium_option_override): Do not register
1895 the machine-specific reorg pass here.
1896 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
1898 (output_branch): Adjust threshold for long branch instruction.
1899 * config/visium/visium.md (cpu): Move around.
1900 (length): Adjust for the GR6.
1902 2019-02-15 Richard Biener <rguenther@suse.de>
1903 Jakub Jelinek <jakub@redhat.com>
1905 PR tree-optimization/89278
1906 * tree-loop-distribution.c: Include tree-eh.h.
1907 (generate_memset_builtin, generate_memcpy_builtin): Call
1908 rewrite_to_non_trapping_overflow on builtin->size before passing it
1909 to force_gimple_operand_gsi.
1911 2019-02-15 Jakub Jelinek <jakub@redhat.com>
1914 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
1916 * opth-gen.awk: Likewise.
1918 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
1920 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
1921 Enable MMX, SSE and SSE2 by default.
1922 * config/i386/i386.c (ix86_option_override_internal): Do not
1923 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
1925 2019-02-14 Jakub Jelinek <jakub@redhat.com>
1927 PR rtl-optimization/89354
1928 * combine.c (make_extraction): Punt if extraction_mode is narrower
1931 2019-02-14 Maya Rashish <coypu@sdf.org>
1933 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
1934 * config/netbsd-d.c: New file.
1935 * config/t-netbsd: Add netbsd-d.o
1937 2018-02-14 Steve Ellcey <sellcey@marvell.com>
1939 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
1940 affects_type_identity to true for aarch64_vector_pcs.
1941 (aarch64_comp_type_attributes): New function.
1942 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
1944 2019-02-14 Tamar Christina <tamar.christina@arm.com>
1947 * config/arm/iterators.md (ANY64): Add V4HF.
1949 2019-02-14 Martin Liska <mliska@suse.cz>
1951 PR rtl-optimization/89242
1952 * dce.c (delete_unmarked_insns): Call free_dominance_info we
1953 process a transformation.
1955 2019-02-14 Jakub Jelinek <jakub@redhat.com>
1957 PR tree-optimization/89314
1958 * fold-const.c (fold_binary_loc): Cast strlen argument to
1959 const char * before dereferencing it. Formatting fixes.
1962 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
1964 2019-02-13 Ian Lance Taylor <iant@golang.org>
1966 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
1967 and set current index for other optimizations.
1969 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
1971 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
1972 nonimmediate_operand as operand 2 predicate.
1973 (vec_set<VF2_512_256:mode>_0): Ditto.
1974 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
1975 (*vec_concatv2si): Remove alternative 2.
1976 (*vec_concatv4si_0): Use vm constraint for alternative 0.
1977 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
1978 (vec_concatv2di): Split alternatives 4,5,6 to ...
1979 (*vec_concatv2di_0) ... new pattern.
1981 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
1984 * config/arm/arm.c (ldm_stm_operation_p) Set
1985 addr_reg_in_reglist correctly for first register.
1986 (load_multiple_sequence): Remove dead base check.
1987 (gen_ldm_seq): Correctly set write_back for Thumb-1.
1989 2019-02-13 Tamar Christina <tamar.christina@arm.com>
1992 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
1993 Expose as @aarch64_pred_mov.
1994 * config/aarch64/aarch64.c (aarch64_classify_address):
1995 Use expand_insn which legitimizes operands.
1997 2019-02-13 Martin Liska <mliska@suse.cz>
1999 * builtins.h (expand_builtin_with_bounds): Remove declaration.
2000 * calls.c (struct arg_data): Remove special_slot, pointer_arg
2001 and pointer_offset fields.
2002 (initialize_argument_information): Remove usage of dead
2004 * cgraph.h (struct cgraph_thunk_info): Remove
2005 add_pointer_bounds_args.
2006 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
2008 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
2010 * config/i386/i386.c (ix86_function_arg_advance): Remove
2012 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
2013 (def_builtin): Remove usage of dead
2015 (ix86_add_new_builtins): Likewise.
2016 * ipa-fnsummary.c (compute_fn_summary): Likewise.
2017 * ipa-icf.c (sem_function::equals_wpa): Likewise.
2018 (sem_function::init): Likewise.
2019 (sem_variable::merge): Likewise.
2020 * ipa-visibility.c (function_and_variable_visibility): Likewise.
2021 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
2022 * lto-cgraph.c (lto_output_node): Likewise.
2023 (lto_output_varpool_node): Likewise.
2024 (input_node): Likewise.
2025 (input_varpool_node): Likewise.
2026 * lto-streamer-out.c (lto_output): Likewise.
2027 * tree-inline.c (expand_call_inline): Remove usage of
2029 * tree-inline.h (struct copy_body_data): Likewise.
2030 * varpool.c (varpool_node::dump): Likewise.
2032 2019-02-13 Jakub Jelinek <jakub@redhat.com>
2035 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
2036 into pt->vars_contains_escaped_heap instead of setting
2037 pt->vars_contains_escaped_heap to it.
2040 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
2041 INTVAL (size), compare it to GET_MODE_MASK instead of
2042 1 << GET_MODE_BITSIZE.
2045 * config/i386/predicates.md (x86_64_immediate_operand): Allow
2046 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
2049 2019-02-13 Martin Liska <mliska@suse.cz>
2052 * cfgrtl.c (remove_barriers_from_footer): New function.
2053 (try_redirect_by_replacing_jump): Use it.
2054 (cfg_layout_redirect_edge_and_branch): Likewise.
2056 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
2058 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
2059 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
2060 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
2061 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
2062 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
2063 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
2065 * config/rs6000/rs6000.c (builtin_function_type)
2066 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
2067 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
2068 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
2069 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
2070 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
2072 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
2074 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
2075 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
2077 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
2080 * config/i386/i386.md (*movoi_internal_avx): Revert revision
2081 268678 and revision 268657.
2082 (*movti_internal): Likewise.
2084 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
2087 * config/s390/s390.c (s390_decompose_address): Update comment.
2088 (s390_check_qrst_address): Reject invalid address forms after
2091 2019-02-12 Martin Liska <mliska@suse.cz>
2094 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
2095 we need default values of funct_state for a function that
2098 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
2100 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
2101 the object to pick the size of stores on strict-alignment platforms.
2103 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
2104 (*movdi_insn_sp32): Likewise.
2105 (*movdi_insn_sp64): Likewise.
2107 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
2110 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
2111 types that needs constructiong.
2112 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
2114 2019-02-12 Richard Biener <rguenther@suse.de>
2116 PR tree-optimization/89253
2117 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
2120 2019-02-11 David Malcolm <dmalcolm@redhat.com>
2123 * input.c (selftest::test_line_offset_overflow): New selftest.
2124 (selftest::input_c_tests): Call it.
2126 2019-02-11 Martin Sebor <msebor@redhat.com>
2128 PR tree-optimization/88771
2129 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
2130 when -Wstringop-overflow is set.
2131 (builtin_memref::builtin_memref): Adjust excessive upper bound
2132 only when lower bound is not excessive.
2133 (maybe_diag_overlap): Detect and diagnose excessive bounds via
2134 -Wstringop-ovefflow.
2135 (maybe_diag_offset_bounds): Rename...
2136 (maybe_diag_access_bounds): ...to this.
2137 (check_bounds_or_overlap): Adjust for name change above.
2139 2019-02-11 Martin Sebor <msebor@redhat.com>
2142 * builtins.c (max_object_size): Move from here...
2143 * builtins.h (max_object_size): ...and here...
2144 * tree.c (max_object_size): ...to here...
2145 * tree.h (max_object_size): ...and here.
2147 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
2149 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
2150 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
2151 for correct semantics.
2153 2019-02-11 Alan Modra <amodra@gmail.com>
2155 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
2156 -mlongcall and -mpltseq.
2157 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
2158 (RS/6000 and PowerPC Options <-mpltseq>): Document.
2159 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
2160 * config/rs6000/sysv4.opt (mpltseq): New option.
2161 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
2162 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
2163 support is lacking. Don't allow -mpltseq with -mbss-plt.
2164 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
2165 -mpltseq given for ELFv1.
2166 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
2167 Only use UNSPEC_PLTSEQ for inline PLT calls.
2168 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
2169 use UNSPEC_PLTSEQ for inline PLT calls.
2170 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
2171 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
2172 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
2173 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
2174 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
2175 (pltseq_mtctr_<mode>): Likewise.
2177 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2179 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
2181 * configure: Regenerate.
2183 2019-02-11 Jakub Jelinek <jakub@redhat.com>
2186 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
2189 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
2191 * function.c (assign_parm_setup_block): Use the stored
2192 size, not the passed size, when allocating stack-space,
2193 also for a parameter with alignment larger than
2194 MAX_SUPPORTED_STACK_ALIGNMENT.
2196 2019-02-11 Martin Liska <mliska@suse.cz>
2199 * ipa-cp.c (build_toporder_info): Remove usage of a param.
2200 * ipa-inline.c (inline_small_functions): Likewise.
2201 * ipa-pure-const.c (propagate_pure_const): Likewise.
2202 (propagate_nothrow): Likewise.
2203 * ipa-reference.c (propagate): Likewise.
2204 * ipa-utils.c (struct searchc_env): Remove unused field.
2205 (searchc): Always search across AVAIL_INTERPOSABLE.
2206 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
2207 the only called IPA pure const can properly not propagate
2208 across interposable boundary.
2209 * ipa-utils.h (ipa_reduced_postorder): Remove param.
2211 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
2213 * config/nds32/nds32.md (call_internal, call_value_internal,
2214 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
2216 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
2218 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
2221 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
2223 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
2226 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
2228 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
2230 2019-02-10 Jakub Jelinek <jakub@redhat.com>
2232 PR tree-optimization/89268
2233 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
2234 if preds is non-NULL.
2236 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
2239 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
2242 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
2244 * config/nds32/nds32.md (trap): New pattern.
2246 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
2248 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
2251 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
2253 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
2256 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
2258 * ipa-visibility.c (localize_node): Also do not localize
2259 LDPR_PREVAILING_DEF_IRONLY_EXP.
2261 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
2264 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
2265 instead of type_with_linkage.
2267 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
2270 * params.def (uninlined-function-insns, uninlined-function-time,
2271 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
2272 bound so we don't get overflows.
2274 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
2276 * config/rs6000/rs6000-string.c (expand_compare_loop,
2277 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
2280 2019-02-09 Jakub Jelinek <jakub@redhat.com>
2283 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2284 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
2285 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
2287 2019-02-09 Alan Modra <amodra@gmail.com>
2290 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
2291 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
2294 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
2297 * lra-constraints.c (process_alt_operands): Don't increase reject
2298 for memory when offset memory is required.
2300 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
2302 * config/s390/vector.md: Implement vector copysign.
2304 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
2306 * expr.c (expand_constructor): Correct indentations.
2308 2019-02-08 Richard Biener <rguenther@suse.de>
2310 PR tree-optimization/89247
2311 * tree-if-conv.c: Include tree-cfgcleanup.h.
2312 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
2313 (tree_if_conversion): Pass through predicate vector.
2314 (pass_if_conversion::execute): Do CFG cleanup and SSA update
2315 inline, see if any if-converted loops we refrece in
2316 LOOP_VECTORIZED calls vanished and fixup.
2317 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
2319 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
2321 * config/s390/constraints.md (jdd): New constraint.
2323 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
2326 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
2327 upper 16 vector registers without TARGET_AVX512VL.
2328 (*movti_internal): Likewise.
2330 2019-02-08 Jakub Jelinek <jakub@redhat.com>
2332 PR rtl-optimization/89234
2333 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
2334 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
2335 (copy_reg_eh_region_note_backward): Likewise.
2337 2019-02-08 Richard Biener <rguenther@suse.de>
2340 * tree-data-ref.c (initialize_matrix_A): Fail if constant
2342 (analyze_subscript_affine_affine): Handle failure from
2343 initialize_matrix_A.
2345 2019-02-08 Jakub Jelinek <jakub@redhat.com>
2347 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
2350 2019-02-07 David Malcolm <dmalcolm@redhat.com>
2352 PR tree-optimization/86637
2353 PR tree-optimization/89235
2354 * tree-vect-loop.c (optimize_mask_stores): Add an
2355 auto_purge_vect_location sentinel to ensure that vect_location is
2358 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
2359 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
2360 to ensure that vect_location is purged on exit.
2361 (pass_slp_vectorize::execute): Likewise, replacing the manual
2363 * tree-vectorizer.h (class auto_purge_vect_location): New class.
2365 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2367 * config/aarch64/iterators.md (max_opp): New code_attr.
2368 (USMAX): New code iterator.
2369 * config/aarch64/predicates.md (aarch64_smin): New predicate.
2370 (aarch64_smax): Likewise.
2371 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
2372 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
2375 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
2378 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
2379 for TARGET_AVX512VL.
2380 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
2382 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
2384 * config/s390/s390-builtin-types.def: Add new types.
2385 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
2386 (s390_vec_xlw4): Make the memory operand into a const pointer.
2387 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
2389 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
2390 a new vector type with the alignment of the scalar memory operand.
2392 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
2393 Jakub Jelinek <jakub@redhat.com>
2396 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
2397 arm_count_ldrdstrd_insns): New declarations.
2398 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
2400 (valid_operands_ldrd_strd): New function.
2401 (arm_count_ldrdstrd_insns): New function.
2402 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
2403 sets instead of single DImode set and define new insns to match this.
2405 2019-02-07 Tamar Christina <tamar.christina@arm.com>
2407 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
2408 Make it a C initializer.
2410 2019-02-07 Tamar Christina <tamar.christina@arm.com>
2413 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
2415 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2417 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
2418 Use neon_dot<q> for type.
2419 (neon_<sup>dot_lane<vsi2qi>): Likewise.
2421 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2423 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
2424 Use neon_dot<q> for type.
2425 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
2426 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
2428 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
2430 PR rtl-optimization/89225
2431 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
2434 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
2436 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
2437 after restoring registers saved to allocate the frame on Windows.
2439 2019-02-06 Richard Biener <rguenther@suse.de>
2441 PR tree-optimization/89182
2442 * graphite.h (cached_scalar_evolution_in_region): Declare.
2443 * graphite.c (struct seir_cache_key): New.
2444 (struct sese_scev_hash): Likewise.
2445 (seir_cache): New global.
2446 (cached_scalar_evolution_in_region): New function.
2447 (graphite_transform_loops): Allocate and release seir_cache.
2448 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
2449 cached_scalar_evolution_in_region.
2450 * graphite-scop-detection.c (scop_detection::can_represent_loop):
2452 (scop_detection::graphite_can_represent_expr: Use
2453 cached_scalar_evolution_in_region.
2454 (scop_detection::stmt_simple_for_scop_p): Likewise.
2455 (find_params_in_bb): Likewise.
2456 (gather_bbs::before_dom_children): Likewise.
2457 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
2458 (add_loop_constraints): Likewise.
2460 2019-02-06 Jakub Jelinek <jakub@redhat.com>
2463 * fold-const-call.c (fold_const_vec_convert): Pass true as last
2464 operand to new_unary_operation only if both element types are integral
2465 and it isn't a widening conversion. Return NULL_TREE if
2466 new_unary_operation failed.
2468 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
2471 * config/s390/s390.md: Remove load and test FP splitter.
2473 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
2476 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
2477 expand_compare_loop, expand_block_compare_gpr,
2478 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
2479 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
2480 #include "profile-count.h" and "predict.h" for types and functions
2481 needed to work with REG_BR_PROB notes.
2483 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
2486 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
2487 for the long branch case.
2489 2019-02-05 Jakub Jelinek <jakub@redhat.com>
2492 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
2493 can throw, non-call exceptions are enabled and we can't delete
2494 dead exceptions or alter cfg. Set must_clean if
2495 delete_insn_and_edges returns true, don't set it blindly for calls.
2496 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
2498 PR rtl-optimization/89195
2499 * combine.c (make_extraction): For MEMs, don't extract bytes outside
2500 of the original MEM.
2502 2019-02-05 Martin Liska <mliska@suse.cz>
2504 PR gcov-profile/89000
2505 * gcov.c (function_summary): Remove argument.
2506 (file_summary): New function.
2507 (print_usage): Replace tabs with spaces.
2508 (generate_results): Use new function file_summary.
2510 2019-02-05 Jakub Jelinek <jakub@redhat.com>
2513 * optabs.c (prepare_cmp_insn): Pass x and y to
2514 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
2516 2019-02-05 Richard Biener <rguenther@suse.de>
2519 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
2520 (struct bitmap_element): Drop chain_prev so we properly recurse on
2521 the prev member, supporting tree views.
2522 (struct bitmap_head): GTY skip the obstack member.
2524 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
2527 * doc/extend.texi (Vector Extensions): Add an example of using vector
2528 types together with x86 intrinsics.
2530 2019-02-04 Alan Modra <amodra@gmail.com>
2532 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
2533 str[] size to 160, and comment.
2535 2019-02-04 Alan Modra <amodra@gmail.com>
2537 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
2538 (rs6000_pltseq_template): Guard output of TLS markers with
2540 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
2541 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
2542 to use inline PLT sequences.
2543 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
2544 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
2545 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
2547 2019-02-04 Martin Liska <mliska@suse.cz>
2550 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
2551 out when ipa_fn_summaries does not contain entry for callee.
2553 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
2555 * config/sparc/sparc.h: Remove superfluous blank lines.
2556 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
2557 (got_register_rtx): ...this.
2558 (sparc_got): Adjust to above renaming.
2559 (sparc_tls_got): Likewise.
2560 (sparc_delegitimize_address): Likewise.
2561 (sparc_output_mi_thunk): Likewise.
2562 (sparc_init_pic_reg): Likewise.
2563 (save_local_or_in_reg_p): Fix test on the GOT register.
2564 (USE_HIDDEN_LINKONCE): Move around.
2565 (get_pc_thunk_name): Likewise.
2566 (gen_load_pcrel_sym): Likewise.
2567 (load_got_register): Likewise.
2569 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
2571 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
2572 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
2574 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
2576 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
2579 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
2581 * config.gcc (with_nds32_lib, glibc):
2582 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
2583 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
2584 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
2586 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
2589 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
2590 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
2591 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
2592 (*rcpsf2_sse): Ditto.
2593 (*rsqrtsf2_sse): Ditto.
2594 (sse4_1_round<mode<2): Ditto.
2596 2019-02-03 Richard Biener <rguenther@suse.de>
2599 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
2602 2019-02-02 Jakub Jelinek <jakub@redhat.com>
2605 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2606 Punt with warning on aggregate return or argument types. Ignore
2607 type/mode checking for uniform arguments.
2609 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
2611 * combine.c (try_combine): Do not print "Can't combine" messages unless
2612 printing failed combination attempts.
2614 2019-02-01 Martin Jambor <mjambor@suse.cz>
2617 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
2618 segment and global segment variables before making them static.
2620 2019-02-01 Martin Jambor <mjambor@suse.cz>
2622 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
2623 missed optimization dump with dump_enabled_p.
2625 2019-02-01 Richard Biener <rguenther@suse.de>
2628 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
2629 the instantiate cache.
2630 (instantiate_scev_binary): Elide second operand procesing
2631 if equal to the first.
2632 * tree-chrec.c (chrec_contains_symbols): Add visited set.
2633 (chrec_contains_undetermined): Likewise.
2634 (tree_contains_chrecs): Likewise.
2636 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
2638 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
2640 2019-02-01 Jakub Jelinek <jakub@redhat.com>
2642 PR tree-optimization/89143
2643 * wide-int-range.h (wide_int_range_absu): Declare.
2644 * wide-int-range.cc (wide_int_range_absu): New function.
2645 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
2647 PR tree-optimization/88107
2648 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
2649 instead of assertion that eh_region_outermost is non-NULL, if it
2650 is NULL, set *ALL to true and return NULL.
2651 (move_sese_region_to_fn): Adjust caller, if all is set, call
2652 duplicate_eh_regions with NULL region.
2654 2019-02-01 Richard Biener <rguenth@suse.de>
2656 PR rtl-optimization/88593
2657 * mode-switching.c (optimize_mode_switching): Free dominators before
2658 calling cleanup_cfg.
2660 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
2662 PR tree-optimization/88932
2663 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
2665 2019-01-31 Jakub Jelinek <jakub@redhat.com>
2668 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
2669 bogus clang warning.
2671 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
2674 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
2675 alternative to avoid partial SSE register stall for TARGET_AVX.
2676 (truncdfsf2): Ditto.
2677 (sse4_1_round<mode>2): Ditto.
2679 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
2681 PR tree-optimization/89008
2682 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
2683 process anything of the form X * 0.
2685 2019-01-31 Richard Biener <rguenther@suse.de>
2687 PR tree-optimization/89135
2688 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
2689 with abnormal preds.
2691 2019-01-31 Jakub Jelinek <jakub@redhat.com>
2694 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
2695 always_inline callees into no_sanitize_address callers.
2697 2019-01-31 Richard Biener <rguenther@suse.de>
2699 PR rtl-optimization/89115
2700 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
2702 2019-01-30 Martin Sebor <msebor@redhat.com>
2705 * doc/extend.texi (cast to a union): Correct and expand.
2707 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
2709 PR rtl-optimization/87246
2710 * lra-constraints.c (simplify_operand_subreg): Reload memory
2711 in subreg if the address became invalid.
2713 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
2716 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
2717 Disable for little-endian.
2719 2019-01-30 Richard Biener <rguenther@suse.de>
2721 PR rtl-optimization/89115
2722 * opts.c (default_options_optimization): Reduce
2723 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
2724 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
2727 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
2729 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
2730 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
2731 type of vector element when vec_extract is implemented by direct
2734 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
2736 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
2738 2019-01-30 Richard Biener <rguenther@suse.de>
2740 PR tree-optimization/89111
2741 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
2742 canonicalization to appropriately sized access types.
2744 2019-01-30 Jakub Jelinek <jakub@redhat.com>
2747 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
2748 for arguments to functions that are TU-local and shouldn't be
2749 referenced by assembly.
2751 2019-01-30 Ulrich Drepper <drepper@redhat.com>
2753 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
2756 2019-01-29 Martin Sebor <msebor@redhat.com>
2759 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
2761 2019-01-29 Jakub Jelinek <jakub@redhat.com>
2765 * omp-simd-clone.c (simd_clone_clauses_extract)
2766 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
2767 OMP_CLAUSE_ALIGNED_ALIGNMENT.
2769 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
2771 * config.gcc: Force .init_array for ARC.
2773 2019-01-29 Richard Biener <rguenther@suse.de>
2776 * dwarf2out.c (collect_skeleton_dies): New helper.
2777 (copy_decls_for_unworthy_types): Call it.
2778 (build_abbrev_table): Assert we do not try to replace
2779 DW_AT_signature refs with local refs.
2781 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2784 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
2785 for lastprivate/linear IV, push gimplify context around gimplify_assign
2786 and, if it needed any temporaries, pop it into a gimple bind around the
2789 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
2791 * common.opt (-Wattribute-alias): Remove "no-" from name.
2792 Make -Wattribute-alias command line option and
2793 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
2795 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2798 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
2799 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
2801 (bmi2): Add missing @opindex.
2802 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
2803 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
2804 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
2805 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
2806 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
2807 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
2808 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
2809 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
2810 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
2811 xsavec, xsaveopt and xsaves options.
2813 2019-01-28 Richard Biener <rguenther@suse.de>
2816 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
2819 2019-01-28 Richard Biener <rguenther@suse.de>
2821 PR tree-optimization/88739
2822 * tree-cfg.c (verify_types_in_gimple_reference): Verify
2823 BIT_FIELD_REFs only are applied to mode-precision operands
2824 when they are integral.
2825 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
2826 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
2827 BIT_FIELD_REFs of non-mode-precision integral operands.
2829 2019-01-27 Jakub Jelinek <jakub@redhat.com>
2832 * config/i386/sse.md
2833 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
2834 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
2835 first constants in pairs are multiples of 2. Formatting fixes.
2836 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
2837 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
2838 first constants in each quadruple are multiples of 4. Formatting fixes.
2840 2019-01-26 Martin Jambor <mjambor@suse.cz>
2843 * tree-inline.c: Include tree-cfgcleanup.h.
2844 (delete_unreachable_blocks_update_callgraph): Move...
2845 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
2846 ...here, make externally visible, make second argument bool, adjust
2848 * tree-cfgcleanup.c: Include cgraph.h.
2849 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
2851 * ipa-prop.c: Include tree-cfgcleanup.h.
2852 (ipcp_transform_function): Call
2853 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
2855 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
2857 PR rtl-optimization/88846
2858 * ira.c (process_set_for_memref_referenced_p): New.
2859 (memref_referenced_p): Add new param. Use
2860 process_set_for_memref_referenced_p. Add new switch cases.
2861 (memref_used_between_p): Pass new arg to memref_referenced_p.
2863 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
2866 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
2867 argument ABI_BREAK. Set to true if the calculated alignment has
2868 changed in gcc-9. Check bit-fields for their base type alignment.
2869 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
2870 (aarch64_function_arg_boundary): Likewise.
2871 (aarch64_gimplify_va_arg_expr): Likewise.
2873 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
2876 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
2877 instead of accessing TREE_INT_CST_ELT directly.
2879 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
2881 * doc/sourcebuild.texi (Environment attributes): Add fenv and
2882 fenv_exceptions description.
2884 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
2886 PR rtl-optimization/87763
2887 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
2888 Allow SUBREG when matching CC_NZmode compare.
2890 2019-01-25 Richard Biener <rguenther@suse.de>
2892 PR tree-optimization/89049
2893 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
2894 Look at the pattern stmt to determine if the stmt is vectorized.
2896 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
2898 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
2899 (pred_mov<mode>): Handle all-register forms using both a new
2900 alternative and a split.
2902 2019-01-25 Richard Biener <rguenther@suse.de>
2904 PR tree-optimization/86865
2905 * graphite-scop-detection.c (scop_detection::can_represent_loop):
2906 Reject non-do-while loops.
2908 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
2910 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
2911 * config/rs6000/constraints.md (Q constraint): Use REG_P.
2912 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
2913 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
2914 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
2915 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
2916 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
2917 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
2918 vlogical_operand, gpc_reg_operand, int_reg_operand,
2919 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
2920 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
2921 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
2922 (save_world_operation, restore_world_operation, lmw_operation,
2923 stmw_operation): Use MEM_P and REG_P.
2924 (tie_operand): Use MEM_P.
2925 (vrsave_operation, crsave_operation): Use REG_P.
2926 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
2927 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
2928 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
2929 (call_operand): Use HARD_REGISTER_P.
2930 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
2932 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
2933 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
2934 quad_aligned_load_p, replace_swapped_aligned_store,
2935 recombine_lvx_pattern, replace_swapped_aligned_load,
2936 recombine_stvx_pattern): Use MEM_P.
2937 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
2938 Use MEM_P and SYMBOL_REF_P.
2939 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
2940 (insn_is_swappable_p): Use REG_P and MEM_P.
2941 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
2942 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
2944 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
2946 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
2948 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
2949 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
2950 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
2951 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
2953 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
2954 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
2955 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
2956 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
2957 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
2958 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
2959 rs6000_split_logical_di): Use CONST_INT_P.
2960 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
2961 REG_P and SYMBOL_REF_P.
2962 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
2963 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
2964 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
2965 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
2966 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
2967 (small_data_operand, print_operand_address): Use CONST_INT_P and
2969 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
2970 (rs6000_init_hard_regno_mode_ok, direct_move_p):
2971 Use HARD_REGISTER_NUM_P.
2972 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
2973 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
2974 SUBREG_P and SYMBOL_REF_P.
2975 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
2976 and HARD_REGISTER_NUM_P.
2977 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
2979 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
2980 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
2982 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
2983 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
2984 find_addr_reg): Use REG_P.
2985 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
2986 (rs6000_emit_le_vsx_move): Use SUBREG_P.
2987 (offsettable_ok_by_alignment, constant_pool_expr_p,
2988 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
2989 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
2990 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
2991 rs6000_assemble_integer, create_TOC_reference,
2992 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
2993 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
2994 (rs6000_split_vec_extract_var): Use reg_or_subregno.
2995 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
2996 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
2997 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
2998 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
2999 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
3000 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
3001 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
3002 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
3003 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
3004 and cbranch<mode>4): Use CONST_INT_P.
3005 (multiple define_splits): Use REG_P and SUBREG_P.
3006 (define_expands call, call_value): Use MEM_P.
3007 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
3008 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
3009 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
3010 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
3011 and HARD_REGISTER_NUM_P.
3012 (multiple define_splits): Use HARD_REGISTER_NUM_P.
3014 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3016 PR rtl-optimization/88948
3017 * rtl.h (prepare_copy_insn): New prototype.
3018 * gcse.c (prepare_copy_insn): New function, split out from
3019 process_insert_insn.
3020 (process_insert_insn): Use prepare_copy_insn.
3021 * store-motion.c (replace_store_insn): Use prepare_copy_insn
3022 instead of gen_move_insn.
3024 2019-01-24 Jakub Jelinek <jakub@redhat.com>
3027 * config/i386/i386.c (ix86_pic_register_p): Return true for
3030 PR tree-optimization/88964
3031 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
3032 punt if HONOR_SNANS (chrec).
3035 * tree-nested.c (convert_nonlocal_reference_stmt,
3036 convert_local_reference_stmt, convert_tramp_reference_stmt,
3037 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
3038 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
3041 PR tree-optimization/89027
3042 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
3043 for "omp simd array" variables.
3045 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
3048 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
3049 force the alignment of m_val.
3051 2019-01-24 Richard Biener <rguenther@suse.de>
3054 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
3055 When in "legacy" debug mode make sure to reset self-origins.
3057 2019-01-24 Martin Liska <mliska@suse.cz>
3059 PR gcov-profile/88994
3060 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
3061 result will be always smaller or equal to the original.
3062 * gcov.c (mangle_name): Fix else branch where we should
3063 also copy to PTR and shift the pointer.
3065 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
3067 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
3068 * vr-values.c (find_case_label_ranges): Fix a comment typo.
3070 2019-01-23 Bin Cheng <bin.cheng@arm.com>
3071 Steve Ellcey <sellcey@marvell.com>
3074 * recog.c (address_operand): Return false on wrong mode for address.
3075 (constrain_operands): Check for mode with 'p' constraint.
3077 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
3080 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
3081 Disparage MMX alternative.
3082 (sse2_cvtpd2pi): Ditto.
3083 (sse2_cvttpd2pi): Ditto.
3085 2019-01-23 David Malcolm <dmalcolm@redhat.com>
3088 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
3089 use-after-free of the result of
3090 aarch64_get_extension_string_for_isa_flags.
3092 2019-01-23 Jakub Jelinek <jakub@redhat.com>
3095 * doc/extend.texi: Document break and continue behavior in
3096 statement expressions.
3098 2019-01-23 Richard Biener <rguenther@suse.de>
3100 PR tree-optimization/89008
3101 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
3102 not leave another stray operand.
3104 2019-01-23 Jakub Jelinek <jakub@redhat.com>
3106 * BASE-VER: Bump to 9.0.1.
3108 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
3110 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
3111 thunk that returns by reference, use the type of the return object
3112 of the thunk instead of that of the alias to build the dereference.
3114 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
3116 * config/arc/atomic.md: Add operand to DMB instruction.
3118 2019-01-23 Jakub Jelinek <jakub@redhat.com>
3120 PR tree-optimization/88964
3121 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
3122 build_zero_cst instead of build_int_cst. Return false for loop
3123 invariants which honor signed zeros.
3125 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
3127 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
3129 2019-01-22 Jakub Jelinek <jakub@redhat.com>
3132 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
3133 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
3134 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
3137 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
3138 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
3141 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
3142 Disable for little endian.
3144 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
3147 * config/arm/arm.c (arm_needs_double_word_align): Check
3148 DECL_BIT_FIELD_TYPE.
3150 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
3151 H.J. Lu <hongjiu.lu@intel.com>
3154 * config/i386/i386-builtin.def: Add mask2 to all builtin
3155 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
3157 * config/i386/i386.c (BDESC): Add mask2 to the definition.
3158 (BDESC_FIRST): Likewise.
3159 (define_builtin): Add an argument for mask2. Updated to handle
3160 both ix86_isa_flags and ix86_isa_flags2.
3161 (define_builtin_const): Likewise.
3162 (define_builtin_pure): Likewise.
3163 (define_builtin2): Deleted.
3164 (define_builtin_const2): Likewise.
3165 (builtin_description): Add a member, mask2.
3166 (bdesc_*): Add mask2 to builtin initializations.
3167 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
3168 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
3170 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
3172 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
3175 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
3178 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
3181 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
3182 alignment is dominated by a bitfield with 64-bit aligned base type.
3183 (arm_function_arg): Emit a warning if the alignment has changed since
3184 earlier GCC releases.
3185 (arm_function_arg_boundary): Likewise.
3186 (arm_setup_incoming_varargs): Likewise.
3188 2019-01-22 Richard Biener <rguenther@suse.de>
3190 PR tree-optimization/88862
3191 * graphite-scop-detection.c
3192 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
3194 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
3196 * doc/extend.tex (AMD GCN Function Attributes): New section.
3197 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
3198 * doc/invoke.texi (AMD GCN Options): New section.
3199 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
3201 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
3203 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
3204 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
3206 2019-01-22 Jakub Jelinek <jakub@redhat.com>
3208 PR tree-optimization/88044
3209 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
3210 is false in the first iteration, but !every_iteration, return false
3211 instead of true with niter->niter zero.
3213 PR rtl-optimization/88904
3214 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
3215 any nonequal registers before processing BB_END (b).
3218 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
3220 (expand_binop_directly, expand_doubleword_clz,
3221 expand_doubleword_popcount, expand_ctz, expand_ffs,
3222 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
3224 PR rtl-optimization/49429
3226 PR rtl-optimization/86334
3228 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
3229 addressable from here...
3230 (emit_block_op_via_libcall): ... to here.
3232 2019-01-22 Richard Biener <rguenther@suse.de>
3234 * tree-vect-loop.c (vect_analyze_loop_operations): Use
3235 auto_vec for cost vector to fix memleak.
3236 (vectorize_fold_left_reduction): Properly gather SLP defs.
3237 (vectorizable_comparison): Do not swap operands to properly
3240 2019-01-22 Alan Modra <amodra@gmail.com>
3243 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
3244 stays a reg. Allow a const_int.
3245 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
3246 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
3247 (IS_NOMARK_TLSGETADDR): Define.
3248 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
3249 (rs6000_output_tlsargs): New function.
3250 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
3251 __tls_get_addr call takes an arg.
3252 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
3253 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
3255 (call_value_nonlocal_sysv): ..or here, delete split.
3256 (tls_gdld_nomark): Delete.
3257 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
3258 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
3259 (call_value_nonlocal_sysv): Likewise.
3260 (call_value_nonlocal_sysv_secure): Likewise.
3261 (call_value_nonlocal_aix): Likewise.
3262 (call_value_indirect_aix): Likewise.
3263 (call_value_indirect_elfv2): Likewise.
3264 (call_value_local32, call_value_local64): Disable for no-mark tls.
3265 (call_value_local_aix): Likewise.
3267 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
3270 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
3271 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
3273 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
3275 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
3276 string contents as hash_map keys.
3278 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3281 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
3282 for rvalue context. Handle rvalues correctly. Use min_align_of_type
3283 instead of TYPE_ALIGN.
3284 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
3285 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
3286 pointer from TYPE_STUB_DECL.
3288 2019-01-21 Richard Biener <rguenther@suse.de>
3290 PR tree-optimization/88934
3291 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
3292 at the possibly non-constant operand.
3293 (vect_get_constant_vectors): Adjust.
3295 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3298 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
3299 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
3300 instead of _X86INTRIN_H_INCLUDED.
3301 * onfig/i386/clwbintrin.h: Likewise.
3302 * config/i386/pkuintrin.h: Likewise.
3303 * config/i386/prfchwintrin.h: Likewise.
3304 * config/i386/rdseedintrin.h: Likewise.
3305 * config/i386/wbnoinvdintrin.h: Likewise.
3306 * config/i386/xsavecintrin.h: Likewise.
3307 * config/i386/xsavesintrin.h: Likewise.
3308 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
3309 * config/i386/xsaveintrin.h: Likewise.
3310 * config/i386/xsaveoptintrin.h: Likewise.
3311 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
3312 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
3313 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
3314 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
3315 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
3316 * config/i386/immintrin.h: Here.
3318 2019-01-20 Martin Jambor <mjambor@suse.cz>
3321 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
3322 with aa_walk_budget.
3323 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
3324 aa_walk_budget_p parameter.
3325 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
3326 walk. Updated all callers.
3327 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
3328 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
3330 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
3331 parameter info. Extract info from fbi. Pass fbi to recursive calls
3332 and to unmodified_parm.
3333 (phi_result_unknown_predicate): New parameter fbi, removed parameter
3334 info, updated call to will_be_nonconstant_expr_predicate.
3335 (param_change_prob): New parameter fbi, limit AA walking.
3336 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
3337 calls to various above functions.
3338 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
3339 parameter. Use it to limit AA walking.
3340 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
3342 (detect_type_change): New parameter fbi, pass it on to
3343 detect_type_change_from_memory_writes.
3344 (detect_type_change_ssa): Likewise.
3345 (aa_overwalked): Removed.
3346 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
3347 accordingly, adjust to the neew AA limiting scheme.
3348 (parm_ref_data_preserved_p): Likewise.
3349 (ipa_compute_jump_functions_for_edge): Adjust call to
3351 (ipa_analyze_call_uses): Likewise.
3352 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
3353 (ipa_analyze_node): Initialize aa_walk_budget.
3354 (ipcp_transform_function): Likewise.
3355 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
3356 to get_dynamic_type.
3358 2019-01-19 Jakub Jelinek <jakub@redhat.com>
3360 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
3361 outside of #if CHECKING_P code.
3363 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
3365 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
3366 New function, split out from...
3367 (loop_versioning::analyze_stride): ...here.
3368 (loop_versioning::find_per_loop_multiplication): Use gassign.
3369 (loop_versioning::analyze_term_using_scevs): Return a success code.
3370 (loop_versioning::analyze_arbitrary_term): New function.
3371 (loop_versioning::analyze_address_fragment): Use
3372 analyze_arbitrary_term if all else fails.
3374 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
3377 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
3380 2019-01-18 Richard Biener <rguenther@suse.de>
3382 PR tree-optimization/88903
3383 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
3384 scalar stmts a SLP shift amount is composed of when detecting
3387 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
3390 * config/arm/arm-cpus.in (mp): New feature.
3392 (fgroup ARMv7ve): Add mp and sec features.
3393 (arch armv7-a): Add options to allow mp and sec extensions.
3394 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
3395 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
3396 extenstions to the base architecture.
3397 (cpu cortex-a8): Add sec extension to the base architecture.
3398 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
3399 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
3400 variants down to the base v7-a varaint.
3401 * config/arm/t-multilib (v7_a_arch_variants): New variable.
3402 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
3403 of permitted extensions for -march=armv7-a and for
3404 -mcpu=generic-armv7-a.
3406 2019-01-18 Martin Liska <mliska@suse.cz>
3408 * params.def: Fix comment.
3409 * tree-profile.c (gimple_init_gcov_profiler): Bump function
3411 (gimple_gen_ic_func_profiler): Likewise.
3413 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3415 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
3416 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
3417 and put in error checks for stack protector guard options.
3418 (aarch64_stack_protect_guard): New.
3419 (TARGET_STACK_PROTECT_GUARD): Define.
3420 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
3421 (reg_stack_protect_address<mode>): New.
3422 (stack_protect_set): Adjust for SSP_GLOBAL.
3423 (stack_protect_test): Likewise.
3424 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
3425 (-mstack-protector-guard): Likewise.
3426 (-mstack-protector-guard-offset): Likewise.
3428 2019-01-18 Jakub Jelinek <jakub@redhat.com>
3430 PR tree-optimization/86214
3431 * tree-inline.h (struct copy_body_data): Add
3432 add_clobbers_to_eh_landing_pads member.
3433 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
3434 (copy_edges_for_bb): Call it if EH edge destination is <
3435 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
3436 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
3437 if flag_stack_reuse != SR_NONE and clear it afterwards.
3439 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
3442 * doc/install.texi (with-multilib-list): Document for aarch64.
3444 2019-01-18 Jakub Jelinek <jakub@redhat.com>
3447 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
3448 (("..."))) with ("...").
3450 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
3452 * doc/extend.texi (Built-in Functions for Memory Model Aware
3453 Atomic Operations): Document atomic fetch and nand.
3455 2019-01-18 Martin Liska <mliska@suse.cz>
3456 Richard Biener <rguenther@suse.de>
3459 * cgraph.h (create_version_clone_with_body): Add new argument
3461 * cgraphclones.c (cgraph_node::create_version_clone): Add
3462 DECL_ATTRIBUTES to a newly created decl. And call
3463 valid_attribute_p so that proper cl_target_optimization_node
3464 is set for the newly created declaration.
3465 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
3467 (expand_target_clones): Do not call valid_attribute_p, it must
3469 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
3472 2019-01-17 Jakub Jelinek <jakub@redhat.com>
3475 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
3476 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
3477 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
3479 2019-01-17 Martin Sebor <msebor@redhat.com>
3482 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
3483 Handle anti-ranges the same as no range at all.
3485 2018-01-17 Steve Ellcey <sellcey@cavium.com>
3487 * config/aarch64/aarch64.c (cgraph.h): New include.
3488 (intl.h): New include.
3489 (supported_simd_type): New function.
3490 (currently_supported_simd_type): Ditto.
3491 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
3492 (aarch64_simd_clone_adjust): Ditto.
3493 (aarch64_simd_clone_usable): Ditto.
3494 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
3495 (TARGET_SIMD_CLONE_ADJUST): Ditto.
3496 (TARGET_SIMD_CLONE_USABLE): Ditto.
3497 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
3498 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
3501 2019-01-17 Martin Sebor <msebor@redhat.com>
3503 PR tree-optimization/88800
3504 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
3505 NO_WARNING bit here. Avoid folding out-of-bounds calls.
3506 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
3507 redundant argument. Add new argument and issue diagnostics under
3508 its control. Detect out-of-bounds access even with warnings
3510 (check_bounds_or_overlap): Change return type. Add argument.
3511 (wrestrict_dom_walker::check_call): Adjust.
3512 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
3513 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
3514 check_bounds_or_overlap's return value.
3515 (handle_builtin_stxncpy): Same.
3516 (handle_builtin_strcat): Same.
3518 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3519 Kwok Cheung Yeung <kcy@codesourcery.com>
3520 Julian Brown <julian@codesourcery.com>
3521 Tom de Vries <tom@codesourcery.com>
3523 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
3525 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3527 * doc/sourcebuild.texi: Document dg-require-effective-target
3528 llvm_binutils and offload_gcn.
3530 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3531 Kwok Cheung Yeung <kcy@codesourcery.com>
3532 Julian Brown <julian@codesourcery.com>
3533 Tom de Vries <tom@codesourcery.com>
3535 * doc/sourcebuild.texi: Document dg-required-effective-target
3538 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3539 Kwok Cheung Yeung <kcy@codesourcery.com>
3540 Julian Brown <julian@codesourcery.com>
3541 Tom de Vries <tom@codesourcery.com>
3542 Jan Hubicka <hubicka@ucw.cz>
3543 Martin Jambor <mjambor@suse.cz>
3545 * config.gcc: Add amdgcn*-*-amdhsa configuration.
3546 * configure.ac: Check for dlopen.
3547 * configure: Regenerate.
3549 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3550 Kwok Cheung Yeung <kcy@codesourcery.com>
3551 Julian Brown <julian@codesourcery.com>
3552 Tom de Vries <tom@codesourcery.com>
3553 Jan Hubicka <hubicka@ucw.cz>
3554 Martin Jambor <mjambor@suse.cz>
3556 * common/config/gcn/gcn-common.c: New file.
3557 * config/gcn/driver-gcn.c: New file.
3558 * config/gcn/gcn-builtins.def: New file.
3559 * config/gcn/gcn-hsa.h: New file.
3560 * config/gcn/gcn-modes.def: New file.
3561 * config/gcn/gcn-opts.h: New file.
3562 * config/gcn/gcn-passes.def: New file.
3563 * config/gcn/gcn-protos.h: New file.
3564 * config/gcn/gcn-run.c: New file.
3565 * config/gcn/gcn-tree.c: New file.
3566 * config/gcn/gcn.c: New file.
3567 * config/gcn/gcn.h: New file.
3568 * config/gcn/gcn.opt: New file.
3569 * config/gcn/t-gcn-hsa: New file.
3571 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
3572 Kwok Cheung Yeung <kcy@codesourcery.com>
3573 Julian Brown <julian@codesourcery.com>
3574 Tom de Vries <tom@codesourcery.com>
3575 Jan Hubicka <hubicka@ucw.cz>
3576 Martin Jambor <mjambor@suse.cz>
3578 * config/gcn/constraints.md: New file.
3579 * config/gcn/gcn-valu.md: New file.
3580 * config/gcn/gcn.md: New file.
3581 * config/gcn/predicates.md: New file.
3583 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
3585 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
3586 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
3587 (stmt_uses_0_or_null_in_undefined_way): Likewise.
3588 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
3590 2019-01-17 Tamar Christina <tamar.christina@arm.com>
3593 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
3594 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
3595 it and document registers.
3597 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3599 * config/aarch64/aarch64.c (ares_tunings): Define.
3600 * config/aarch64/aarch64-cores.def (ares): Use the above.
3602 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
3606 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
3608 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
3609 (_mm512_fixupimm_round_pd): Update parameters and builtin.
3610 (_mm512_maskz_fixupimm_round_pd): Ditto.
3611 (_mm512_fixupimm_round_ps): Ditto.
3612 (_mm512_maskz_fixupimm_round_ps): Ditto.
3613 (_mm_fixupimm_round_sd): Ditto.
3614 (_mm_maskz_fixupimm_round_sd): Ditto.
3615 (_mm_fixupimm_round_ss): Ditto.
3616 (_mm_maskz_fixupimm_round_ss): Ditto.
3617 (_mm512_fixupimm_pd): Ditto.
3618 (_mm512_maskz_fixupimm_pd): Ditto.
3619 (_mm512_fixupimm_ps): Ditto.
3620 (_mm512_maskz_fixupimm_ps): Ditto.
3621 (_mm_fixupimm_sd): Ditto.
3622 (_mm_maskz_fixupimm_sd): Ditto.
3623 (_mm_fixupimm_ss): Ditto.
3624 (_mm_maskz_fixupimm_ss): Ditto.
3625 (_mm512_mask_fixupimm_round_pd): Update builtin.
3626 (_mm512_mask_fixupimm_round_ps): Ditto.
3627 (_mm_mask_fixupimm_round_sd): Ditto.
3628 (_mm_mask_fixupimm_round_ss): Ditto.
3629 (_mm512_mask_fixupimm_pd): Ditto.
3630 (_mm512_mask_fixupimm_ps): Ditto.
3631 (_mm_mask_fixupimm_sd): Ditto.
3632 (_mm_mask_fixupimm_ss): Ditto.
3633 * config/i386/avx512vlintrin.h:
3634 (_mm256_fixupimm_pd): Update parameters and builtin.
3635 (_mm256_maskz_fixupimm_pd): Ditto.
3636 (_mm256_fixupimm_ps): Ditto.
3637 (_mm256_maskz_fixupimm_ps): Ditto.
3638 (_mm_fixupimm_pd): Ditto.
3639 (_mm_maskz_fixupimm_pd): Ditto.
3640 (_mm_fixupimm_ps): Ditto.
3641 (_mm_maskz_fixupimm_ps): Ditto.
3642 (_mm256_mask_fixupimm_pd): Update builtin.
3643 (_mm256_mask_fixupimm_ps): Ditto.
3644 (_mm_mask_fixupimm_pd): Ditto.
3645 (_mm_mask_fixupimm_ps): Ditto.
3646 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
3647 * config/i386/i386-builtin.def: Update builtin definitions.
3648 * config/i386/i386.c: Handle new builtin types and remove useless ones.
3649 * config/i386/sse.md: Update VFIXUPIMM* patterns.
3650 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3651 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3652 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
3653 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3654 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3655 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
3656 * config/i386/subst.md:
3657 (round_saeonly_sd_mask_operand4): Add new subst_attr.
3658 (round_saeonly_sd_mask_op4): Ditto.
3659 (round_saeonly_expand_operand5): Ditto.
3660 (round_saeonly_expand): Update.
3662 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
3666 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
3668 * config/i386/sse.md: Combine VFIXUPIMM* patterns
3669 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3670 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3671 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
3672 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3673 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3674 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
3676 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
3680 2018-12-15 Jakub Jelinek <jakub@redhat.com>
3683 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
3684 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
3685 instead of UNSPEC_FIXUPIMM.
3687 2019-01-17 Richard Biener <rguenther@suse.de>
3690 * dwarf2out.c (want_pubnames): Never generate pubnames sections
3691 and friends for the LTO part of debug info.
3693 2019-01-17 Jakub Jelinek <jakub@redhat.com>
3695 PR tree-optimization/86214
3696 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
3699 PR rtl-optimization/88870
3700 * dce.c (deletable_insn_p): Never delete const/pure calls that can
3701 throw if we can't alter the cfg or delete dead exceptions.
3702 (mark_insn): Don't call find_call_stack_args for such calls.
3704 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
3706 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
3707 prototypes for vec_st.
3708 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
3709 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
3710 mainly on signed/unsigned long long and double.
3712 2019-01-16 David Malcolm <dmalcolm@redhat.com>
3715 * combine.c (delete_noop_moves): Convert to "bool" return,
3716 returning true if any edges are eliminated.
3717 (combine_instructions): Also return true if delete_noop_moves
3720 2019-01-16 Tamar Christina <tamar.christina@arm.com>
3722 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
3723 correct max nunits for endian swap.
3724 (aarch64_expand_fcmla_builtin): Correct subreg code.
3725 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
3726 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
3729 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
3731 * config/alpha/alpha.c (alpha_gimplify_va_arg):
3732 Handle split indirect COMPLEX_TYPE arguments.
3734 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
3737 * config/aarch64/aarch64-modes.def: Add comment about how the carry
3738 bit is set by add and compare.
3739 (CC_ADC): New CC_MODE.
3740 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
3741 to cache the code and mode of X. Adjust the shape of a CC_Cmode
3742 comparison. Add detection for CC_ADCmode.
3743 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
3745 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
3746 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
3747 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
3748 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
3749 to eliminate the need for zero-extending the operands.
3750 (add<mode>3_compareC_imm): Delete. Merge into ...
3751 (add<mode>3_compareC): ... this. Restructure the comparison to
3752 eliminate the need for zero-extending the operands.
3753 (add<mode>3_carryin): Use LTU for the overflow detection.
3754 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
3755 Reexpress comparison for overflow.
3756 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
3757 (add<mode>3_carryinC): Likewise.
3758 (add<mode>3_carryinV): Use LTU for carry between partials.
3759 * config/aarch64/predicates.md (aarch64_carry_operation): Update
3760 handling of CC_Cmode and add CC_ADCmode.
3761 (aarch64_borrow_operation): Likewise.
3763 2019-01-16 Tamar Christina <tamar.christina@arm.com>
3765 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
3766 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
3767 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
3768 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
3770 2019-01-16 Martin Liska <mliska@suse.cz>
3772 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
3774 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
3776 * gcc.c (add_sysrooted_hdrs_prefix): New function.
3777 (path_prefix_reset): Move up in the source file.
3778 (find_fortran_preinclude_file): Make complex search for the
3779 fortran header files.
3781 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
3783 * godump.c (go_output_typedef): When outputting a typedef, refer
3784 to the underlying type by its name and not its structure.
3786 2019-01-15 David Malcolm <dmalcolm@redhat.com>
3789 * tree.c (build_function_type): Assert that arg_types is not
3792 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
3795 * doc/extend.texi: Document that listing the stack pointer in the
3796 clobber list of an asm is a deprecated feature.
3797 * common.opt (Wdeprecated): Moved from c-family/c.opt.
3798 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
3799 warning instead of an error for clobbers of the stack pointer.
3800 Add a note explaining why.
3802 2019-01-15 Richard Biener <rguenther@suse.de>
3805 * dwarf2out.c (gen_member_die): Do not generate inheritance
3808 2019-01-15 Richard Biener <rguenther@suse.de>
3810 PR tree-optimization/88855
3811 * tree-if-conv.c (combine_blocks): Collect
3812 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
3814 2019-01-15 Tom de Vries <tdevries@suse.de>
3817 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
3818 lhs == NULL_TREE for gang-level reduction.
3820 2019-01-15 Richard Biener <rguenther@suse.de>
3821 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3824 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
3825 return true if SSA_NAME is already marked in visited bitmap.
3826 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
3828 2019-01-15 Jakub Jelinek <jakub@redhat.com>
3830 PR tree-optimization/88775
3831 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
3832 equal == 0 equality pointer comparisons some more if compared in
3833 integral types and either one points to an automatic var and the
3834 other to a global, or we can prove at least one points to the middle
3835 or both point to start or both point to end.
3837 2019-01-14 Andi Kleen <ak@linux.intel.com>
3839 * Makefile.in: Lower autofdo sampling rate by 10x.
3840 * Makefile.tpl: Dito.
3842 2019-01-14 Tom Honermann <tom@honermann.net>
3844 * defaults.h: Define CHAR8_TYPE.
3846 2019-01-14 Martin Sebor <msebor@redhat.com>
3849 * doc/extend.texi (Darwin Format Checks): Clarify.
3851 2019-01-14 Richard Biener <rguenther@suse.de>
3853 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
3854 whether we are in (simplify ...) or (match ...) context.
3856 2019-01-14 Jakub Jelinek <jakub@redhat.com>
3858 PR rtl-optimization/88796
3859 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
3860 * cfgexpand.c (stack_protect_prologue): Initialize
3861 crtl->stack_protect_guard_decl.
3862 * function.c (stack_protect_epilogue): Use it instead of calling
3863 targetm.stack_protect_guard again.
3864 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
3865 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
3866 crtl->stack_protect_guard_decl.
3867 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
3868 on the returned MEM_EXPR.
3870 2019-01-12 Tom de Vries <tdevries@suse.de>
3872 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
3873 vector length using -fopenacc-dim.
3875 2019-01-12 Tom de Vries <tdevries@suse.de>
3877 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
3878 lengths into account.
3880 2019-01-12 Svante Signell <svante.signell@gmail.com>
3882 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
3883 (TARGET_CAN_SPLIT_STACK): Define.
3884 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
3886 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
3888 * params.def (inline-unit-growth): Set to 40.
3890 2019-01-12 Jakub Jelinek <jakub@redhat.com>
3892 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
3894 2019-01-12 Tom de Vries <tdevries@suse.de>
3896 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
3897 region calling vector-partitionable routine, set default_vector_length
3900 2019-01-12 Tom de Vries <tdevries@suse.de>
3902 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
3903 variable default_vector_length.
3905 2019-01-12 Tom de Vries <tdevries@suse.de>
3908 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
3909 from oacc_default_dims, as oacc_validate_dims would do it, and apply
3912 2019-01-12 Tom de Vries <tdevries@suse.de>
3914 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
3915 (nvptx_goacc_validate_dims): Add used parameter.
3916 * doc/tm.texi: Regenerate.
3917 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
3918 argument to call to targetm.goacc.validate_dims.
3919 (default_goacc_validate_dims): Add used
3921 * target.def (validate_dims): Add used parameter in DEFHOOK.
3922 * targhooks.h (default_goacc_validate_dims): Add used parameter.
3924 2019-01-11 Jakub Jelinek <jakub@redhat.com>
3928 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
3930 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
3931 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
3932 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
3933 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
3935 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
3937 PR rtl-optimization/87305
3939 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
3940 for little endian pseudos used as paradoxical subreg.
3942 2019-01-11 Jakub Jelinek <jakub@redhat.com>
3944 PR tree-optimization/88693
3945 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
3946 for STRING_CSTs that don't contain any NUL characters in the first
3947 TREE_STRING_LENGTH bytes.
3949 2019-01-11 Alan Modra <amodra@gmail.com>
3953 * genattrtab.c (min_fn): Don't translate values.
3954 (min_attr_value): Return INT_MAX when the value can't be calculated.
3955 Return minimum among any values that can be calculated.
3956 (max_attr_value): Adjust.
3958 2019-01-11 Jakub Jelinek <jakub@redhat.com>
3960 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
3962 2019-01-11 Steve Ellcey <sellcey@marvell.com>
3964 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
3965 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
3966 (aarch64_return_call_with_max_clobbers): New function.
3967 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
3968 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
3970 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
3971 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
3972 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
3973 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
3974 * cselib.c (cselib_process_insn): Add argument to
3975 targetm.hard_regno_call_part_clobbered call.
3976 * ira-conflicts.c (ira_build_conflicts): Ditto.
3977 * ira-costs.c (ira_tune_allocno_costs): Ditto.
3978 * lra-constraints.c (inherit_reload_reg): Ditto.
3979 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
3980 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
3981 argument. Call targetm.return_call_with_max_clobbers.
3982 Add argument to targetm.hard_regno_call_part_clobbered call.
3983 (calls_have_same_clobbers_p): New function.
3984 (process_bb_lives): Add call_insn and last_call_insn variables.
3985 Pass call_insn to check_pseudos_live_through_calls.
3986 Modify if stmt to check targetm.return_call_with_max_clobbers.
3987 Update setting of flush variable.
3988 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
3990 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
3991 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
3992 targetm.hard_regno_call_part_clobbered call.
3993 * reginfo.c (choose_hard_reg_mode): Ditto.
3994 * regrename.c (check_new_reg_p): Ditto.
3995 * reload.c (find_equiv_reg): Ditto.
3996 * reload1.c (emit_reload_insns): Ditto.
3997 * sched-deps.c (deps_analyze_insn): Ditto.
3998 * sel-sched.c (init_regs_for_mode): Ditto.
3999 (mark_unavailable_hard_regs): Ditto.
4000 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
4001 * target.def (hard_regno_call_part_clobbered): Add insn argument.
4002 (return_call_with_max_clobbers): New target function.
4003 * doc/tm.texi: Regenerate.
4004 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
4005 * hooks.c (hook_bool_uint_mode_false): Change to
4006 hook_bool_insn_uint_mode_false.
4007 * hooks.h (hook_bool_uint_mode_false): Ditto.
4009 2019-01-11 Steve Ellcey <sellcey@marvell.com>
4011 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
4012 (aarch64_remove_extra_call_preserved_regs): New function.
4013 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
4014 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
4015 * doc/tm.texi: Regenerate.
4016 * final.c (get_call_reg_set_usage): Call new hook.
4017 * target.def (remove_extra_call_preserved_regs): New hook.
4018 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
4019 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
4021 2019-01-11 Jakub Jelinek <jakub@redhat.com>
4024 * passes.c (finish_optimization_passes): Call print_combine_total_stats
4025 inside of pass_combine_1 dump rather than pass_profile_1.
4027 2019-01-11 Tom de Vries <tdevries@suse.de>
4029 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
4030 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
4031 (PTX_NUM_PER_WORKER_BARRIERS): Define.
4032 (nvptx_apply_dim_limits): Prevent vector_length 64 and
4035 2019-01-11 Tom de Vries <tdevries@suse.de>
4037 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
4039 2019-01-11 Jan Beulich <jbeulich@suse.com>
4041 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
4042 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
4043 sse2_cvtsi2sd): Add {l}.
4044 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
4047 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4050 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
4052 (*float<floatunssuffix>v2div2sf2): New define_insn.
4053 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
4054 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
4055 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
4056 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
4057 match_operands with "const0_operand" "C".
4059 2019-01-10 Tamar Christina <tamar.christina@arm.com>
4061 * config/aarch64/aarch64-builtins.c
4062 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
4063 (aarch64_init_simd_builtins): ...Here
4065 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
4067 PR rtl-optimization/87305
4069 (setup_live_pseudos_and_spill_after_risky_transforms): Check
4070 allocation for big endian pseudos used as paradoxical subregs and
4071 spill them if it is wrong.
4072 * lra-constraints.c (lra_constraints): Add a comment.
4074 2019-01-10 Richard Biener <rguenther@suse.de>
4076 PR tree-optimization/88792
4077 * tree-ssa-pre.c (get_representative_for): Do not return a
4080 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4084 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
4085 (assign_parm_setup_block): Do the argument slot realignment here
4088 2019-01-10 Stefan Agner <stefan@agner.ch>
4091 * config/arm/arm.c (arm_option_override_internal): Force
4092 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
4094 2019-01-10 Jakub Jelinek <jakub@redhat.com>
4097 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
4100 2019-01-10 Tamar Christina <tamar.christina@arm.com>
4102 * config/arm/arm-builtins.c
4103 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
4104 (MAC_LANE_PAIR_QUALIFIERS): New.
4105 (arm_expand_builtin_args): Use it.
4106 (arm_expand_builtin_1): Likewise.
4107 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
4108 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
4109 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
4110 * config/arm/arm_neon.h:
4111 (vcadd_rot90_f16): New.
4112 (vcaddq_rot90_f16): New.
4113 (vcadd_rot270_f16): New.
4114 (vcaddq_rot270_f16): New.
4117 (vcmla_lane_f16): New.
4118 (vcmla_laneq_f16): New.
4119 (vcmlaq_lane_f16): New.
4120 (vcmlaq_laneq_f16): New.
4121 (vcmla_rot90_f16): New.
4122 (vcmlaq_rot90_f16): New.
4123 (vcmla_rot90_lane_f16): New.
4124 (vcmla_rot90_laneq_f16): New.
4125 (vcmlaq_rot90_lane_f16): New.
4126 (vcmlaq_rot90_laneq_f16): New.
4127 (vcmla_rot180_f16): New.
4128 (vcmlaq_rot180_f16): New.
4129 (vcmla_rot180_lane_f16): New.
4130 (vcmla_rot180_laneq_f16): New.
4131 (vcmlaq_rot180_lane_f16): New.
4132 (vcmlaq_rot180_laneq_f16): New.
4133 (vcmla_rot270_f16): New.
4134 (vcmlaq_rot270_f16): New.
4135 (vcmla_rot270_lane_f16): New.
4136 (vcmla_rot270_laneq_f16): New.
4137 (vcmlaq_rot270_lane_f16): New.
4138 (vcmlaq_rot270_laneq_f16): New.
4139 (vcadd_rot90_f32): New.
4140 (vcaddq_rot90_f32): New.
4141 (vcadd_rot270_f32): New.
4142 (vcaddq_rot270_f32): New.
4145 (vcmla_lane_f32): New.
4146 (vcmla_laneq_f32): New.
4147 (vcmlaq_lane_f32): New.
4148 (vcmlaq_laneq_f32): New.
4149 (vcmla_rot90_f32): New.
4150 (vcmlaq_rot90_f32): New.
4151 (vcmla_rot90_lane_f32): New.
4152 (vcmla_rot90_laneq_f32): New.
4153 (vcmlaq_rot90_lane_f32): New.
4154 (vcmlaq_rot90_laneq_f32): New.
4155 (vcmla_rot180_f32): New.
4156 (vcmlaq_rot180_f32): New.
4157 (vcmla_rot180_lane_f32): New.
4158 (vcmla_rot180_laneq_f32): New.
4159 (vcmlaq_rot180_lane_f32): New.
4160 (vcmlaq_rot180_laneq_f32): New.
4161 (vcmla_rot270_f32): New.
4162 (vcmlaq_rot270_f32): New.
4163 (vcmla_rot270_lane_f32): New.
4164 (vcmla_rot270_laneq_f32): New.
4165 (vcmlaq_rot270_lane_f32): New.
4166 (vcmlaq_rot270_laneq_f32): New.
4167 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
4168 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180, vcmla_lane270,
4169 vcmla_laneq0, vcmla_laneq90, vcmla_laneq180, vcmla_laneq270,
4170 vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180, vcmlaq_lane270): New.
4171 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
4172 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
4173 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
4174 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
4175 (arm_option_reconfigure_globals): Use them.
4176 * config/arm/iterators.md (VDF, VQ_HSF): New.
4177 (VCADD, VCMLA): New.
4178 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
4179 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>): New.
4180 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
4181 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
4183 2019-01-10 Tamar Christina <tamar.christina@arm.com>
4185 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add qualifier_lane_pair_index.
4186 (emit-rtl.h): Include.
4187 (TYPES_QUADOP_LANE_PAIR): New.
4188 (aarch64_simd_expand_args): Use it.
4189 (aarch64_simd_expand_builtin): Likewise.
4190 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum): New.
4191 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
4192 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
4193 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
4194 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
4195 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
4196 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
4197 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
4198 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
4199 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
4200 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
4201 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add __ARM_FEATURE_COMPLEX.
4202 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0, fcmla90,
4203 fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180, fcmla_lane270,
4204 fcmla_laneq0, fcmla_laneq90, fcmla_laneq180, fcmla_laneq270,
4205 fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180, fcmlaq_lane270): New.
4206 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
4207 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,aarch64_fcadd<rot><mode>,
4208 aarch64_fcmla<rot><mode>): New.
4209 * config/aarch64/arm_neon.h:
4210 (vcadd_rot90_f16): New.
4211 (vcaddq_rot90_f16): New.
4212 (vcadd_rot270_f16): New.
4213 (vcaddq_rot270_f16): New.
4216 (vcmla_lane_f16): New.
4217 (vcmla_laneq_f16): New.
4218 (vcmlaq_lane_f16): New.
4219 (vcmlaq_rot90_lane_f16): New.
4220 (vcmla_rot90_laneq_f16): New.
4221 (vcmla_rot90_lane_f16): New.
4222 (vcmlaq_rot90_f16): New.
4223 (vcmla_rot90_f16): New.
4224 (vcmlaq_laneq_f16): New.
4225 (vcmla_rot180_laneq_f16): New.
4226 (vcmla_rot180_lane_f16): New.
4227 (vcmlaq_rot180_f16): New.
4228 (vcmla_rot180_f16): New.
4229 (vcmlaq_rot90_laneq_f16): New.
4230 (vcmlaq_rot270_laneq_f16): New.
4231 (vcmlaq_rot270_lane_f16): New.
4232 (vcmla_rot270_laneq_f16): New.
4233 (vcmlaq_rot270_f16): New.
4234 (vcmla_rot270_f16): New.
4235 (vcmlaq_rot180_laneq_f16): New.
4236 (vcmlaq_rot180_lane_f16): New.
4237 (vcmla_rot270_lane_f16): New.
4238 (vcadd_rot90_f32): New.
4239 (vcaddq_rot90_f32): New.
4240 (vcaddq_rot90_f64): New.
4241 (vcadd_rot270_f32): New.
4242 (vcaddq_rot270_f32): New.
4243 (vcaddq_rot270_f64): New.
4247 (vcmla_lane_f32): New.
4248 (vcmla_laneq_f32): New.
4249 (vcmlaq_lane_f32): New.
4250 (vcmlaq_laneq_f32): New.
4251 (vcmla_rot90_f32): New.
4252 (vcmlaq_rot90_f32): New.
4253 (vcmlaq_rot90_f64): New.
4254 (vcmla_rot90_lane_f32): New.
4255 (vcmla_rot90_laneq_f32): New.
4256 (vcmlaq_rot90_lane_f32): New.
4257 (vcmlaq_rot90_laneq_f32): New.
4258 (vcmla_rot180_f32): New.
4259 (vcmlaq_rot180_f32): New.
4260 (vcmlaq_rot180_f64): New.
4261 (vcmla_rot180_lane_f32): New.
4262 (vcmla_rot180_laneq_f32): New.
4263 (vcmlaq_rot180_lane_f32): New.
4264 (vcmlaq_rot180_laneq_f32): New.
4265 (vcmla_rot270_f32): New.
4266 (vcmlaq_rot270_f32): New.
4267 (vcmlaq_rot270_f64): New.
4268 (vcmla_rot270_lane_f32): New.
4269 (vcmla_rot270_laneq_f32): New.
4270 (vcmlaq_rot270_lane_f32): New.
4271 (vcmlaq_rot270_laneq_f32): New.
4272 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
4273 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
4274 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
4275 (FCADD, FCMLA): New.
4277 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
4279 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
4283 * config/pa/pa.c: Change "can not" to "cannot".
4284 * gimple-ssa-evrp-analyze.c: Likewise.
4285 * ipa-icf.c: Likewise.
4286 * ipa-polymorphic-call.c: Likewise.
4287 * ipa-pure-const.c: Likewise.
4288 * lra-constraints.c: Likewise.
4289 * lra-remat.c: Likewise.
4290 * reload1.c: Likewise.
4291 * reorg.c: Likewise.
4292 * tree-ssa-uninit.c: Likewise.
4294 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
4298 * Makefile.in: Mechanically replace "can not" with "cannot".
4299 * alias.c: Likewise.
4300 * builtins.c: Likewise.
4301 * calls.c: Likewise.
4302 * cgraph.c: Likewise.
4303 * cgraph.h: Likewise.
4304 * cgraphclones.c: Likewise.
4305 * cgraphunit.c: Likewise.
4306 * combine-stack-adj.c: Likewise.
4307 * combine.c: Likewise.
4308 * common/config/i386/i386-common.c: Likewise.
4309 * config/aarch64/aarch64.c: Likewise.
4310 * config/alpha/sync.md: Likewise.
4311 * config/arc/arc.c: Likewise.
4312 * config/arc/predicates.md: Likewise.
4313 * config/arm/arm-c.c: Likewise.
4314 * config/arm/arm.c: Likewise.
4315 * config/arm/arm.h: Likewise.
4316 * config/arm/arm.md: Likewise.
4317 * config/arm/cortex-r4f.md: Likewise.
4318 * config/csky/csky.c: Likewise.
4319 * config/csky/csky.h: Likewise.
4320 * config/darwin-f.c: Likewise.
4321 * config/epiphany/epiphany.md: Likewise.
4322 * config/i386/i386.c: Likewise.
4323 * config/i386/sol2.h: Likewise.
4324 * config/m68k/m68k.c: Likewise.
4325 * config/mcore/mcore.h: Likewise.
4326 * config/microblaze/microblaze.md: Likewise.
4327 * config/mips/20kc.md: Likewise.
4328 * config/mips/sb1.md: Likewise.
4329 * config/nds32/nds32.c: Likewise.
4330 * config/nds32/predicates.md: Likewise.
4331 * config/pa/pa.c: Likewise.
4332 * config/rs6000/e300c2c3.md: Likewise.
4333 * config/rs6000/rs6000.c: Likewise.
4334 * config/s390/s390.h: Likewise.
4335 * config/sh/sh.c: Likewise.
4336 * config/sh/sh.md: Likewise.
4337 * config/spu/vmx2spu.h: Likewise.
4338 * cprop.c: Likewise.
4339 * dbxout.c: Likewise.
4340 * df-scan.c: Likewise.
4341 * doc/cfg.texi: Likewise.
4342 * doc/extend.texi: Likewise.
4343 * doc/fragments.texi: Likewise.
4344 * doc/gty.texi: Likewise.
4345 * doc/invoke.texi: Likewise.
4346 * doc/lto.texi: Likewise.
4347 * doc/md.texi: Likewise.
4348 * doc/objc.texi: Likewise.
4349 * doc/rtl.texi: Likewise.
4350 * doc/tm.texi: Likewise.
4352 * emit-rtl.c: Likewise.
4353 * emit-rtl.h: Likewise.
4354 * except.c: Likewise.
4355 * expmed.c: Likewise.
4357 * fold-const.c: Likewise.
4358 * genautomata.c: Likewise.
4359 * gimple-fold.c: Likewise.
4360 * hard-reg-set.h: Likewise.
4361 * ifcvt.c: Likewise.
4362 * ipa-comdats.c: Likewise.
4363 * ipa-cp.c: Likewise.
4364 * ipa-devirt.c: Likewise.
4365 * ipa-fnsummary.c: Likewise.
4366 * ipa-icf.c: Likewise.
4367 * ipa-inline-transform.c: Likewise.
4368 * ipa-inline.c: Likewise.
4369 * ipa-polymorphic-call.c: Likewise.
4370 * ipa-profile.c: Likewise.
4371 * ipa-prop.c: Likewise.
4372 * ipa-pure-const.c: Likewise.
4373 * ipa-reference.c: Likewise.
4374 * ipa-split.c: Likewise.
4375 * ipa-visibility.c: Likewise.
4377 * ira-build.c: Likewise.
4378 * ira-color.c: Likewise.
4379 * ira-conflicts.c: Likewise.
4380 * ira-costs.c: Likewise.
4381 * ira-int.h: Likewise.
4382 * ira-lives.c: Likewise.
4385 * loop-invariant.c: Likewise.
4386 * loop-unroll.c: Likewise.
4387 * lower-subreg.c: Likewise.
4388 * lra-assigns.c: Likewise.
4389 * lra-constraints.c: Likewise.
4390 * lra-eliminations.c: Likewise.
4391 * lra-lives.c: Likewise.
4392 * lra-remat.c: Likewise.
4393 * lra-spills.c: Likewise.
4395 * lto-cgraph.c: Likewise.
4396 * lto-streamer-out.c: Likewise.
4397 * postreload-gcse.c: Likewise.
4398 * predict.c: Likewise.
4399 * profile-count.h: Likewise.
4400 * profile.c: Likewise.
4401 * recog.c: Likewise.
4403 * reload.c: Likewise.
4404 * reload1.c: Likewise.
4405 * reorg.c: Likewise.
4406 * resource.c: Likewise.
4407 * rtl.def: Likewise.
4409 * rtlanal.c: Likewise.
4410 * sched-deps.c: Likewise.
4411 * sched-ebb.c: Likewise.
4412 * sched-rgn.c: Likewise.
4413 * sel-sched-ir.c: Likewise.
4414 * sel-sched.c: Likewise.
4415 * shrink-wrap.c: Likewise.
4416 * simplify-rtx.c: Likewise.
4417 * symtab.c: Likewise.
4418 * target.def: Likewise.
4419 * toplev.c: Likewise.
4420 * tree-call-cdce.c: Likewise.
4421 * tree-cfg.c: Likewise.
4422 * tree-complex.c: Likewise.
4423 * tree-core.h: Likewise.
4424 * tree-eh.c: Likewise.
4425 * tree-inline.c: Likewise.
4426 * tree-loop-distribution.c: Likewise.
4427 * tree-nrv.c: Likewise.
4428 * tree-profile.c: Likewise.
4429 * tree-sra.c: Likewise.
4430 * tree-ssa-alias.c: Likewise.
4431 * tree-ssa-dce.c: Likewise.
4432 * tree-ssa-dom.c: Likewise.
4433 * tree-ssa-forwprop.c: Likewise.
4434 * tree-ssa-loop-im.c: Likewise.
4435 * tree-ssa-loop-ivcanon.c: Likewise.
4436 * tree-ssa-loop-ivopts.c: Likewise.
4437 * tree-ssa-loop-niter.c: Likewise.
4438 * tree-ssa-phionlycprop.c: Likewise.
4439 * tree-ssa-phiopt.c: Likewise.
4440 * tree-ssa-propagate.c: Likewise.
4441 * tree-ssa-threadedge.c: Likewise.
4442 * tree-ssa-threadupdate.c: Likewise.
4443 * tree-ssa-uninit.c: Likewise.
4444 * tree-ssanames.c: Likewise.
4445 * tree-streamer-out.c: Likewise.
4448 * vr-values.c: Likewise.
4450 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
4452 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
4453 (ix86_split_xorsign): Ditto.
4454 * config/i386/i386.c (ix86_expand_xorsign): New function.
4455 (ix86_split_xorsign): Ditto.
4456 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
4457 (xorsign<mode>3): New expander.
4458 (xorsign<mode>3_1): New insn_and_split pattern.
4459 * config/i386/sse.md (xorsign<mode>3): New expander.
4461 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
4463 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
4464 (*tablejump_sp64): Likewise.
4465 (*tablejump<P:mode>): ...this.
4466 (*call_address_sp32): Merge into...
4467 (*call_address_sp64): Likewise.
4468 (*call_address<P:mode>): ...this.
4469 (*call_symbolic_sp32): Merge into...
4470 (*call_symbolic_sp64): Likewise.
4471 (*call_symbolic<P:mode>): ...this.
4472 (call_value): Remove constraint and add predicate.
4473 (*call_value_address_sp32): Merge into...
4474 (*call_value_address_sp64): Likewise.
4475 (*call_value_address<P:mode>): ...this.
4476 (*call_value_symbolic_sp32): Merge into...
4477 (*call_value_symbolic_sp64): Likewise.
4478 (*call_value_symbolic<P:mode>): ...this.
4479 (*sibcall_symbolic_sp32): Merge into...
4480 (*sibcall_symbolic_sp64): Likewise.
4481 (*sibcall_symbolic<P:mode>): ...this.
4482 (sibcall_value): Remove constraint and add predicate.
4483 (*sibcall_value_symbolic_sp32): Merge into...
4484 (*sibcall_value_symbolic_sp64): Likewise.
4485 (*sibcall_value_symbolic<P:mode>): ...this.
4486 (window_save): Minor tweak.
4487 (*branch_sp32): Merge into...
4488 (*branch_sp64): Likewise.
4489 (*branch<P:mode>): ...this.
4491 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
4492 James Clarke <jrtc27@jrtc27.com>
4495 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
4496 consistently in TLS address generation and adjust code to the renaming
4497 of patterns. Mark calls to __tls_get_addr as const.
4498 * config/sparc/sparc.md (tgd_hi22): Turn into...
4499 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
4500 (tgd_lo10): Turn into...
4501 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
4502 (tgd_add32): Merge into...
4503 (tgd_add64): Likewise.
4504 (tgd_add<P:mode>): ...this and use Pmode throughout.
4505 (tldm_hi22): Turn into...
4506 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
4507 (tldm_lo10): Turn into...
4508 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
4509 (tldm_add32): Merge into...
4510 (tldm_add64): Likewise.
4511 (tldm_add<P:mode>): ...this and use Pmode throughout.
4512 (tldm_call32): Merge into...
4513 (tldm_call64): Likewise.
4514 (tldm_call<P:mode>): ...this and use Pmode throughout.
4515 (tldo_hix22): Turn into...
4516 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
4517 (tldo_lox10): Turn into...
4518 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
4519 (tldo_add32): Merge into...
4520 (tldo_add64): Likewise.
4521 (tldo_add<P:mode>): ...this and use Pmode throughout.
4522 (tie_hi22): Turn into...
4523 (tie_hi22<P:mode>): ...this and use Pmode throughout.
4524 (tie_lo10): Turn into...
4525 (tie_lo10<P:mode>): ...this and use Pmode throughout.
4526 (tie_ld64): Use DImode throughout.
4527 (tie_add32): Merge into...
4528 (tie_add64): Likewise.
4529 (tie_add<P:mode>): ...this and use Pmode throughout.
4530 (tle_hix22_sp32): Merge into...
4531 (tle_hix22_sp64): Likewise.
4532 (tle_hix22<P:mode>): ...this and use Pmode throughout.
4533 (tle_lox22_sp32): Merge into...
4534 (tle_lox22_sp64): Likewise.
4535 (tle_lox22<P:mode>): ...this and use Pmode throughout.
4536 (*tldo_ldub_sp32): Merge into...
4537 (*tldo_ldub_sp64): Likewise.
4538 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
4539 (*tldo_ldub1_sp32): Merge into...
4540 (*tldo_ldub1_sp64): Likewise.
4541 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
4542 (*tldo_ldub2_sp32): Merge into...
4543 (*tldo_ldub2_sp64): Likewise.
4544 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
4545 (*tldo_ldsb1_sp32): Merge into...
4546 (*tldo_ldsb1_sp64): Likewise.
4547 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
4548 (*tldo_ldsb2_sp32): Merge into...
4549 (*tldo_ldsb2_sp64): Likewise.
4550 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
4551 (*tldo_ldub3_sp64): Use DImode throughout.
4552 (*tldo_ldsb3_sp64): Likewise.
4553 (*tldo_lduh_sp32): Merge into...
4554 (*tldo_lduh_sp64): Likewise.
4555 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
4556 (*tldo_lduh1_sp32): Merge into...
4557 (*tldo_lduh1_sp64): Likewise.
4558 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
4559 (*tldo_ldsh1_sp32): Merge into...
4560 (*tldo_ldsh1_sp64): Likewise.
4561 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
4562 (*tldo_lduh2_sp64): Use DImode throughout.
4563 (*tldo_ldsh2_sp64): Likewise.
4564 (*tldo_lduw_sp32): Merge into...
4565 (*tldo_lduw_sp64): Likewise.
4566 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
4567 (*tldo_lduw1_sp64): Use DImode throughout.
4568 (*tldo_ldsw1_sp64): Likewise.
4569 (*tldo_ldx_sp64): Likewise.
4570 (*tldo_stb_sp32): Merge into...
4571 (*tldo_stb_sp64): Likewise.
4572 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
4573 (*tldo_sth_sp32): Merge into...
4574 (*tldo_sth_sp64): Likewise.
4575 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
4576 (*tldo_stw_sp32): Merge into...
4577 (*tldo_stw_sp64): Likewise.
4578 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
4579 (*tldo_stx_sp64): Use DImode throughout.
4581 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4583 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
4584 check configure option to set BTI and Return Address Signing.
4585 * configure.ac: Add --enable-standard-branch-protection and
4586 --disable-standard-branch-protection.
4587 * configure: Regenerated.
4588 * doc/install.texi: Document the same.
4590 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4591 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4593 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
4594 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
4595 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
4597 * config/aarch64/aarch64-bti-insert.c: New file.
4598 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
4600 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
4602 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
4603 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
4604 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
4605 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
4607 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4609 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
4610 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
4611 Disable bti for -mbranch-protection=none.
4612 (aarch64_handle_standard_branch_protection): Enable bti for
4613 -mbranch-protection=standard.
4614 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
4615 -mbranch-protection.
4616 (aarch64_bti_enabled): Check if bti is enabled.
4617 * config/aarch64/aarch64.opt: Declare target variable.
4618 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
4620 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4622 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
4623 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
4624 (aarch64_expand_epilogue): Likewise.
4625 (aarch64_output_mi_thunk): Likewise
4626 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
4627 TAILCALL_ADDR_REGS to x16 and x17.
4628 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
4630 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4632 * config/aarch64/aarch64-option-extensions.def: Define
4633 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
4634 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
4635 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
4636 (AARCH64_FL_PREDRES): New.
4637 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
4638 AARCH64_FL_PREDRES by default.
4639 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
4641 2018-01-09 Sudakshina Das <sudi.das@arm.com>
4643 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
4645 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
4646 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
4647 * doc/invoke.texi: Document ARMv8.5-A.
4649 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
4651 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
4652 (xorsign<mode>3): Likewise.
4654 2019-01-09 Jelinek <jakub@redhat.com>
4657 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
4658 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
4660 PR rtl-optimization/88331
4661 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
4662 not currently_expanding_to_rtl.
4664 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
4666 * doc/invoke.texi (-Os): Remove trailing spaces.
4667 (-finline-functions): Remove reference to -O2.
4669 2019-01-08 Jakub Jelinek <jakub@redhat.com>
4671 PR rtl-optimization/79593
4672 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
4674 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
4675 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
4677 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
4680 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
4684 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
4685 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
4687 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
4690 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
4691 ix86_avx_u128_mode_entry.
4693 2019-01-08 Martin Liska <mliska@suse.cz>
4695 PR tree-optimization/88753
4696 * tree-switch-conversion.c (switch_conversion::build_one_array):
4697 Come up with local variable constructor. Convert first to
4698 type of constructor values.
4700 2019-01-08 Richard Biener <rguenther@suse.de>
4702 PR tree-optimization/86554
4703 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
4704 rpo_avail): Move earlier.
4705 (visit_nary_op): When value-numbering to expressions
4706 with different overflow behavior make sure there's an
4707 available expression on the path.
4709 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
4711 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
4712 aarch64_parse_branch_protection,
4713 struct aarch64_branch_protect_type,
4714 aarch64_handle_no_branch_protection,
4715 aarch64_handle_standard_branch_protection,
4716 aarch64_validate_mbranch_protection,
4717 aarch64_handle_pac_ret_protection,
4718 aarch64_handle_attr_branch_protection,
4719 accepted_branch_protection_string,
4720 aarch64_pac_ret_subtypes,
4721 aarch64_branch_protect_types,
4722 aarch64_handle_pac_ret_leaf): Define.
4723 (aarch64_override_options_after_change_1, aarch64_override_options):
4724 Add check for accepted_branch_protection_string.
4725 (aarch64_option_save): Save accepted_branch_protection_string.
4726 (aarch64_option_restore): Save accepted_branch_protection_string.
4727 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
4728 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
4729 msign-return-address.
4730 * doc/invoke.texi: Add mbranch-protection.
4732 2019-01-08 Alan Modra <amodra@gmail.com>
4735 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
4736 Delete "unknownp" parameter. Adjust callers. Handle
4737 CONST_INT, PLUS, MINUS, and MULT.
4738 (attr_value_aligned): Renamed from or_attr_value.
4739 (min_attr_value): Return INT_MIN for unhandled rtl case..
4740 (min_fn): ..and translate to INT_MAX here.
4741 (write_length_unit_log): Modify to cope without "unknown".
4742 (write_attr_value): Handle IF_THEN_ELSE.
4744 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4746 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
4747 optimization for masked stores.
4749 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4752 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
4753 output vector directly to duplicate_and_interleave instead of
4754 going through a temporary. Postpone insertion of ctor_seq to
4755 the end of the loop.
4757 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
4760 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
4761 unsigned_p. Handle signed and unsigned overflow correction as
4763 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
4765 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
4767 (add<mode>3_compareV_imm): Make this callable for expanding.
4768 (subv<GPI:mode>4): Use register_operand for operand 1. Use
4769 aarch64_plus_operand for operand 2.
4770 (subv<GPI:mode>_insn): New insn pattern.
4771 (subv<GPI:mode>_imm): Likewise.
4772 (negv<GPI:mode>3): New expand pattern.
4773 (negv<GPI:mode>_insn): New insn pattern.
4774 (negv<GPI:mode>_cmp_only): Likewise.
4775 (cmpv<GPI:mode>_insn): Likewise.
4776 (subvti4): Use register_operand for operand 1. Update call to
4777 aarch64_expand_subvti.
4778 (usubvti4): Likewise.
4779 (negvti3): New expand pattern.
4780 (negdi_carryout): New insn pattern.
4781 (negvdi_carryinV): New insn pattern.
4782 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
4783 version the named version.
4784 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
4786 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
4788 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
4790 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
4791 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
4792 (sub<mode>3_carryinCV): Delete.
4793 (sub<GPI:mode>3_carryinV): New expand pattern.
4794 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
4796 2019-01-07 Richard Biener <rguenther@suse.de>
4798 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
4799 of tree_operand_hash.
4801 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4803 PR tree-optimization/88598
4804 * tree.h (single_nonzero_element): Declare.
4805 * tree.c (single_nonzero_element): New function.
4806 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
4807 if I is the only nonzero element of CST.
4809 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
4811 PR tree-optimization/88598
4812 * tree.h (initializer_each_zero_or_onep): Declare.
4813 * tree.c (initializer_each_zero_or_onep): New function.
4814 (signed_or_unsigned_type_for): Handle float types too.
4815 (unsigned_type_for, signed_type_for): Update comments accordingly.
4816 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
4817 x & { 0 or -1, 0 or -1, ... }.
4819 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
4821 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
4822 with x86_64-pc-linux-gnu.
4824 2019-01-07 Tom de Vries <tdevries@suse.de>
4827 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
4829 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
4832 2019-01-07 Jakub Jelinek <jakub@redhat.com>
4834 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
4835 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
4836 TARGET_AVX512F as condition.
4839 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
4840 const_not_ok_for_debug_p target hook.
4841 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
4842 on UNSPEC and subexpressions thereof if all subexpressions of the
4843 UNSPEC are CONSTANT_P.
4845 PR tree-optimization/88676
4846 * tree-ssa-phiopt.c (two_value_replacement): New function.
4847 (tree_ssa_phiopt_worker): Call it.
4850 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
4851 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
4854 * tree-vect-generic.c: Include insn-config.h and recog.h.
4855 (expand_vector_piecewise): Add defaulted ret_type argument,
4856 if non-NULL, use that in preference to type for the result type.
4857 (expand_vector_parallel): Formatting fix.
4858 (do_vec_conversion, do_vec_narrowing_conversion,
4859 expand_vector_conversion): New functions.
4860 (expand_vector_operations_1): Call expand_vector_conversion
4861 for VEC_CONVERT ifn calls.
4862 * internal-fn.def (VEC_CONVERT): New internal function.
4863 * internal-fn.c (expand_VEC_CONVERT): New function.
4864 * fold-const-call.c (fold_const_vec_convert): New function.
4865 (fold_const_call): Use it for CFN_VEC_CONVERT.
4866 * doc/extend.texi (__builtin_convertvector): Document.
4868 2019-01-07 Tom de Vries <tdevries@suse.de>
4870 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
4871 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
4872 vector_red_partition, vector_red_sym): New global variables.
4873 (nvptx_option_override): Initialize vector_red_sym.
4874 (nvptx_declare_function_name): Restore red_partition register.
4875 (nvptx_file_end): Emit code to declare the vector reduction variables.
4876 (nvptx_output_red_partition): New function.
4877 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
4878 large vector reductions.
4879 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
4880 (nvptx_init_builtins): Add VECTOR_ADDR.
4881 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
4882 Handle nvptx_expand_shared_addr.
4883 (nvptx_get_shared_red_addr): Add vector argument and handle large
4885 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
4887 (nvptx_goacc_reduction_init): Likewise.
4888 (nvptx_goacc_reduction_fini): Likewise.
4889 (nvptx_goacc_reduction_teardown): Likewise.
4890 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
4891 init,fini,teardown}.
4892 (nvptx_init_axis_predicate): Initialize vector_red_partition.
4893 (nvptx_set_current_function): Init vector_red_partition.
4894 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
4895 (nvptx_red_partition): New insn.
4896 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
4898 2019-01-07 Tom de Vries <tdevries@suse.de>
4901 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
4904 2019-01-07 Tom de Vries <tdevries@suse.de>
4906 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
4907 (nvptx_option_override): Init oacc_bcast_partition.
4908 (nvptx_init_oacc_workers): New function.
4909 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
4910 (nvptx_needs_shared_bcast): New function.
4911 (nvptx_find_par): Generalize to enable vectors to use shared-memory
4913 (nvptx_shared_propagate): Initialize vector bcast partition and
4914 synchronization state.
4915 (nvptx_single): Generalize to enable vectors to use shared-memory
4917 (nvptx_process_pars): Likewise.
4918 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
4919 * config/nvptx/nvptx.h (struct machine_function): Add
4920 bcast_partition and sync_bar members.
4922 2019-01-07 Tom de Vries <tdevries@suse.de>
4924 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
4925 (nvptx_apply_dim_limits): New function.
4926 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
4929 2019-01-07 Tom de Vries <tdevries@suse.de>
4931 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
4932 as late as possible.
4934 2019-01-07 Tom de Vries <tdevries@suse.de>
4936 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
4937 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
4938 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
4939 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
4940 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
4942 2019-01-07 Tom de Vries <tdevries@suse.de>
4944 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
4946 2019-01-07 Tom de Vries <tdevries@suse.de>
4948 * omp-offload.c (oacc_get_min_dim): New function.
4949 * omp-offload.h (oacc_get_min_dim): Declare.
4951 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
4954 * config/i386/i386.c (function_value_ms_64): Return small sturct in
4955 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
4957 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4961 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
4963 * ipa-inline.c (edge_badness): Use inlined_time instead of
4964 inline_summaries->get.
4966 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4968 * opts.c (enable_fdo_optimizations): Enable
4969 version-loops-for-strides, loop-interchange, unrol-and-jam
4970 and tree-loop-distribution.
4971 * invoke.texi: Document newly enabled options.
4973 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4975 * doc/invoke.texi (max-inline-insns-small): New parameters.
4976 * ipa-inline.c (want_early_inline_function_p): simplify.
4977 (want_inline_small_function_p): Fix pasto from previous patch;
4978 use max-inline-insns-small bound.
4979 * params.def (max-inline-insns-small): New param.
4980 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
4981 variables correctly.
4983 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4985 * doc/invoke.texi: Document max-inline-insns-size,
4986 uninlined-function-insns, uninlined-function-time,
4987 uninlined-thunk-insns and uninlined-thunk-time.
4988 * params.def: Add max-inline-insns-size,
4989 uninlined-function-insns, uninlined-function-time,
4990 uninlined-thunk-insns and uninlined-thunk-time.
4991 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
4993 * ipa-inline.c (can_inline_edge_by_limits_p,
4994 want_inline_small_function_p): Use new parameters.
4996 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
4998 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
5000 2019-01-05 Jakub Jelinek <jakub@redhat.com>
5004 * expr.c (expand_assignment): For calls returning VLA structures
5005 if to_rtx is not a MEM, force it into a stack temporary.
5008 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
5009 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
5010 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
5011 subexpressions of both operands.
5012 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
5013 subrtxes are CONSTANT_P.
5014 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
5017 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
5019 * params.def (hot-bb-count-ws-permille): Set to 990.
5021 2019-01-04 Martin Sebor <msebor@redhat.com>
5024 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
5027 2019-01-04 Martin Sebor <msebor@redhat.com>
5030 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
5032 2019-01-04 Jakub Jelinek <jakub@redhat.com>
5034 * gdbinit.in: Turn off pagination for the skip commands, restore
5035 it to previous state afterwards.
5037 2019-01-04 Jakub Jelinek <jakub@redhat.com>
5040 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
5041 of GET_MODE (opN) as modes of the libcall arguments.
5043 2019-01-04 Jan Beulich <jbeulich@suse.com>
5045 * config/i386/sse.md
5046 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
5047 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
5048 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
5049 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
5050 avx512f_vmcmp<mode>3<round_saeonly_name>,
5051 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
5052 avx512f_maskcmp<mode>3,
5053 <avx512>_cvt<ssemodesuffix>2mask<mode>,
5054 <avx512>_cvt<ssemodesuffix>2mask<mode>,
5055 *<avx512>_cvtmask2<ssemodesuffix><mode>,
5056 *<avx512>_cvtmask2<ssemodesuffix><mode>,
5057 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
5058 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
5059 <avx512>_gt<mode>3<mask_scalar_merge_name>,
5060 <avx512>_gt<mode>3<mask_scalar_merge_name>,
5061 <avx512>_testm<mode>3<mask_scalar_merge_name>,
5062 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
5063 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
5064 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
5065 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
5066 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
5067 avx512cd_maskb_vec_dup<mode>,
5068 avx512cd_maskw_vec_dup<mode>,
5069 avx512dq_fpclass<mode><mask_scalar_merge_name>,
5070 avx512dq_vmfpclass<mode>,
5071 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
5074 2019-01-03 Martin Sebor <msebor@redhat.com>
5076 PR tree-optimization/88659
5077 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
5079 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
5081 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
5082 unaligned vsx and avoid lxvd2x/stxvd2x.
5083 (gen_lvx_v4si_move): New function.
5085 2019-01-03 Tom de Vries <tdevries@suse.de>
5087 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
5088 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
5090 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
5092 2019-01-03 Tom de Vries <tdevries@suse.de>
5094 * config/nvptx/nvptx.c (struct offload_attrs): New.
5095 (populate_offload_attrs): New function. Factor mask extraction out of
5096 nvptx_reorg. Add extraction of dimensions.
5097 (nvptx_reorg): Use populate_offload_attrs.
5099 2019-01-03 Tom de Vries <tdevries@suse.de>
5101 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
5102 cases for oacc_min_dims_p and routine_p. Add asserts for
5103 oacc_default_dims_p and offload_region_p.
5105 2019-01-03 Tom de Vries <tdevries@suse.de>
5107 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
5109 (nvptx_goacc_validate_dims): ... here.
5111 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
5113 PR tree-optimization/85574
5114 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
5116 (struct ssa_equip_hash_traits): Declare.
5117 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
5119 2019-01-03 Jakub Jelinek <jakub@redhat.com>
5122 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
5123 change it to qualified_type.
5125 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
5127 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
5128 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
5130 2019-01-02 Martin Sebor <msebor@redhat.com>
5131 Jeff Law <law@redhat.com>
5133 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
5134 (get_range_strlen_tree): Update appropriately.
5136 * gimple-fold.h (get_range_strlen): Drop unused last argument.
5138 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
5139 rather than set_range_info.
5140 * tree-ssa-strlen.c (set_strlen_range): Extracted from
5141 maybe_set_strlen_range. Handle potentially boundary crossing
5142 cases more conservatively.
5143 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
5144 Call set_strlen_range.
5145 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
5148 * gimple-fold.c (get_range_strlen): Update prototype to no longer
5149 need the flexp argument.
5150 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
5151 from calls to get_range_strlen. Update comments. Just update
5152 VAL for an unterminated const char array and let the reset of the
5153 code handle it normally. No longer try to set *flexp. Adjust
5155 (get_range_strlen): Update for the new get_range_strlen API.
5156 (get_maxval_strlen): Similarly.
5157 (gimple_fold_builtin_strlen): Handle update meaning of return value
5158 from get_range_strlen.
5159 * gimple-ssa-sprintf.c (get_string_length): Update for the new
5160 get_range_strlen API.
5162 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
5165 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
5166 false at WPA time when body was removed.
5168 2019-01-02 Martin Liska <mliska@suse.cz>
5170 PR tree-optimization/88650
5171 * predict.c (set_even_probabilities): Calculate probability
5172 remainer only when really used.
5174 2019-01-02 Richard Biener <rguenther@suse.de>
5177 * tree-data-ref.c (analyze_subscript_affine_affine): Use
5178 widest_ints when mangling max_stmt_execution results.
5180 2019-01-02 Richard Biener <rguenther@suse.de>
5182 PR tree-optimization/88621
5183 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
5184 bitfields when canoncalizing.
5186 2019-01-02 Richard Biener <rguenther@suse.de>
5189 * config/i386/x86-tune-costs.h (intel_cost): Adjust
5190 cost of cheap SSE instruction.
5192 2019-01-02 Richard Biener <rguenther@suse.de>
5195 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
5196 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
5198 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
5199 set after UIDs before splitting them.
5201 2019-01-01 Martin Sebor <msebor@redhat.com>
5202 Jeff Law <law@redhat.com>
5204 * gimple-fold.c (get_range_strlen_tree): Record if the computed
5205 length is optimistic. If it is, then arrange to compute the
5206 conservative length as well.
5208 * gimple-fold.h (get_range_strlen): Update prototype.
5209 * builtins.c (check_access): Update call to get_range_strlen to use
5210 c_strlen_data pointer. Change various variable accesses to instead
5211 pull data from the c_strlen_data structure.
5212 (check_strncat_sizes, expand_builtin_strncat): Likewise.
5213 * calls.c (maybe_warn_nonstring_arg): Likewise.
5214 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
5215 minimum length if maximum lengh is unknown.
5216 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
5217 that used c_strlen, it's no longer needed. Restructure slightly.
5218 (format_string): Set unlikely range appropriately.
5219 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
5221 (get_range_strlen): Accept c_strlen_data pointer for external
5222 call sites as well. Pass through to call to internal get_range_strlen.
5223 Adjust minlen, maxlen and maxbound as needed.
5224 (get_maxval_strlen): Update comments.
5225 (gimple_fold_builtin_strlen): Update call to get_range_strlen
5226 to use c_strlen_data pointer. Change variable accesses to instead
5227 use c_strlen_data data members.
5229 * gimple-fold.c (get_range_strlen): Update prototype.
5230 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
5231 local variables. Use pdata to return information to caller.
5232 Update calls to get_range_strlen. Update pdata->maxbound.
5233 (get_range_strlen -- static version): Similarly.
5234 (get_range_strlen -- extern version): Update for internal
5235 get_range_strlen API change. Convert to external data format.
5236 (get_maxval_strlen): Similarly.
5238 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
5240 * coverage.c (get_coverage_counts): Use current_function_decl.
5241 * profile.c (read_thunk_profile): New function.
5242 (branch_prob): Add THUNK parameter.
5243 * tree-profile.c (tree_profiling): Handle thunks.
5244 * value-prof.c (init_node_map): Handle thunks.
5245 * value-prof.h (branch_prob): Upate prototype.
5246 (read_thunk_profile): Declare.
5248 2019-01-01 Jakub Jelinek <jakub@redhat.com>
5250 Update copyright years.
5252 * gcc.c (process_command): Update copyright notice dates.
5253 * gcov-dump.c (print_version): Ditto.
5254 * gcov.c (print_version): Ditto.
5255 * gcov-tool.c (print_version): Ditto.
5256 * gengtype.c (create_file): Ditto.
5257 * doc/cpp.texi: Bump @copying's copyright year.
5258 * doc/cppinternals.texi: Ditto.
5259 * doc/gcc.texi: Ditto.
5260 * doc/gccint.texi: Ditto.
5261 * doc/gcov.texi: Ditto.
5262 * doc/install.texi: Ditto.
5263 * doc/invoke.texi: Ditto.
5265 Copyright (C) 2019 Free Software Foundation, Inc.
5267 Copying and distribution of this file, with or without modification,
5268 are permitted in any medium without royalty provided the copyright
5269 notice and this notice are preserved.