Command line: $ gcc -fcompare-debug testcase.c -O2 -ftracer -fsched-pressure -funroll-loops -fschedule-insns
Output with valgrind: $ valgrind -q --trace-children=yes /mnt/svn/gcc-trunk/binary-162456-lto-fortran-checking-yes-rtl-df/bin/gcc -O2 -ftracer -fsched-pressure -funroll-loops -fschedule-insns -fcompare-debug testcase.c ==25565== Conditional jump or move depends on uninitialised value(s) ==25565== at 0x70DD7B: walk_gimple_stmt (gimple.c:1629) ==25565== by 0x95A913: dump_enumerated_decls (tree-ssa-live.c:1264) ==25565== by 0x8FD118: execute_cleanup_cfg_post_optimizing (tree-optimize.c:214) ==25565== by 0x7BB16D: execute_one_pass (passes.c:1563) ==25565== by 0x7BB404: execute_pass_list (passes.c:1618) ==25565== by 0x8FDAA5: tree_rest_of_compilation (tree-optimize.c:452) ==25565== by 0xAB4C75: cgraph_expand_function (cgraphunit.c:1643) ==25565== by 0xAB7B09: cgraph_optimize (cgraphunit.c:1722) ==25565== by 0xAB80FA: cgraph_finalize_compilation_unit (cgraphunit.c:1185) ==25565== by 0x4DF3EE: c_write_global_declarations (c-decl.c:9698) ==25565== by 0x8A91F5: toplev_main (toplev.c:990) ==25565== by 0x6589BBC: (below main) (in /lib64/libc-2.11.2.so) ==25565== ==26524== Conditional jump or move depends on uninitialised value(s) ==26524== at 0x70DD7B: walk_gimple_stmt (gimple.c:1629) ==26524== by 0x95A913: dump_enumerated_decls (tree-ssa-live.c:1264) ==26524== by 0x8FD118: execute_cleanup_cfg_post_optimizing (tree-optimize.c:214) ==26524== by 0x7BB16D: execute_one_pass (passes.c:1563) ==26524== by 0x7BB404: execute_pass_list (passes.c:1618) ==26524== by 0x8FDAA5: tree_rest_of_compilation (tree-optimize.c:452) ==26524== by 0xAB4C75: cgraph_expand_function (cgraphunit.c:1643) ==26524== by 0xAB7B09: cgraph_optimize (cgraphunit.c:1722) ==26524== by 0xAB80FA: cgraph_finalize_compilation_unit (cgraphunit.c:1185) ==26524== by 0x4DF3EE: c_write_global_declarations (c-decl.c:9698) ==26524== by 0x8A91F5: toplev_main (toplev.c:990) ==26524== by 0x6589BBC: (below main) (in /lib64/libc-2.11.2.so) ==26524== gcc: error: testcase.c: -fcompare-debug failure (length) The uninitialised read is probably not related, testcase fails in older revisions, where this valgrind warning isn't present. Tested revisions: r162456 - fail r162222 - fail r159696 - fail r153685 - fail -- Summary: another -fcompare-debug failure with uninitialised read in walk_gimple_stmt Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zsojka at seznam dot cz GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45055