https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90471

--- Comment #5 from Daniel Fruzynski <bugzi...@poradnik-webmastera.com> ---
Created attachment 46356
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46356&action=edit
Valgrind log

Here is Valgrind log. It found multiple cases when uninitialized value vas
used. However in all cases callstack for place where this uninitialized memory
come from is the same. Here is log for 1st issue:

==18990== Conditional jump or move depends on uninitialised value(s)
==18990==    at 0x86DAA7: sparseset_bit_p (sparseset.h:147)
==18990==    by 0x86DAA7: mark_pseudo_regno_live(int) (ira-lives.c:289)
==18990==    by 0x86EBC0: process_bb_node_lives(ira_loop_tree_node*)
(ira-lives.c:1254)
==18990==    by 0x8545C7: ira_traverse_loop_tree(bool, ira_loop_tree_node*,
void (*)(ira_loop_tree_node*), void (*)(ira_loop_tree_node*))
(ira-build.c:1806)
==18990==    by 0x86F751: ira_create_allocno_live_ranges() (ira-lives.c:1565)
==18990==    by 0x855DFC: ira_build() (ira-build.c:3422)
==18990==    by 0x84D7BA: ira (ira.c:5308)
==18990==    by 0x84D7BA: (anonymous namespace)::pass_ira::execute(function*)
(ira.c:5619)
==18990==    by 0x913B60: execute_one_pass(opt_pass*) (passes.c:2465)
==18990==    by 0x914307: execute_pass_list_1(opt_pass*) (passes.c:2554)
==18990==    by 0x914319: execute_pass_list_1(opt_pass*) (passes.c:2555)
==18990==    by 0x914364: execute_pass_list(function*, opt_pass*)
(passes.c:2565)
==18990==    by 0x691118: cgraph_node::expand() (cgraphunit.c:2042)
==18990==    by 0x692633: expand_all_functions (cgraphunit.c:2178)
==18990==    by 0x692633: symbol_table::compile() (cgraphunit.c:2536)
==18990==  Uninitialised value was created by a heap allocation
==18990==    at 0x4C29BC3: malloc (vg_replace_malloc.c:299)
==18990==    by 0x10EF387: xmalloc (xmalloc.c:147)
==18990==    by 0x9B9F34: sparseset_alloc(unsigned long) (sparseset.c:33)
==18990==    by 0x86F6DF: ira_create_allocno_live_ranges() (ira-lives.c:1557)
==18990==    by 0x855DFC: ira_build() (ira-build.c:3422)
==18990==    by 0x84D7BA: ira (ira.c:5308)
==18990==    by 0x84D7BA: (anonymous namespace)::pass_ira::execute(function*)
(ira.c:5619)
==18990==    by 0x913B60: execute_one_pass(opt_pass*) (passes.c:2465)
==18990==    by 0x914307: execute_pass_list_1(opt_pass*) (passes.c:2554)
==18990==    by 0x914319: execute_pass_list_1(opt_pass*) (passes.c:2555)
==18990==    by 0x914364: execute_pass_list(function*, opt_pass*)
(passes.c:2565)
==18990==    by 0x691118: cgraph_node::expand() (cgraphunit.c:2042)
==18990==    by 0x692633: expand_all_functions (cgraphunit.c:2178)
==18990==    by 0x692633: symbol_table::compile() (cgraphunit.c:2536)

Reply via email to