Command line: $ gcc -Os -fsched-spec-load -fschedule-insns -fcompare-debug testcase.c
Valgrind output: $ valgrind --trace-children=yes --track-origins=yes -q /mnt/svn/gcc-trunk/binary-162653-lto-fortran-checking-yes-rtl-df/bin/gcc -Os -fsched-spec-load -fschedule-insns -fcompare-debug testcase.c ==14681== Conditional jump or move depends on uninitialised value(s) ==14681== at 0x70F09B: walk_gimple_stmt (gimple.c:1627) ==14681== by 0x95F153: dump_enumerated_decls (tree-ssa-live.c:1264) ==14681== by 0x901718: execute_cleanup_cfg_post_optimizing (tree-optimize.c:214) ==14681== by 0x7BD3EB: execute_one_pass (passes.c:1564) ==14681== by 0x7BD684: execute_pass_list (passes.c:1619) ==14681== by 0x9020A5: tree_rest_of_compilation (tree-optimize.c:452) ==14681== by 0xAB96E5: cgraph_expand_function (cgraphunit.c:1643) ==14681== by 0xABC579: cgraph_optimize (cgraphunit.c:1722) ==14681== by 0xABCB6A: cgraph_finalize_compilation_unit (cgraphunit.c:1185) ==14681== by 0x4DF86E: c_write_global_declarations (c-decl.c:9698) ==14681== by 0x8AB075: toplev_main (toplev.c:957) ==14681== by 0x6589BBC: (below main) (in /lib64/libc-2.11.2.so) ==14681== Uninitialised value was created by a stack allocation ==14681== at 0x95F0A0: dump_enumerated_decls (tree-ssa-live.c:1251) ==14681== ==15989== Conditional jump or move depends on uninitialised value(s) ==15989== at 0x70F09B: walk_gimple_stmt (gimple.c:1627) ==15989== by 0x95F153: dump_enumerated_decls (tree-ssa-live.c:1264) ==15989== by 0x901718: execute_cleanup_cfg_post_optimizing (tree-optimize.c:214) ==15989== by 0x7BD3EB: execute_one_pass (passes.c:1564) ==15989== by 0x7BD684: execute_pass_list (passes.c:1619) ==15989== by 0x9020A5: tree_rest_of_compilation (tree-optimize.c:452) ==15989== by 0xAB96E5: cgraph_expand_function (cgraphunit.c:1643) ==15989== by 0xABC579: cgraph_optimize (cgraphunit.c:1722) ==15989== by 0xABCB6A: cgraph_finalize_compilation_unit (cgraphunit.c:1185) ==15989== by 0x4DF86E: c_write_global_declarations (c-decl.c:9698) ==15989== by 0x8AB075: toplev_main (toplev.c:957) ==15989== by 0x6589BBC: (below main) (in /lib64/libc-2.11.2.so) ==15989== Uninitialised value was created by a stack allocation ==15989== at 0x95F0A0: dump_enumerated_decls (tree-ssa-live.c:1251) ==15989== gcc: error: testcase.c: -fcompare-debug failure I don't know if the uninitialised read has anything to do with this problem. Tested revisions: r162653 - fail r162456 - OK -- Summary: -fcompare-debug failure with -Os -fsched-spec-load - fschedule-insns Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization 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=45130