public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/45130]  New: -fcompare-debug failure with -Os -fsched-spec-load -fschedule-insns
Date: Thu, 29 Jul 2010 13:59:00 -0000	[thread overview]
Message-ID: <bug-45130-14164@http.gcc.gnu.org/bugzilla/> (raw)

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


             reply	other threads:[~2010-07-29 13:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-29 13:59 zsojka at seznam dot cz [this message]
2010-07-29 14:00 ` [Bug rtl-optimization/45130] " zsojka at seznam dot cz
2010-07-30  9:48 ` jakub at gcc dot gnu dot org
2010-09-04 15:28 ` [Bug debug/45130] " aoliva at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-45130-14164@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).