public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/45130]  New: -fcompare-debug failure with -Os -fsched-spec-load -fschedule-insns
@ 2010-07-29 13:59 zsojka at seznam dot cz
  2010-07-29 14:00 ` [Bug rtl-optimization/45130] " zsojka at seznam dot cz
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: zsojka at seznam dot cz @ 2010-07-29 13:59 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug rtl-optimization/45130] -fcompare-debug failure with -Os -fsched-spec-load -fschedule-insns
  2010-07-29 13:59 [Bug rtl-optimization/45130] New: -fcompare-debug failure with -Os -fsched-spec-load -fschedule-insns zsojka at seznam dot cz
@ 2010-07-29 14:00 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: zsojka at seznam dot cz @ 2010-07-29 14:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from zsojka at seznam dot cz  2010-07-29 13:59 -------
Created an attachment (id=21350)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21350&action=view)
reduced testcase


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45130


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug rtl-optimization/45130] -fcompare-debug failure with -Os -fsched-spec-load -fschedule-insns
  2010-07-29 13:59 [Bug rtl-optimization/45130] New: -fcompare-debug failure with -Os -fsched-spec-load -fschedule-insns zsojka at seznam dot cz
  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
  2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-07-30  9:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2010-07-30 09:48 -------
This is likely dup of PR45136.  Again, NOTE_INSN_DELETED moved just with -g and
kept where it was with -g0.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-07-30 09:48:43
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45130


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug debug/45130] -fcompare-debug failure with -Os -fsched-spec-load -fschedule-insns
  2010-07-29 13:59 [Bug rtl-optimization/45130] New: -fcompare-debug failure with -Os -fsched-spec-load -fschedule-insns zsojka at seznam dot cz
  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 ` aoliva at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2010-09-04 15:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from aoliva at gcc dot gnu dot org  2010-09-04 15:28 -------


*** This bug has been marked as a duplicate of 45136 ***


-- 

aoliva at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45130


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-04 15:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-29 13:59 [Bug rtl-optimization/45130] New: -fcompare-debug failure with -Os -fsched-spec-load -fschedule-insns zsojka at seznam dot cz
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

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).