public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
@ 2011-12-15 16:50 hjl.tools at gmail dot com
  2011-12-15 19:44 ` [Bug bootstrap/51572] " hjl.tools at gmail dot com
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: hjl.tools at gmail dot com @ 2011-12-15 16:50 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51572
           Summary: [4.7 Regression] LTO bootstrap failed with
                    bootstrap-profiled
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com


On Linux/x86-64, revision 182367 configured with

--prefix=/usr/local --enable-clocale=gnu --with-system-zlib --enable-shared
--with-demangler-in-ld --with-build-config=bootstrap-lto --with-fpmath=sse
--enable-languages=c,c++,fortran,java,lto,objc

failed to bootstrap-profiled:

lto1: internal compiler error: in dwarf2out_finish, at dwarf2out.c:22493
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[7]: *** [/tmp/ccwUcTbd.ltrans29.ltrans.o] Error 1
make[7]: *** Waiting for unfinished jobs....
lto-wrapper: make returned 2 exit status
/usr/local/x86_64-unknown-linux-gnu/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[6]: *** [cc1plus] Error 1

Revision 182359 is OK.


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
@ 2011-12-15 19:44 ` hjl.tools at gmail dot com
  2011-12-16  9:09 ` rguenth at gcc dot gnu.org
                   ` (17 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: hjl.tools at gmail dot com @ 2011-12-15 19:44 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org
   Target Milestone|---                         |4.7.0

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2011-12-15 19:11:46 UTC ---
It is caused by revision 182367:

http://gcc.gnu.org/ml/gcc-cvs/2011-12/msg00505.html


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
  2011-12-15 19:44 ` [Bug bootstrap/51572] " hjl.tools at gmail dot com
@ 2011-12-16  9:09 ` rguenth at gcc dot gnu.org
  2011-12-16 11:59 ` markus at trippelsdorf dot de
                   ` (16 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-16  9:09 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2011-12-16
     Ever Confirmed|0                           |1

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-16 08:35:36 UTC ---
Testcase?


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
  2011-12-15 19:44 ` [Bug bootstrap/51572] " hjl.tools at gmail dot com
  2011-12-16  9:09 ` rguenth at gcc dot gnu.org
@ 2011-12-16 11:59 ` markus at trippelsdorf dot de
  2011-12-16 12:14 ` markus at trippelsdorf dot de
                   ` (15 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: markus at trippelsdorf dot de @ 2011-12-16 11:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-12-16 11:55:04 UTC ---
Created attachment 26107
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26107
pr51572.i

 % gcc -w -flto -g pr51572.i
lto1: internal compiler error: in dwarf2out_finish, at dwarf2out.c:22493


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
                   ` (2 preceding siblings ...)
  2011-12-16 11:59 ` markus at trippelsdorf dot de
@ 2011-12-16 12:14 ` markus at trippelsdorf dot de
  2011-12-16 12:50 ` rguenth at gcc dot gnu.org
                   ` (14 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: markus at trippelsdorf dot de @ 2011-12-16 12:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-12-16 12:12:37 UTC ---
Sorry, my check.sh script not optimal.
Here is a really reduced testcase:

% cat test.i
struct VdbeOpList
{
};
typedef struct VdbeOpList VdbeOpList;
sqlite3_blob_open ()
{
  static VdbeOpList openBlob[] = { };
}

% gcc -w -flto -g test.i
lto1: internal compiler error: in dwarf2out_finish, at dwarf2out.c:22493


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
                   ` (3 preceding siblings ...)
  2011-12-16 12:14 ` markus at trippelsdorf dot de
@ 2011-12-16 12:50 ` rguenth at gcc dot gnu.org
  2011-12-16 13:17 ` rguenth at gcc dot gnu.org
                   ` (13 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-16 12:50 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |ASSIGNED
         AssignedTo|unassigned at gcc dot       |rguenth at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-16 12:26:48 UTC ---
Thanks Marcus.  Even more reduced:

typedef int T;
void fn (void)
{
  static T t;
}

making it link with adding 'int main() {}' does not affect the failure.


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
                   ` (4 preceding siblings ...)
  2011-12-16 12:50 ` rguenth at gcc dot gnu.org
@ 2011-12-16 13:17 ` rguenth at gcc dot gnu.org
  2011-12-16 13:22 ` rguenth at gcc dot gnu.org
                   ` (12 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-16 13:17 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-16 13:11:42 UTC ---
We are creating the typedef DIE as limbo as we create it from here:

  /* If TYPE is a typedef type variant, let's generate debug info
     for the parent typedef which TYPE is a type of.  */
  if (typedef_variant_p (type))
    {
      if (TREE_ASM_WRITTEN (type))
        return;

      /* Prevent broken recursion; we can't hand off to the same type.  */
      gcc_assert (DECL_ORIGINAL_TYPE (TYPE_NAME (type)) != type);

      /* Use the DIE of the containing namespace as the parent DIE of
         the type description DIE we want to generate.  */
      if (DECL_CONTEXT (TYPE_NAME (type))
          && TREE_CODE (DECL_CONTEXT (TYPE_NAME (type))) == NAMESPACE_DECL)
        context_die = get_context_die (DECL_CONTEXT (TYPE_NAME (type)));

      TREE_ASM_WRITTEN (type) = 1;

      gen_decl_die (TYPE_NAME (type), NULL, context_die);

and the DECL_CONTEXT of the TYPE_DECL is the translation unit.  Not sure
why we do not immediately using such kind of context here, similar
in the case of is_naming_typedef_decl () below.

Thus, the following fixes it:

Index: gcc/dwarf2out.c
===================================================================
--- gcc/dwarf2out.c     (revision 182398)
+++ gcc/dwarf2out.c     (working copy)
@@ -18842,8 +18849,9 @@ gen_type_die_with_usage (tree type, dw_d

       /* Use the DIE of the containing namespace as the parent DIE of
          the type description DIE we want to generate.  */
-      if (DECL_CONTEXT (TYPE_NAME (type))
-         && TREE_CODE (DECL_CONTEXT (TYPE_NAME (type))) == NAMESPACE_DECL)
+      if (DECL_FILE_SCOPE_P (TYPE_NAME (type))
+         || (DECL_CONTEXT (TYPE_NAME (type))
+             && TREE_CODE (DECL_CONTEXT (TYPE_NAME (type))) ==
NAMESPACE_DECL))
        context_die = get_context_die (DECL_CONTEXT (TYPE_NAME (type)));

       TREE_ASM_WRITTEN (type) = 1;


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
                   ` (5 preceding siblings ...)
  2011-12-16 13:17 ` rguenth at gcc dot gnu.org
@ 2011-12-16 13:22 ` rguenth at gcc dot gnu.org
  2011-12-16 14:01 ` rguenth at gcc dot gnu.org
                   ` (11 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-16 13:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-16 13:16:19 UTC ---
At least the ICE we hit for the limbo node:

              if (DECL_P (node->created_for))
                context = DECL_CONTEXT (node->created_for);
              else if (TYPE_P (node->created_for))
                context = TYPE_CONTEXT (node->created_for);

              gcc_assert (context
                          && (TREE_CODE (context) == FUNCTION_DECL
                              || TREE_CODE (context) == NAMESPACE_DECL));

              origin = lookup_decl_die (context);
              if (origin)
                add_child_die (origin, die);
              else
                add_child_die (comp_unit_die (), die);

is odd, as the fallback for a non-existant context DIE is to attach the
DIE to the comp-unit-die.  So why not allow a comp-unit-die context
in the first place?  Thus, allow SCOPE_FILE_SCOPE_P limbo DIEs?


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
                   ` (6 preceding siblings ...)
  2011-12-16 13:22 ` rguenth at gcc dot gnu.org
@ 2011-12-16 14:01 ` rguenth at gcc dot gnu.org
  2011-12-16 14:39 ` rguenth at gcc dot gnu.org
                   ` (10 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-16 14:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-16 13:45:48 UTC ---
Without LTO we create the DIE for the TU level typedef via
debug_hooks->type_decl,
called from rest_of_decl_compilation which ultimately being dwarf2out_decl,
sets the context_die to comp_unit_die () manually.

As we do not gather or merge TYPE_DECLs with LTO we do not call
rest_of_decl_compilation for TYPE_DECLs.

So, with non-LTO we do not run into this seeming inconsistency in dwarf2out.c.


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
                   ` (7 preceding siblings ...)
  2011-12-16 14:01 ` rguenth at gcc dot gnu.org
@ 2011-12-16 14:39 ` rguenth at gcc dot gnu.org
  2011-12-16 14:44 ` markus at trippelsdorf dot de
                   ` (9 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-16 14:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-16 14:31:35 UTC ---
Author: rguenth
Date: Fri Dec 16 14:31:14 2011
New Revision: 182401

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182401
Log:
2011-12-16  Richard Guenther  <rguenther@suse.de>

    PR lto/51572
    * dwarf2out.c (gen_type_die_with_usage): Use the context of
    the TYPE_DECL as well if it is file-scope.

    * gcc.dg/lto/pr51572-1_0.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/lto/pr51572-1_0.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dwarf2out.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
                   ` (8 preceding siblings ...)
  2011-12-16 14:39 ` rguenth at gcc dot gnu.org
@ 2011-12-16 14:44 ` markus at trippelsdorf dot de
  2011-12-16 14:46 ` rguenther at suse dot de
                   ` (8 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: markus at trippelsdorf dot de @ 2011-12-16 14:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-12-16 14:40:28 UTC ---
Even with your patch (and also changing the similar occurrence
a few lines below) and patch #1 from PR51573 libxul of Firefox
still fails to build with the same ICE.


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
                   ` (9 preceding siblings ...)
  2011-12-16 14:44 ` markus at trippelsdorf dot de
@ 2011-12-16 14:46 ` rguenther at suse dot de
  2011-12-16 14:49 ` markus at trippelsdorf dot de
                   ` (7 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenther at suse dot de @ 2011-12-16 14:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from rguenther at suse dot de <rguenther at suse dot de> 2011-12-16 14:42:45 UTC ---
On Fri, 16 Dec 2011, markus at trippelsdorf dot de wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51572
> 
> --- Comment #10 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-12-16 14:40:28 UTC ---
> Even with your patch (and also changing the similar occurrence
> a few lines below) and patch #1 from PR51573 libxul of Firefox
> still fails to build with the same ICE.

Which ICE?  The one from PR51572 or that from 51573?


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
                   ` (10 preceding siblings ...)
  2011-12-16 14:46 ` rguenther at suse dot de
@ 2011-12-16 14:49 ` markus at trippelsdorf dot de
  2011-12-16 14:52 ` rguenther at suse dot de
                   ` (6 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: markus at trippelsdorf dot de @ 2011-12-16 14:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-12-16 14:45:32 UTC ---
(In reply to comment #11)
> On Fri, 16 Dec 2011, markus at trippelsdorf dot de wrote:
> 
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51572
> > 
> > --- Comment #10 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-12-16 14:40:28 UTC ---
> > Even with your patch (and also changing the similar occurrence
> > a few lines below) and patch #1 from PR51573 libxul of Firefox
> > still fails to build with the same ICE.
> 
> Which ICE?  The one from PR51572 or that from 51573?

This one from PR51572:
...
At top level:
lto1: internal compiler error: in dwarf2out_finish, at dwarf2out.c:22495


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
                   ` (11 preceding siblings ...)
  2011-12-16 14:49 ` markus at trippelsdorf dot de
@ 2011-12-16 14:52 ` rguenther at suse dot de
  2011-12-16 14:54 ` markus at trippelsdorf dot de
                   ` (5 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenther at suse dot de @ 2011-12-16 14:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from rguenther at suse dot de <rguenther at suse dot de> 2011-12-16 14:47:45 UTC ---
On Fri, 16 Dec 2011, markus at trippelsdorf dot de wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51572
> 
> --- Comment #12 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-12-16 14:45:32 UTC ---
> (In reply to comment #11)
> > On Fri, 16 Dec 2011, markus at trippelsdorf dot de wrote:
> > 
> > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51572
> > > 
> > > --- Comment #10 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-12-16 14:40:28 UTC ---
> > > Even with your patch (and also changing the similar occurrence
> > > a few lines below) and patch #1 from PR51573 libxul of Firefox
> > > still fails to build with the same ICE.
> > 
> > Which ICE?  The one from PR51572 or that from 51573?
> 
> This one from PR51572:
> ...
> At top level:
> lto1: internal compiler error: in dwarf2out_finish, at dwarf2out.c:22495

I'd be interested in a testcase ... ;)


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
                   ` (12 preceding siblings ...)
  2011-12-16 14:52 ` rguenther at suse dot de
@ 2011-12-16 14:54 ` markus at trippelsdorf dot de
  2011-12-16 15:01 ` rguenther at suse dot de
                   ` (4 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: markus at trippelsdorf dot de @ 2011-12-16 14:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-12-16 14:51:03 UTC ---
(In reply to comment #13)
> On Fri, 16 Dec 2011, markus at trippelsdorf dot de wrote:
> 
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51572
> > 
> > --- Comment #12 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-12-16 14:45:32 UTC ---
> > (In reply to comment #11)
> > > On Fri, 16 Dec 2011, markus at trippelsdorf dot de wrote:
> > > 
> > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51572
> > > > 
> > > > --- Comment #10 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-12-16 14:40:28 UTC ---
> > > > Even with your patch (and also changing the similar occurrence
> > > > a few lines below) and patch #1 from PR51573 libxul of Firefox
> > > > still fails to build with the same ICE.
> > > 
> > > Which ICE?  The one from PR51572 or that from 51573?
> > 
> > This one from PR51572:
> > ...
> > At top level:
> > lto1: internal compiler error: in dwarf2out_finish, at dwarf2out.c:22495
> 
> I'd be interested in a testcase ... ;)

Will try ;-).
But libxul is a huge beast to reduce.


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
                   ` (13 preceding siblings ...)
  2011-12-16 14:54 ` markus at trippelsdorf dot de
@ 2011-12-16 15:01 ` rguenther at suse dot de
  2011-12-16 15:20 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenther at suse dot de @ 2011-12-16 15:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from rguenther at suse dot de <rguenther at suse dot de> 2011-12-16 14:53:34 UTC ---
On Fri, 16 Dec 2011, markus at trippelsdorf dot de wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51572
> 
> --- Comment #14 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-12-16 14:51:03 UTC ---
> (In reply to comment #13)
> > On Fri, 16 Dec 2011, markus at trippelsdorf dot de wrote:
> > 
> > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51572
> > > 
> > > --- Comment #12 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-12-16 14:45:32 UTC ---
> > > (In reply to comment #11)
> > > > On Fri, 16 Dec 2011, markus at trippelsdorf dot de wrote:
> > > > 
> > > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51572
> > > > > 
> > > > > --- Comment #10 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-12-16 14:40:28 UTC ---
> > > > > Even with your patch (and also changing the similar occurrence
> > > > > a few lines below) and patch #1 from PR51573 libxul of Firefox
> > > > > still fails to build with the same ICE.
> > > > 
> > > > Which ICE?  The one from PR51572 or that from 51573?
> > > 
> > > This one from PR51572:
> > > ...
> > > At top level:
> > > lto1: internal compiler error: in dwarf2out_finish, at dwarf2out.c:22495
> > 
> > I'd be interested in a testcase ... ;)
> 
> Will try ;-).
> But libxul is a huge beast to reduce.

Thanks, meanwhile I found that g++.dg/debug/pr45660.C ICEs the same
way (after the patch for 51572).  So I'll look at that now.


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
                   ` (14 preceding siblings ...)
  2011-12-16 15:01 ` rguenther at suse dot de
@ 2011-12-16 15:20 ` rguenth at gcc dot gnu.org
  2011-12-16 15:32 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-16 15:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-16 15:13:27 UTC ---
For g++.dg/debug/pr45660.C we have a limbo DIE for 'T' which has DECL_CONTEXT
of the type 'S'.  We create a DIE for 'S' when creating a DIE for the
FUNCTION_DECL 'i' which we do when we output that function (via
debug_hooks->function_decl) by emitting a DIE for its origin.  Same without
LTO, but with LTO we have dropped all non-FIELD_DECL members from 'S' so
we do not output the TYPE_DECL when we have a context for it - so it gets
on the limbo list.


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
                   ` (15 preceding siblings ...)
  2011-12-16 15:20 ` rguenth at gcc dot gnu.org
@ 2011-12-16 15:32 ` rguenth at gcc dot gnu.org
  2011-12-19 13:39 ` rguenth at gcc dot gnu.org
  2011-12-19 13:45 ` rguenth at gcc dot gnu.org
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-16 15:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-16 15:28:35 UTC ---
It'll take me a while to do the necessary pre-reorg of streaming TREE_CHAIN
for FIELD_DECLs -> next week.


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
                   ` (16 preceding siblings ...)
  2011-12-16 15:32 ` rguenth at gcc dot gnu.org
@ 2011-12-19 13:39 ` rguenth at gcc dot gnu.org
  2011-12-19 13:45 ` rguenth at gcc dot gnu.org
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-19 13:39 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #18 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-19 13:34:09 UTC ---
Original profilebootstrap fail is fixed (from looking at gcc-testresults).


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

* [Bug bootstrap/51572] [4.7 Regression] LTO bootstrap failed with bootstrap-profiled
  2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
                   ` (17 preceding siblings ...)
  2011-12-19 13:39 ` rguenth at gcc dot gnu.org
@ 2011-12-19 13:45 ` rguenth at gcc dot gnu.org
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-19 13:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #19 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-19 13:39:04 UTC ---
Author: rguenth
Date: Mon Dec 19 13:37:06 2011
New Revision: 182479

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182479
Log:
2011-12-19  Richard Guenther  <rguenther@suse.de>

    PR lto/51572
    * tree.c (free_lang_data_in_type): Do not unlink TYPE_DECL
    from TYPE_FIELDS.
    (find_decls_types_r): Walk TYPE_DECLs in TYPE_FIELDS.
    * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Do
    not stream TREE_CHAIN.
    (write_ts_type_non_common_tree_pointers): Stream TYPE_FIELDS
    using streamer_write_chain.
    * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
    Do not stream TREE_CHAIN.
    (lto_input_ts_type_non_common_tree_pointers): Stream TYPE_FIELDS
    using streamer_read_chain.
    * gimple-streamer-in.c (input_gimple_stmt): Skip non-FIELD_DECLs.
    * gimple.c (gimple_canonical_types_compatible_p): Properly
    handle trailing non-FIELD_DECLs in TYPE_FIELDS.

    * g++.dg/lto/pr51572-2_0.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/lto/pr51572-2_0.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-streamer-in.c
    trunk/gcc/gimple.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-streamer-in.c
    trunk/gcc/tree-streamer-out.c
    trunk/gcc/tree.c


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

end of thread, other threads:[~2011-12-19 13:39 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-15 16:50 [Bug bootstrap/51572] New: [4.7 Regression] LTO bootstrap failed with bootstrap-profiled hjl.tools at gmail dot com
2011-12-15 19:44 ` [Bug bootstrap/51572] " hjl.tools at gmail dot com
2011-12-16  9:09 ` rguenth at gcc dot gnu.org
2011-12-16 11:59 ` markus at trippelsdorf dot de
2011-12-16 12:14 ` markus at trippelsdorf dot de
2011-12-16 12:50 ` rguenth at gcc dot gnu.org
2011-12-16 13:17 ` rguenth at gcc dot gnu.org
2011-12-16 13:22 ` rguenth at gcc dot gnu.org
2011-12-16 14:01 ` rguenth at gcc dot gnu.org
2011-12-16 14:39 ` rguenth at gcc dot gnu.org
2011-12-16 14:44 ` markus at trippelsdorf dot de
2011-12-16 14:46 ` rguenther at suse dot de
2011-12-16 14:49 ` markus at trippelsdorf dot de
2011-12-16 14:52 ` rguenther at suse dot de
2011-12-16 14:54 ` markus at trippelsdorf dot de
2011-12-16 15:01 ` rguenther at suse dot de
2011-12-16 15:20 ` rguenth at gcc dot gnu.org
2011-12-16 15:32 ` rguenth at gcc dot gnu.org
2011-12-19 13:39 ` rguenth at gcc dot gnu.org
2011-12-19 13:45 ` rguenth 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).