public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861
@ 2004-07-22 20:55 q at ping dot be
  2004-07-22 21:14 ` [Bug debug/16676] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: q at ping dot be @ 2004-07-22 20:55 UTC (permalink / raw)
  To: gcc-bugs

I get an internal compiler error using the debian 3.4.1-2 version.  I don't get 
it using 3.3.4.  I also get the same error using the gcc snapsnot (3.5.0 
20040717)

I get the same error on i386 and x86_64/amd64.

I only get the error when using -g1, using -g0 it works.  It does not depend on 
the -O level used.

I've also filed a bug at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=260710
which has a preprocessed file attached to it.

Kurt

-- 
           Summary: ICE in gen_subprogram_die, at dwarf2out.c:10861
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: q at ping dot be
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die, at dwarf2out.c:10861
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
@ 2004-07-22 21:14 ` pinskia at gcc dot gnu dot org
  2004-07-22 21:20 ` bangerth at dealii dot org
                   ` (20 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-22 21:14 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
            Summary|ICE in gen_subprogram_die,  |[3.4/3.5 Regression] ICE in
                   |at dwarf2out.c:10861        |gen_subprogram_die, at
                   |                            |dwarf2out.c:10861
   Target Milestone|---                         |3.4.2


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


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

* [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die, at dwarf2out.c:10861
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
  2004-07-22 21:14 ` [Bug debug/16676] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-07-22 21:20 ` bangerth at dealii dot org
  2004-07-22 21:21 ` pinskia at gcc dot gnu dot org
                   ` (19 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: bangerth at dealii dot org @ 2004-07-22 21:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-07-22 21:20 -------
Confirmed. I'll try to shrink it. 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-07-22 21:20:35
               date|                            |


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


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

* [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die, at dwarf2out.c:10861
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
  2004-07-22 21:14 ` [Bug debug/16676] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
  2004-07-22 21:20 ` bangerth at dealii dot org
@ 2004-07-22 21:21 ` pinskia at gcc dot gnu dot org
  2004-07-22 21:24 ` [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die with nested functions bangerth at dealii dot org
                   ` (18 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-22 21:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-22 21:21 -------
Confirmed, here is the reduced source:
int t()
{
  static int g() {return 0;}
  return g();
}

I hate nested functions.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2004-07-22 21:20:35         |2004-07-22 21:21:08
               date|                            |


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


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

* [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die with nested functions
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (2 preceding siblings ...)
  2004-07-22 21:21 ` pinskia at gcc dot gnu dot org
@ 2004-07-22 21:24 ` bangerth at dealii dot org
  2004-07-22 21:26 ` bangerth at dealii dot org
                   ` (17 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: bangerth at dealii dot org @ 2004-07-22 21:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-07-22 21:24 -------
That one was actually easy: 
------------------- 
void foo (void) { 
  void nested () {} 
} 
------------------- 
 
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/gcc -g1 -c x.i  
x.i: In function `foo': 
x.i:3: internal compiler error: in gen_subprogram_die, at dwarf2out.c:10831 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |3.4.0 3.5.0
      Known to work|                            |3.2.3 3.3.4
            Summary|[3.4/3.5 Regression] ICE in |[3.4/3.5 Regression] ICE in
                   |gen_subprogram_die, at      |gen_subprogram_die with
                   |dwarf2out.c:10861           |nested functions


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


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

* [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die with nested functions
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (3 preceding siblings ...)
  2004-07-22 21:24 ` [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die with nested functions bangerth at dealii dot org
@ 2004-07-22 21:26 ` bangerth at dealii dot org
  2004-07-22 21:42 ` [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die, at dwarf2out.c:10861 pinskia at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: bangerth at dealii dot org @ 2004-07-22 21:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-07-22 21:26 -------
Oh, I see Andrew found it easy, too :-) Too bad to be beaten by a mere 
3 minutes... 

-- 


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


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

* [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die, at dwarf2out.c:10861
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (4 preceding siblings ...)
  2004-07-22 21:26 ` bangerth at dealii dot org
@ 2004-07-22 21:42 ` pinskia at gcc dot gnu dot org
  2004-08-25 14:08 ` [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die with nested functions reichelt at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-22 21:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-22 21:42 -------
: Search converges between 2003-04-11-trunk (#226) and 2003-04-12-trunk (#227).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|3.4.0 3.5.0                 |
      Known to work|3.2.3 3.3.4                 |
            Summary|[3.4/3.5 Regression] ICE in |[3.4/3.5 Regression] ICE in
                   |gen_subprogram_die with     |gen_subprogram_die, at
                   |nested functions            |dwarf2out.c:10861


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


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

* [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die with nested functions
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (5 preceding siblings ...)
  2004-07-22 21:42 ` [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die, at dwarf2out.c:10861 pinskia at gcc dot gnu dot org
@ 2004-08-25 14:08 ` reichelt at gcc dot gnu dot org
  2004-08-29 18:12 ` mmitchel at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-25 14:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-08-25 14:08 -------
Zack, the regression was introduced by your patch
http://gcc.gnu.org/ml/gcc-cvs/2003-04/msg00555.html

Could you please have a look?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zack at gcc dot gnu dot org,
                   |                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored


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


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

* [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die with nested functions
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (6 preceding siblings ...)
  2004-08-25 14:08 ` [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die with nested functions reichelt at gcc dot gnu dot org
@ 2004-08-29 18:12 ` mmitchel at gcc dot gnu dot org
  2004-08-29 18:16 ` mmitchel at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-29 18:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-08-29 18:12 -------
Postponed until GCC 3.4.3.

-- 


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


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

* [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die with nested functions
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (7 preceding siblings ...)
  2004-08-29 18:12 ` mmitchel at gcc dot gnu dot org
@ 2004-08-29 18:16 ` mmitchel at gcc dot gnu dot org
  2004-09-22  9:13 ` [Bug debug/16676] [3.4 " reichelt at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-29 18:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-08-29 18:14 -------
Postponed until GCC 3.4.3.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.2                       |3.4.3


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


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

* [Bug debug/16676] [3.4 Regression] ICE in gen_subprogram_die with nested functions
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (8 preceding siblings ...)
  2004-08-29 18:16 ` mmitchel at gcc dot gnu dot org
@ 2004-09-22  9:13 ` reichelt at gcc dot gnu dot org
  2004-09-22 11:57 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-09-22  9:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-09-22 09:13 -------
Fixed on mainline by Jan's patch for PR 16460
http://gcc.gnu.org/ml/gcc-cvs/2004-09/msg00904.html

Jan, do you think the relevant stuff can be backported to 3.4?


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu dot
                   |                            |org
      Known to fail|3.4.0 4.0                   |3.4.0
      Known to work|3.2.3 3.3.4                 |3.2.3 3.3.4 4.0.0
            Summary|[3.4/4.0 Regression] ICE in |[3.4 Regression] ICE in
                   |gen_subprogram_die with     |gen_subprogram_die with
                   |nested functions            |nested functions


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


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

* [Bug debug/16676] [3.4 Regression] ICE in gen_subprogram_die with nested functions
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (9 preceding siblings ...)
  2004-09-22  9:13 ` [Bug debug/16676] [3.4 " reichelt at gcc dot gnu dot org
@ 2004-09-22 11:57 ` pinskia at gcc dot gnu dot org
  2004-11-01  0:46 ` mmitchel at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-22 11:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-22 11:57 -------
It is not feasable to backport his fix as uses the unnessted functions which were added for tree-ssa.

-- 


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


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

* [Bug debug/16676] [3.4 Regression] ICE in gen_subprogram_die with nested functions
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (10 preceding siblings ...)
  2004-09-22 11:57 ` pinskia at gcc dot gnu dot org
@ 2004-11-01  0:46 ` mmitchel at gcc dot gnu dot org
  2005-05-09  0:04 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-01  0:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-11-01 00:45 -------
Postponed until GCC 3.4.4.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.3                       |3.4.4


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


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

* [Bug debug/16676] [3.4 Regression] ICE in gen_subprogram_die with nested functions
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (11 preceding siblings ...)
  2004-11-01  0:46 ` mmitchel at gcc dot gnu dot org
@ 2005-05-09  0:04 ` pinskia at gcc dot gnu dot org
  2005-05-09  0:30 ` [Bug debug/16676] [3.4 Regression] ICE with nested functions and -g1, blocks glibc benh at kernel dot crashing dot org
                   ` (8 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-09  0:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-09 00:03 -------
*** Bug 21457 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |benh at kernel dot crashing
                   |                            |dot org


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


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

* [Bug debug/16676] [3.4 Regression] ICE with nested functions and -g1, blocks glibc
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (12 preceding siblings ...)
  2005-05-09  0:04 ` pinskia at gcc dot gnu dot org
@ 2005-05-09  0:30 ` benh at kernel dot crashing dot org
  2005-05-09  3:30 ` [Bug c/16676] " pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: benh at kernel dot crashing dot org @ 2005-05-09  0:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From benh at kernel dot crashing dot org  2005-05-09 00:29 -------
Note that the use of -g1 on glibc NPTL build is a debian rule, I don't know if
anybody else does that and I don't know why they do that, some obscure comment
seem to imply it is to get unwind informations.


-- 


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


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

* [Bug c/16676] [3.4 Regression] ICE with nested functions and -g1, blocks glibc
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (13 preceding siblings ...)
  2005-05-09  0:30 ` [Bug debug/16676] [3.4 Regression] ICE with nested functions and -g1, blocks glibc benh at kernel dot crashing dot org
@ 2005-05-09  3:30 ` pinskia at gcc dot gnu dot org
  2005-05-09  7:07 ` giovannibajo at libero dot it
                   ` (6 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-09  3:30 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
          Component|debug                       |c


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


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

* [Bug c/16676] [3.4 Regression] ICE with nested functions and -g1, blocks glibc
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (14 preceding siblings ...)
  2005-05-09  3:30 ` [Bug c/16676] " pinskia at gcc dot gnu dot org
@ 2005-05-09  7:07 ` giovannibajo at libero dot it
  2005-05-09  7:11 ` benh at kernel dot crashing dot org
                   ` (5 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: giovannibajo at libero dot it @ 2005-05-09  7:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2005-05-09 07:07 -------
Zack, this is a regression of part of your c-decl stuff. Can you possibly give 
it a look? It breaks builds of glibc on primary platforms.

-- 


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


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

* [Bug c/16676] [3.4 Regression] ICE with nested functions and -g1, blocks glibc
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (15 preceding siblings ...)
  2005-05-09  7:07 ` giovannibajo at libero dot it
@ 2005-05-09  7:11 ` benh at kernel dot crashing dot org
  2005-05-10  0:02 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: benh at kernel dot crashing dot org @ 2005-05-09  7:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From benh at kernel dot crashing dot org  2005-05-09 07:11 -------
Ben Elliston just produced a patch for it that I tested. It fixed building of
glibc on debian powerpc with -g1 (used by debian rules for nptl).

The patch is on it's way to the patch list (which didn't catch up yet it seems).
The patch is very simple, it just causes gcc to emit more debug infos in the
case of nested functions (like the -g2 case) instead of trying to be smart.

-- 


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


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

* [Bug c/16676] [3.4 Regression] ICE with nested functions and -g1, blocks glibc
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (16 preceding siblings ...)
  2005-05-09  7:11 ` benh at kernel dot crashing dot org
@ 2005-05-10  0:02 ` cvs-commit at gcc dot gnu dot org
  2005-05-10  1:24 ` bje at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-10  0:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-10 00:02 -------
Subject: Bug 16676

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	bje@gcc.gnu.org	2005-05-10 00:01:46

Modified files:
	gcc            : ChangeLog dwarf2out.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg/debug: pr16676.c 

Log message:
	PR debug/16676
	* dwarf2out.c (dwarf2out_decl): Always set context_die to NULL,
	even when debug_info_level is DINFO_LEVEL_TERSE.
	
	[testsuite]
	* gcc.dg/debug/pr16676.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.858&r2=2.2326.2.859
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/dwarf2out.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.478.2.16&r2=1.478.2.17
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.392&r2=1.3389.2.393
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/debug/pr16676.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

* [Bug c/16676] [3.4 Regression] ICE with nested functions and -g1, blocks glibc
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (17 preceding siblings ...)
  2005-05-10  0:02 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-10  1:24 ` bje at gcc dot gnu dot org
  2005-05-25  9:47 ` reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: bje at gcc dot gnu dot org @ 2005-05-10  1:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bje at gcc dot gnu dot org  2005-05-10 01:24 -------
Patch approved by rth and committed.

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


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


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

* [Bug c/16676] [3.4 Regression] ICE with nested functions and -g1, blocks glibc
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (18 preceding siblings ...)
  2005-05-10  1:24 ` bje at gcc dot gnu dot org
@ 2005-05-25  9:47 ` reichelt at gcc dot gnu dot org
  2005-07-15 22:02 ` pinskia at gcc dot gnu dot org
  2005-09-09 10:32 ` rguenth at gcc dot gnu dot org
  21 siblings, 0 replies; 23+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-05-25  9:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-05-25 09:36 -------
Ben, your patch doesn't really solve the problem.
I still get the ICE on the 3.4 branch when I compile the testcase with -g1.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bje at gcc dot gnu dot org
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |
   Target Milestone|3.4.4                       |3.4.5


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


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

* [Bug c/16676] [3.4 Regression] ICE with nested functions and -g1, blocks glibc
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (19 preceding siblings ...)
  2005-05-25  9:47 ` reichelt at gcc dot gnu dot org
@ 2005-07-15 22:02 ` pinskia at gcc dot gnu dot org
  2005-09-09 10:32 ` rguenth at gcc dot gnu dot org
  21 siblings, 0 replies; 23+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-15 22:02 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEW


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


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

* [Bug c/16676] [3.4 Regression] ICE with nested functions and -g1, blocks glibc
  2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
                   ` (20 preceding siblings ...)
  2005-07-15 22:02 ` pinskia at gcc dot gnu dot org
@ 2005-09-09 10:32 ` rguenth at gcc dot gnu dot org
  21 siblings, 0 replies; 23+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-09-09 10:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-09-09 10:31 -------
As this _only_ happens with -O1 -g1 (not -O2 -g1, nor -O1 -g) this is surely not
critical (anymore anyways).  Re-confirmed on 3.4.4 though.  Also this is likely
not to be fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
      Known to fail|3.4.0                       |3.4.0 3.4.4
   Last reconfirmed|2005-09-04 18:20:27         |2005-09-09 10:31:38
               date|                            |


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


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

end of thread, other threads:[~2005-09-09 10:32 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-22 20:55 [Bug debug/16676] New: ICE in gen_subprogram_die, at dwarf2out.c:10861 q at ping dot be
2004-07-22 21:14 ` [Bug debug/16676] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-07-22 21:20 ` bangerth at dealii dot org
2004-07-22 21:21 ` pinskia at gcc dot gnu dot org
2004-07-22 21:24 ` [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die with nested functions bangerth at dealii dot org
2004-07-22 21:26 ` bangerth at dealii dot org
2004-07-22 21:42 ` [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die, at dwarf2out.c:10861 pinskia at gcc dot gnu dot org
2004-08-25 14:08 ` [Bug debug/16676] [3.4/3.5 Regression] ICE in gen_subprogram_die with nested functions reichelt at gcc dot gnu dot org
2004-08-29 18:12 ` mmitchel at gcc dot gnu dot org
2004-08-29 18:16 ` mmitchel at gcc dot gnu dot org
2004-09-22  9:13 ` [Bug debug/16676] [3.4 " reichelt at gcc dot gnu dot org
2004-09-22 11:57 ` pinskia at gcc dot gnu dot org
2004-11-01  0:46 ` mmitchel at gcc dot gnu dot org
2005-05-09  0:04 ` pinskia at gcc dot gnu dot org
2005-05-09  0:30 ` [Bug debug/16676] [3.4 Regression] ICE with nested functions and -g1, blocks glibc benh at kernel dot crashing dot org
2005-05-09  3:30 ` [Bug c/16676] " pinskia at gcc dot gnu dot org
2005-05-09  7:07 ` giovannibajo at libero dot it
2005-05-09  7:11 ` benh at kernel dot crashing dot org
2005-05-10  0:02 ` cvs-commit at gcc dot gnu dot org
2005-05-10  1:24 ` bje at gcc dot gnu dot org
2005-05-25  9:47 ` reichelt at gcc dot gnu dot org
2005-07-15 22:02 ` pinskia at gcc dot gnu dot org
2005-09-09 10:32 ` 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).