public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/51650] New: [4.7 regression] ICE in dwarf2out_finish, at dwarf2out.c:22501 while building libxul
@ 2011-12-21 20:32 markus at trippelsdorf dot de
  2011-12-21 20:36 ` [Bug debug/51650] [4.7 regression] LTO " pinskia at gcc dot gnu.org
                   ` (25 more replies)
  0 siblings, 26 replies; 27+ messages in thread
From: markus at trippelsdorf dot de @ 2011-12-21 20:32 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51650
           Summary: [4.7 regression] ICE in dwarf2out_finish, at
                    dwarf2out.c:22501 while building libxul
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: markus@trippelsdorf.de


After applying the patch that fixes Bug 51635 I've hit new bug
while building Firefox's libxul.

 % cat test.ii
extern "C" typedef int PRUint32;
typedef PRUint32 nsresult;
class nsQueryFrame
{
};
extern "C" struct PLDHashEntryHdr
{
};

template < class > class nsPtrHashKey:PLDHashEntryHdr
{
};

class nsIFrame;
namespace mozilla
{
  struct FramePropertyDescriptor
  {
  };
  class FramePropertyTable
  {
  public:FramePropertyTable ():mLastFrame (), mLastEntry ()
    {
    }
    void *Get (nsIFrame *, FramePropertyDescriptor *, bool *);
    class Entry:nsPtrHashKey < nsIFrame >
    {
    };
    nsIFrame *mLastFrame;
    Entry *mLastEntry;
  };
  class FrameProperties
  {
  public:FrameProperties ():mTable (), mFrame ()
    {
    }
    void *Get (FramePropertyDescriptor * aProperty)
    {
      mTable->Get (0, aProperty, 0);
    }
    FramePropertyTable *mTable;
    nsIFrame *mFrame;
  };
}

extern "C" class nsIFrame:nsQueryFrame
{
public:typedef mozilla::FramePropertyDescriptor FramePropertyDescriptor;
  typedef mozilla::FrameProperties FrameProperties;
  FrameProperties Properties ()
  {
  }
  static FramePropertyDescriptor *EmbeddingLevelProperty ()
  {
    static FramePropertyDescriptor descriptor;

    return &descriptor;
  }
};
nsresult
nsCaretGetCaretFrameForNodeOffset ()
{
  nsIFrame *theFrame;

  theFrame->Properties ().Get (nsIFrame::EmbeddingLevelProperty ());
}

 % g++ -flto -g -w test.ii
lto1: internal compiler error: in dwarf2out_finish, at dwarf2out.c:22501
Please submit a full bug report,
with preprocessed source if appropriate.


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

end of thread, other threads:[~2012-01-04  1:13 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-21 20:32 [Bug lto/51650] New: [4.7 regression] ICE in dwarf2out_finish, at dwarf2out.c:22501 while building libxul markus at trippelsdorf dot de
2011-12-21 20:36 ` [Bug debug/51650] [4.7 regression] LTO " pinskia at gcc dot gnu.org
2011-12-22 11:44 ` rguenth at gcc dot gnu.org
2011-12-22 12:01 ` rguenth at gcc dot gnu.org
2011-12-22 12:21 ` rguenth at gcc dot gnu.org
2011-12-22 12:54 ` markus at trippelsdorf dot de
2011-12-22 13:18 ` rguenth at gcc dot gnu.org
2011-12-22 13:26 ` markus at trippelsdorf dot de
2011-12-22 13:34 ` markus at trippelsdorf dot de
2011-12-22 13:43 ` rguenth at gcc dot gnu.org
2011-12-22 15:32 ` rguenth at gcc dot gnu.org
2011-12-22 15:34 ` rguenth at gcc dot gnu.org
2011-12-22 15:37 ` markus at trippelsdorf dot de
2011-12-22 18:47 ` markus at trippelsdorf dot de
2011-12-22 19:24 ` markus at trippelsdorf dot de
2011-12-23  9:19 ` rguenth at gcc dot gnu.org
2011-12-23 11:13 ` rguenth at gcc dot gnu.org
2011-12-23 11:23 ` rguenth at gcc dot gnu.org
2011-12-23 11:46 ` rguenth at gcc dot gnu.org
2011-12-23 11:52 ` rguenth at gcc dot gnu.org
2011-12-23 13:34 ` rguenth at gcc dot gnu.org
2011-12-23 14:03 ` markus at trippelsdorf dot de
2012-01-02 15:53 ` rguenth at gcc dot gnu.org
2012-01-02 16:53 ` markus at trippelsdorf dot de
2012-01-03 11:31 ` rguenth at gcc dot gnu.org
2012-01-03 11:31 ` rguenth at gcc dot gnu.org
2012-01-04  1:13 ` pinskia at gcc dot gnu.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).