public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/26881]  New: internal compiler error in dwarf2out_finish
@ 2006-03-27  1:50 dbaron at dbaron dot org
  2006-03-27  1:52 ` [Bug debug/26881] " dbaron at dbaron dot org
                   ` (30 more replies)
  0 siblings, 31 replies; 32+ messages in thread
From: dbaron at dbaron dot org @ 2006-03-27  1:50 UTC (permalink / raw)
  To: gcc-bugs

I get an internal compiler error when compiling Mozilla's standalone
spidermonkey JavaScript engine on x86, either with Fedora Core 5's gcc 4.1.0 or
a gcc 4.1.0 built from the released source.  I did *not* see this error taking
similar steps on x86_64.

jscpucfg.c:374: internal compiler error: in dwarf2out_finish, at
dwarf2out.c:14116

I'll attach preprocessed source; I haven't had a chance to minimize the
testcase.

I'm using:
$ /usr/local/gcc-4.1.0/bin/gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1.0/configure --prefix=/usr/local/gcc-4.1.0
--enable-threads=posix --enable-checking=release --with-system-zlib
--enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++
Thread model: posix
gcc version 4.1.0


-- 
           Summary: internal compiler error in dwarf2out_finish
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dbaron at dbaron dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug debug/26881] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
@ 2006-03-27  1:52 ` dbaron at dbaron dot org
  2006-03-27  1:56 ` [Bug debug/26881] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
                   ` (29 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: dbaron at dbaron dot org @ 2006-03-27  1:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dbaron at dbaron dot org  2006-03-27 01:52 -------
Created an attachment (id=11132)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11132&action=view)
preprocessed source (jscpucfg.i)

To see the bug, save this attachment as jscpucfg.i, and:

# gcc -c -o jscpucfg.o -g jscpucfg.i


-- 


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
  2006-03-27  1:52 ` [Bug debug/26881] " dbaron at dbaron dot org
@ 2006-03-27  1:56 ` pinskia at gcc dot gnu dot org
  2006-03-27  1:57 ` pinskia at gcc dot gnu dot org
                   ` (28 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-27  1:56 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Keywords|                            |ice-on-valid-code
            Summary|internal compiler error in  |[4.1/4.2 Regression]
                   |dwarf2out_finish            |internal compiler error in
                   |                            |dwarf2out_finish
   Target Milestone|---                         |4.1.1


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
  2006-03-27  1:52 ` [Bug debug/26881] " dbaron at dbaron dot org
  2006-03-27  1:56 ` [Bug debug/26881] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-03-27  1:57 ` pinskia at gcc dot gnu dot org
  2006-03-27  2:08 ` pinskia at gcc dot gnu dot org
                   ` (27 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-27  1:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-03-27 01:56 -------
Reducing.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.1.0 4.2.0
      Known to work|                            |4.0.3


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (2 preceding siblings ...)
  2006-03-27  1:57 ` pinskia at gcc dot gnu dot org
@ 2006-03-27  2:08 ` pinskia at gcc dot gnu dot org
  2006-03-27  8:17 ` rguenth at gcc dot gnu dot org
                   ` (26 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-27  2:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-03-27 02:08 -------
Reduced testcase that fails even on x86_64:
int main(int argc, char **argv)
{
 if (0)
 {
   static union{} u;
   typedef char tt;
   static tt c[8];
   return c[0] == 0x01 && c[1] == 0x02;
 }
}


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|i686-pc-linux-gnu           |
   GCC host triplet|i686-pc-linux-gnu           |
 GCC target triplet|i686-pc-linux-gnu           |dwarf2
   Last reconfirmed|0000-00-00 00:00:00         |2006-03-27 02:08:50
               date|                            |


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (3 preceding siblings ...)
  2006-03-27  2:08 ` pinskia at gcc dot gnu dot org
@ 2006-03-27  8:17 ` rguenth at gcc dot gnu dot org
  2006-04-06 16:21 ` pinskia at gcc dot gnu dot org
                   ` (25 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-03-27  8:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2006-03-27 08:17 -------
(gdb) up
#1  0x082e8034 in dwarf2out_finish (filename=0xbfb6d1ca "t.c")
    at /space/rguenther/src/svn/summit/gcc/dwarf2out.c:14104
14104                 gcc_assert (context && TREE_CODE (context) ==
FUNCTION_DECL);
(gdb) print context
$1 = (tree) 0xb7d91138
(gdb) call debug_generic_expr(context)
BLOCK
  SUPERCONTEXT: BLOCK 0xb7d9116c
  VARS: unionunion 
{
} uD.1525 ttD.1526 cD.1527 

eh?  what's that?  cfun is also NULL.

(gdb) call debug_generic_expr(node->created_for)
union 
{
}


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (4 preceding siblings ...)
  2006-03-27  8:17 ` rguenth at gcc dot gnu dot org
@ 2006-04-06 16:21 ` pinskia at gcc dot gnu dot org
  2006-04-16 13:07 ` couriousous at mandriva dot org
                   ` (24 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-06 16:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-04-06 16:21 -------
*** Bug 27058 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu dot org


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (5 preceding siblings ...)
  2006-04-06 16:21 ` pinskia at gcc dot gnu dot org
@ 2006-04-16 13:07 ` couriousous at mandriva dot org
  2006-04-16 19:10 ` mmitchel at gcc dot gnu dot org
                   ` (23 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: couriousous at mandriva dot org @ 2006-04-16 13:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from couriousous at mandriva dot org  2006-04-16 13:07 -------
Here is an another testcase:

void bar (void)
{
 if (0) {
      static enum {a} foo;
      switch (0)
        {
        default:
          return;
        }
    }
}


Fail compiling with -O0 -g on x86_64 with gcc 4.1.1


-- 

couriousous at mandriva dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |couriousous at mandriva dot
                   |                            |org


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (6 preceding siblings ...)
  2006-04-16 13:07 ` couriousous at mandriva dot org
@ 2006-04-16 19:10 ` mmitchel at gcc dot gnu dot org
  2006-04-19 13:01 ` jakub at gcc dot gnu dot org
                   ` (22 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-04-16 19:10 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (7 preceding siblings ...)
  2006-04-16 19:10 ` mmitchel at gcc dot gnu dot org
@ 2006-04-19 13:01 ` jakub at gcc dot gnu dot org
  2006-04-30 14:31 ` hubicka at gcc dot gnu dot org
                   ` (21 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-04-19 13:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jakub at gcc dot gnu dot org  2006-04-19 13:00 -------
Honza, this is caused by your patch:
http://gcc.gnu.org/ml/gcc-patches/2005-06/msg00661.html
In -fno-unit-at-a-time mode, we used to pass the local var to dwarf2out only
when the containing function has been registered with dwarf2out, but now we
call dwarf2out_global_decl on local variables first and only after that
dwarf2out_decl on the containing function.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu dot
                   |                            |org


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (8 preceding siblings ...)
  2006-04-19 13:01 ` jakub at gcc dot gnu dot org
@ 2006-04-30 14:31 ` hubicka at gcc dot gnu dot org
  2006-05-05 12:26 ` jakub at gcc dot gnu dot org
                   ` (20 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2006-04-30 14:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from hubicka at gcc dot gnu dot org  2006-04-30 14:30 -------
Jakub,
adding a worklist and passing all variables to dwarf2out as last it quite easy
to do.  However could you enlighten me a bit why the particular order is
needed?
Honza


-- 

hubicka at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |hubicka at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (9 preceding siblings ...)
  2006-04-30 14:31 ` hubicka at gcc dot gnu dot org
@ 2006-05-05 12:26 ` jakub at gcc dot gnu dot org
  2006-05-10 20:08 ` flash at pobox dot com
                   ` (19 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-05-05 12:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jakub at gcc dot gnu dot org  2006-05-05 12:26 -------
For static variables in function contexts dwarf2out in several places wants
to look up the parent context DIE.  Now when the variables are registered
with dwarf2out before the containing function, the parent context DIE doesn't
exist yet.


-- 


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (10 preceding siblings ...)
  2006-05-05 12:26 ` jakub at gcc dot gnu dot org
@ 2006-05-10 20:08 ` flash at pobox dot com
  2006-05-25  2:47 ` mmitchel at gcc dot gnu dot org
                   ` (18 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: flash at pobox dot com @ 2006-05-10 20:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from flash at pobox dot com  2006-05-10 20:08 -------
PalmSource bug #126750.


-- 

flash at pobox dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |flash at pobox dot com


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (11 preceding siblings ...)
  2006-05-10 20:08 ` flash at pobox dot com
@ 2006-05-25  2:47 ` mmitchel at gcc dot gnu dot org
  2006-05-29  8:54 ` martin at mpa-garching dot mpg dot de
                   ` (17 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-25  2:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from mmitchel at gcc dot gnu dot org  2006-05-25 02:34 -------
Will not be fixed in 4.1.1; adjust target milestone to 4.1.2.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.1                       |4.1.2


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (12 preceding siblings ...)
  2006-05-25  2:47 ` mmitchel at gcc dot gnu dot org
@ 2006-05-29  8:54 ` martin at mpa-garching dot mpg dot de
  2006-07-14 12:26 ` falk at debian dot org
                   ` (16 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2006-05-29  8:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from martin at mpa-garching dot mpg dot de  2006-05-29 08:53 -------
This bug prevents the current release of the Globus toolkit
(www.globus.org) from compiling.


-- 


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (13 preceding siblings ...)
  2006-05-29  8:54 ` martin at mpa-garching dot mpg dot de
@ 2006-07-14 12:26 ` falk at debian dot org
  2006-08-07  8:02 ` hubicka at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: falk at debian dot org @ 2006-07-14 12:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from falk at debian dot org  2006-07-14 12:26 -------
*** Bug 28379 has been marked as a duplicate of this bug. ***


-- 

falk at debian dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stephan at s11n dot net


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (14 preceding siblings ...)
  2006-07-14 12:26 ` falk at debian dot org
@ 2006-08-07  8:02 ` hubicka at gcc dot gnu dot org
  2006-08-07  9:48 ` stephan at s11n dot net
                   ` (14 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2006-08-07  8:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from hubicka at gcc dot gnu dot org  2006-08-07 08:01 -------
Created an attachment (id=12032)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12032&action=view)
Patch in testing


-- 


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (15 preceding siblings ...)
  2006-08-07  8:02 ` hubicka at gcc dot gnu dot org
@ 2006-08-07  9:48 ` stephan at s11n dot net
  2006-08-18  4:20 ` pinskia at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: stephan at s11n dot net @ 2006-08-07  9:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from stephan at s11n dot net  2006-08-07 09:47 -------
(In reply to comment #12)
> This bug prevents the current release of the Globus toolkit
> (www.globus.org) from compiling.

A semi-workaround for getting SpiderMonkey to build is to export the
BUILD_OPT=1 environment variable. This tells the SpiderMonkey makefile to turn
off debugging, which causes the error to disappear. The down-side is that the
library is then built to another directory, so you may have to change your
Makefiles to accommodate finding the .so file in another place. For example, on
my machine it is output to js/Linux_All_OPT.OBJ/.


-- 


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (16 preceding siblings ...)
  2006-08-07  9:48 ` stephan at s11n dot net
@ 2006-08-18  4:20 ` pinskia at gcc dot gnu dot org
  2006-08-20  9:14 ` rguenth at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-18  4:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from pinskia at gcc dot gnu dot org  2006-08-18 04:20 -------
(In reply to comment #14)
Any news on the patch?


-- 


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (17 preceding siblings ...)
  2006-08-18  4:20 ` pinskia at gcc dot gnu dot org
@ 2006-08-20  9:14 ` rguenth at gcc dot gnu dot org
  2006-08-20 12:47 ` hubicka at ucw dot cz
                   ` (11 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-08-20  9:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from rguenth at gcc dot gnu dot org  2006-08-20 09:14 -------
*** Bug 28782 has been marked as a duplicate of this bug. ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yair at finjan dot com


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (18 preceding siblings ...)
  2006-08-20  9:14 ` rguenth at gcc dot gnu dot org
@ 2006-08-20 12:47 ` hubicka at ucw dot cz
  2006-08-24 13:31 ` hubicka at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: hubicka at ucw dot cz @ 2006-08-20 12:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #18 from hubicka at ucw dot cz  2006-08-20 12:47 -------
Subject: Re:  [4.1/4.2 Regression] internal compiler error in dwarf2out_finish

> (In reply to comment #14)
> Any news on the patch?

Sadly we are having just tip of the iceberg here.  The patch to deffer
output of debug symbols later sort of work, but I noticed there are
other PRs related to problem where optimized out static variable is
still referred to by debug info, so I attempted to move debug output
code to cgraph domain and failed to do so.  The problem is that we are
quite inconsistent in way we do handle the optimized out variables.  In
some cases we do emit debug output for them, in other we don't and
in another we ICE depending on case and forntend.

I guess I will back out and implement the deferring itself without
touching the whole issue for start.  THen we probably ought to teach
debug info output machinery to query cgraph about whether the particular
variable was output or not and output the location or optimized out info
and move the debug output to cgraph at last (for both local and external
stuff, so we will need new datastructure in cgraph holding all
declarations in program somehow, as this is for now maintained only by
frontends)

Honza


-- 


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


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

* [Bug debug/26881] [4.1/4.2 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (19 preceding siblings ...)
  2006-08-20 12:47 ` hubicka at ucw dot cz
@ 2006-08-24 13:31 ` hubicka at gcc dot gnu dot org
  2006-10-14 16:49 ` [Bug debug/26881] [4.1 " tbm at cyrius dot com
                   ` (9 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2006-08-24 13:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #19 from hubicka at gcc dot gnu dot org  2006-08-24 13:30 -------
Subject: Bug 26881

Author: hubicka
Date: Thu Aug 24 13:30:45 2006
New Revision: 116374

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116374
Log:
        PR debug/26881
        * cgraph.c: Fix comments.
        (cgraph_varpool_mark_needed_node): Mark only variables not already
        output to file.
        * cgraphunit.c: Update comments; include gt-cgraphunit.h
        (cgraph_varpool_assembled_nodes_queue): New static variable.
        (cgraph_varpool_assemble_decl): Record output decls for debug out code.
        (cgraph_varpool_output_debug_info): New function.
        (cgraph_finalize_compilation_unit, cgraph_optimize): Call it.
        * Makefile.in: Add gt-cgraphunit.h
        * gcc.dg/debug/pr26881.c: New file.

Added:
    trunk/gcc/testsuite/gcc.dg/debug/pr26881.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/Makefile.in
    trunk/gcc/cgraph.c
    trunk/gcc/cgraphunit.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug debug/26881] [4.1 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (20 preceding siblings ...)
  2006-08-24 13:31 ` hubicka at gcc dot gnu dot org
@ 2006-10-14 16:49 ` tbm at cyrius dot com
  2006-10-17 11:31 ` rguenth at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: tbm at cyrius dot com @ 2006-10-14 16:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #20 from tbm at cyrius dot com  2006-10-14 16:48 -------
Jan, do you intend to apply this to 4.1?


-- 


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


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

* [Bug debug/26881] [4.1 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (21 preceding siblings ...)
  2006-10-14 16:49 ` [Bug debug/26881] [4.1 " tbm at cyrius dot com
@ 2006-10-17 11:31 ` rguenth at gcc dot gnu dot org
  2006-10-17 11:31 ` rguenth at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-10-17 11:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #22 from rguenth at gcc dot gnu dot org  2006-10-17 11:31 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

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


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


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

* [Bug debug/26881] [4.1 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (22 preceding siblings ...)
  2006-10-17 11:31 ` rguenth at gcc dot gnu dot org
@ 2006-10-17 11:31 ` rguenth at gcc dot gnu dot org
  2006-10-17 11:33 ` rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-10-17 11:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #21 from rguenth at gcc dot gnu dot org  2006-10-17 11:30 -------
Subject: Bug 26881

Author: rguenth
Date: Tue Oct 17 11:30:28 2006
New Revision: 117823

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117823
Log:
2006-10-17  Richard Guenther  <rguenther@suse.de>

        Backport from mainline:
        2006-05-11  Jan Hubicka  <jh@suse.cz>

        PR debug/26881
        * Makefile.in (gt-cgraphunit.h): Add.
        * cgraphunit.c: Include gt-cgraphunit.h.
        (local_static_output): New static vector.
        (cgraph_varpool_assemble_decl): Defer outputting debug info
        for local statics to...
        (cgraph_varpool_debug_local_statics): ... here.
        (cgraph_optimize): Use it.

        2006-05-12  Jakub Jelinek  <jakub@redhat.com>

        PR debug/26881
        * gcc.dg/debug/pr26881.c: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/debug/pr26881.c
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/Makefile.in
    branches/gcc-4_1-branch/gcc/cgraphunit.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug debug/26881] [4.1 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (23 preceding siblings ...)
  2006-10-17 11:31 ` rguenth at gcc dot gnu dot org
@ 2006-10-17 11:33 ` rguenth at gcc dot gnu dot org
  2006-10-30  7:32 ` sur at compart dot net
                   ` (5 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-10-17 11:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #23 from rguenth at gcc dot gnu dot org  2006-10-17 11:33 -------
*** Bug 27036 has been marked as a duplicate of this bug. ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tschwinge at gnu dot org


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


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

* [Bug debug/26881] [4.1 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (24 preceding siblings ...)
  2006-10-17 11:33 ` rguenth at gcc dot gnu dot org
@ 2006-10-30  7:32 ` sur at compart dot net
  2006-10-30 17:03 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: sur at compart dot net @ 2006-10-30  7:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #24 from sur at compart dot net  2006-10-30 07:32 -------
I get this very same issue also on sparc-solaris 2.10 with the mentioned source
and gcc v 4.1.1. So I hope 4.1.2 will fix this there too, but I get it there
only with option -ggdb, in case this helps anyway. Alternatively I could try
that patch on 4.1.1 myself... (I compiled that one myself)


-- 

sur at compart dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sur at compart dot net


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


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

* [Bug debug/26881] [4.1 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (25 preceding siblings ...)
  2006-10-30  7:32 ` sur at compart dot net
@ 2006-10-30 17:03 ` pinskia at gcc dot gnu dot org
  2006-10-30 18:23 ` sur at compart dot net
                   ` (3 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-30 17:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #25 from pinskia at gcc dot gnu dot org  2006-10-30 17:02 -------
*** Bug 29650 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |info at wolfsohn-software
                   |                            |dot de


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


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

* [Bug debug/26881] [4.1 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (26 preceding siblings ...)
  2006-10-30 17:03 ` pinskia at gcc dot gnu dot org
@ 2006-10-30 18:23 ` sur at compart dot net
  2007-02-02 11:18 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  30 siblings, 0 replies; 32+ messages in thread
From: sur at compart dot net @ 2006-10-30 18:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #26 from sur at compart dot net  2006-10-30 18:23 -------
It seemed too difficult and risky to me to resolve the numerous rejects of the
attached patch against the 4.1.1 release, so I checked out today via svn the
4.1 branch in current state (30.10.2006). After changing a mask in the gcc
directory Makefile created by configure (sed needed there ' instead of ", I
didn't check, if gsed would have sufficed, but this was with /usr/xpg4/bin/sed,
so it is SUS V3 conformant) I succeeded in compiling that one and it resolved
this issue for me indeed when using the option -ggdb --- and works also if not
using this option.


-- 


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


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

* [Bug debug/26881] [4.1 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (27 preceding siblings ...)
  2006-10-30 18:23 ` sur at compart dot net
@ 2007-02-02 11:18 ` rguenth at gcc dot gnu dot org
  2007-02-13  0:38 ` pinskia at gcc dot gnu dot org
  2007-03-07 10:09 ` rguenth at gcc dot gnu dot org
  30 siblings, 0 replies; 32+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-02-02 11:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #27 from rguenth at gcc dot gnu dot org  2007-02-02 11:18 -------
*** Bug 30671 has been marked as a duplicate of this bug. ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mansuk at gmail dot com


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


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

* [Bug debug/26881] [4.1 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (28 preceding siblings ...)
  2007-02-02 11:18 ` rguenth at gcc dot gnu dot org
@ 2007-02-13  0:38 ` pinskia at gcc dot gnu dot org
  2007-03-07 10:09 ` rguenth at gcc dot gnu dot org
  30 siblings, 0 replies; 32+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-13  0:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #28 from pinskia at gcc dot gnu dot org  2007-02-13 00:37 -------
*** Bug 30782 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rtpardavila at gmail dot com


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


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

* [Bug debug/26881] [4.1 Regression] internal compiler error in dwarf2out_finish
  2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
                   ` (29 preceding siblings ...)
  2007-02-13  0:38 ` pinskia at gcc dot gnu dot org
@ 2007-03-07 10:09 ` rguenth at gcc dot gnu dot org
  30 siblings, 0 replies; 32+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-03-07 10:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #29 from rguenth at gcc dot gnu dot org  2007-03-07 10:09 -------
*** Bug 31065 has been marked as a duplicate of this bug. ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at poradnik-
                   |                            |webmastera dot com


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


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

end of thread, other threads:[~2007-03-07 10:09 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-27  1:50 [Bug debug/26881] New: internal compiler error in dwarf2out_finish dbaron at dbaron dot org
2006-03-27  1:52 ` [Bug debug/26881] " dbaron at dbaron dot org
2006-03-27  1:56 ` [Bug debug/26881] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-03-27  1:57 ` pinskia at gcc dot gnu dot org
2006-03-27  2:08 ` pinskia at gcc dot gnu dot org
2006-03-27  8:17 ` rguenth at gcc dot gnu dot org
2006-04-06 16:21 ` pinskia at gcc dot gnu dot org
2006-04-16 13:07 ` couriousous at mandriva dot org
2006-04-16 19:10 ` mmitchel at gcc dot gnu dot org
2006-04-19 13:01 ` jakub at gcc dot gnu dot org
2006-04-30 14:31 ` hubicka at gcc dot gnu dot org
2006-05-05 12:26 ` jakub at gcc dot gnu dot org
2006-05-10 20:08 ` flash at pobox dot com
2006-05-25  2:47 ` mmitchel at gcc dot gnu dot org
2006-05-29  8:54 ` martin at mpa-garching dot mpg dot de
2006-07-14 12:26 ` falk at debian dot org
2006-08-07  8:02 ` hubicka at gcc dot gnu dot org
2006-08-07  9:48 ` stephan at s11n dot net
2006-08-18  4:20 ` pinskia at gcc dot gnu dot org
2006-08-20  9:14 ` rguenth at gcc dot gnu dot org
2006-08-20 12:47 ` hubicka at ucw dot cz
2006-08-24 13:31 ` hubicka at gcc dot gnu dot org
2006-10-14 16:49 ` [Bug debug/26881] [4.1 " tbm at cyrius dot com
2006-10-17 11:31 ` rguenth at gcc dot gnu dot org
2006-10-17 11:31 ` rguenth at gcc dot gnu dot org
2006-10-17 11:33 ` rguenth at gcc dot gnu dot org
2006-10-30  7:32 ` sur at compart dot net
2006-10-30 17:03 ` pinskia at gcc dot gnu dot org
2006-10-30 18:23 ` sur at compart dot net
2007-02-02 11:18 ` rguenth at gcc dot gnu dot org
2007-02-13  0:38 ` pinskia at gcc dot gnu dot org
2007-03-07 10:09 ` 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).