public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/42392]  New: ICE when combining LTO with asm()
@ 2009-12-16  8:36 rmh at gcc dot gnu dot org
  2009-12-16  8:38 ` [Bug lto/42392] [LTO] ICE with top level asm pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: rmh at gcc dot gnu dot org @ 2009-12-16  8:36 UTC (permalink / raw)
  To: gcc-bugs

I got this error when trying to compile GRUB (latest bzr) on amd64 with -flto:

lto1: internal compiler error: compressed stream: buffer error

The culprit was an acinclude check, which can be reduced to the following test
case:

asm (".globl start; start: nop");
int
main ()
{
}

I'm not sure this can be considered valid C (or at least valid GNU C). I'm
tentatively setting ice-on-invalid-code keyword. If I understand correctly, it
is equivalent to:

void start ()
{
  asm ("nop");
}
int
main ()
{
}

In any case I suppose if the code isn't valid, GCC ought to fail more
gracefully than this, so I report anyway in case you'd like to know :-)


-- 
           Summary: ICE when combining LTO with asm()
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, lto
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rmh at gcc dot gnu dot org


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


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

end of thread, other threads:[~2009-12-16 23:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-16  8:36 [Bug lto/42392] New: ICE when combining LTO with asm() rmh at gcc dot gnu dot org
2009-12-16  8:38 ` [Bug lto/42392] [LTO] ICE with top level asm pinskia at gcc dot gnu dot org
2009-12-16 13:43 ` rguenth at gcc dot gnu dot org
2009-12-16 23:07 ` rguenth at gcc dot gnu dot org
2009-12-16 23:07 ` 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).