public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/42020]  New: field not merged causes cc1 to be miscompiled
@ 2009-11-12 17:05 espindola at gcc dot gnu dot org
  2009-11-12 17:05 ` [Bug lto/42020] " espindola at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: espindola at gcc dot gnu dot org @ 2009-11-12 17:05 UTC (permalink / raw)
  To: gcc-bugs

Reducing a cc1 miscompilation when using lto I noticed that the problem was
nonoverlapping_component_refs_p returning true because we had two different
field_decls for the succs field in basic_block.

Rich asked me to put an assert that the field is being merged and reduce more
using that assert.

To reproduce the issue:

*) patch gcc to add the assert
*) cc1 -quiet -O2 -flto cfgrtl.i -o cfgrtl.s
*) as cfgrtl.s -o cfgrtl.o
*) lto1 -quiet  -O2  cfgrtl.o -o foo.s


-- 
           Summary: field not merged causes cc1 to be miscompiled
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: espindola at gcc dot gnu dot org
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


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


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

end of thread, other threads:[~2009-12-11 15:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-12 17:05 [Bug lto/42020] New: field not merged causes cc1 to be miscompiled espindola at gcc dot gnu dot org
2009-11-12 17:05 ` [Bug lto/42020] " espindola at gcc dot gnu dot org
2009-11-12 17:06 ` espindola at gcc dot gnu dot org
2009-11-12 17:52 ` rguenth at gcc dot gnu dot org
2009-11-18 10:56 ` rguenth at gcc dot gnu dot org
2009-11-18 16:19 ` espindola at gcc dot gnu dot org
2009-12-11 15:45 ` rguenth 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).