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

            Bug ID: 83321
           Summary: Conditional jump or move depends on uninitialised
                    value in ira.c/ira-color.c
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org
                CC: vmakarov at gcc dot gnu.org
  Target Milestone: ---

Building gcc with -O3:

 % ../gcc/configure --disable-libstdcxx-pch --disable-libvtv --disable-cet
--disable-libitm --disable-libcilkrts --disable-libssp --disable-libgomp
--disable-werror --disable-multilib --enable-languages=c,c++,fortran
--disable-cet --enable-checking=valgrind --enable-valgrind-annotations
--with-build-config="bootstrap-O3"

 % make -j8 BOOT_CFLAGS="-march=native -g -O3 -pipe"
STAGE1_CFLAGS="-march=native -g -O3 -pipe" CFLAGS_FOR_TARGET="-march=native -g
-O3 -pipe" CXXFLAGS_FOR_TARGET="-march=native -g -O3 -pipe" bootstrap 2>&1 |
tee out

Shows:

==938== Conditional jump or move depends on uninitialised value(s)
==938==    at 0x98E10F: improve_allocation() (ira-color.c:2820)
==938==    by 0x9931FE: color_allocnos (ira-color.c:3150)
==938==    by 0x9931FE: color_pass(ira_loop_tree_node*) (ira-color.c:3259)
==938==    by 0x973356: ira_traverse_loop_tree(bool, ira_loop_tree_node*, void
(*)(ira_loop_tree_node*), void (*)(ira_loop_tree_node*)) (ira-build.c:1781)
==938==    by 0x98B67B: do_coloring (ira-color.c:3410)
==938==    by 0x98B67B: color (ira-color.c:4784)
==938==    by 0x98B67B: ira_color() (ira-color.c:4899)
==938==    by 0x96E19D: ira (ira.c:5286)
==938==    by 0x96E19D: (anonymous namespace)::pass_ira::execute(function*)
(ira.c:5584)
==938==    by 0xA6DBE4: execute_one_pass(opt_pass*) (passes.c:2497)
==938==    by 0xA6EF6C: execute_pass_list_1 (passes.c:2586)
==938==    by 0xA6EF6C: execute_pass_list_1 (passes.c:2587)
==938==    by 0xA6EF6C: execute_pass_list(function*, opt_pass*) (passes.c:2597)
==938==    by 0x723651: cgraph_node::expand() (cgraphunit.c:2139)
==938==    by 0x724AEF: expand_all_functions (cgraphunit.c:2275)
==938==    by 0x724AEF: symbol_table::compile() [clone .part.55]
(cgraphunit.c:2623)
==938==    by 0x726E3E: compile (cgraphunit.c:2719)
==938==    by 0x726E3E: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2716)
==938==    by 0xB7E6AA: compile_file() (toplev.c:480)
==938==    by 0x5B1787: do_compile (toplev.c:2059)
==938==    by 0x5B1787: toplev::main(int, char**) (toplev.c:2194)
==938==
==938== Conditional jump or move depends on uninitialised value(s)
==938==    at 0x98B7FB: move_spill_restore (ira-color.c:3448)
==938==    by 0x98B7FB: color (ira-color.c:4787)
==938==    by 0x98B7FB: ira_color() (ira-color.c:4899)
==938==    by 0x96E19D: ira (ira.c:5286)
==938==    by 0x96E19D: (anonymous namespace)::pass_ira::execute(function*)
(ira.c:5584)
==938==    by 0xA6DBE4: execute_one_pass(opt_pass*) (passes.c:2497)
==938==    by 0xA6EF6C: execute_pass_list_1 (passes.c:2586)
==938==    by 0xA6EF6C: execute_pass_list_1 (passes.c:2587)
==938==    by 0xA6EF6C: execute_pass_list(function*, opt_pass*) (passes.c:2597)
==938==    by 0x723651: cgraph_node::expand() (cgraphunit.c:2139)
==938==    by 0x724AEF: expand_all_functions (cgraphunit.c:2275)
==938==    by 0x724AEF: symbol_table::compile() [clone .part.55]
(cgraphunit.c:2623)
==938==    by 0x726E3E: compile (cgraphunit.c:2719)
==938==    by 0x726E3E: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2716)
==938==    by 0xB7E6AA: compile_file() (toplev.c:480)
==938==    by 0x5B1787: do_compile (toplev.c:2059)
==938==    by 0x5B1787: toplev::main(int, char**) (toplev.c:2194)
==938==    by 0x5B344A: main (main.c:39)
==938==
==938== Conditional jump or move depends on uninitialised value(s)
==938==    at 0x96E52D: calculate_allocation_cost (ira.c:2454)
==938==    by 0x96E52D: ira (ira.c:5355)
==938==    by 0x96E52D: (anonymous namespace)::pass_ira::execute(function*)
(ira.c:5584)
==938==    by 0xA6DBE4: execute_one_pass(opt_pass*) (passes.c:2497)
==938==    by 0xA6EF6C: execute_pass_list_1 (passes.c:2586)
==938==    by 0xA6EF6C: execute_pass_list_1 (passes.c:2587)
==938==    by 0xA6EF6C: execute_pass_list(function*, opt_pass*) (passes.c:2597)
==938==    by 0x723651: cgraph_node::expand() (cgraphunit.c:2139)
==938==    by 0x724AEF: expand_all_functions (cgraphunit.c:2275)
==938==    by 0x724AEF: symbol_table::compile() [clone .part.55]
(cgraphunit.c:2623)
==938==    by 0x726E3E: compile (cgraphunit.c:2719)
==938==    by 0x726E3E: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2716)
==938==    by 0xB7E6AA: compile_file() (toplev.c:480)
==938==    by 0x5B1787: do_compile (toplev.c:2059)
==938==    by 0x5B1787: toplev::main(int, char**) (toplev.c:2194)
==938==    by 0x5B344A: main (main.c:39)
==938==

Reply via email to