public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/14114] New: ICE in gen_subprogram_die
@ 2004-02-11 20:06 gcc-bugzilla at gcc dot gnu dot org
  2004-02-11 20:47 ` [Bug debug/14114] [3.4/3.5 Regression] [unit-at-a-time] " pinskia at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2004-02-11 20:06 UTC (permalink / raw)
  To: gcc-bugs


gcc crashes compiling the C code below, if both debugging and optimization
are on:

$ ./cc1 x.c -quiet -g -O2
x.c: In function `a':
x.c:5: internal compiler error: in gen_subprogram_die, at dwarf2out.c:10696
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$
[sss@karma gcc]
It's tripping over this abort in gen_subprogram_die:

	  /* ??? This can happen if there is a bug in the program, for
	     instance, if it has duplicate function definitions.  Ideally,
	     we should detect this case and ignore it.  For now, if we have
	     already reported an error, any error at all, then assume that
	     we got here because of an input error, not a dwarf2 bug.  */
	  if (errorcount)
	    return;
	  abort ();

Environment:
System: Linux karma 2.6.1 #10 Tue Feb 10 04:31:35 EST 2004 i686 i686 i386 GNU/Linux
Architecture: i686

	<machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure --prefix=/usr/local/gcc --enable-threads=posix --enable-long-long --enable-languages=c,c++,f77

How-To-Repeat:

Compile with -g -O2:

---------------------------------------
void a()
{
  void c();
  c();
}

void b()
{
  void c();
}

void c() {}
---------------------------------------
------- Additional Comments From snyder at fnal dot gov  2004-02-11 20:06 -------
Fix:
	<how to correct or work around the problem, if known (multiple lines)>

-- 
           Summary: ICE in gen_subprogram_die
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: snyder at fnal dot gov
                CC: gcc-bugs at gcc dot gnu 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=14114


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

end of thread, other threads:[~2004-03-23 23:54 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-11 20:06 [Bug debug/14114] New: ICE in gen_subprogram_die gcc-bugzilla at gcc dot gnu dot org
2004-02-11 20:47 ` [Bug debug/14114] [3.4/3.5 Regression] [unit-at-a-time] " pinskia at gcc dot gnu dot org
2004-02-11 20:53 ` pinskia at gcc dot gnu dot org
2004-02-13 15:11 ` pinskia at gcc dot gnu dot org
2004-03-01 20:27 ` ebotcazou at gcc dot gnu dot org
2004-03-06  9:23 ` [Bug c/14114] " ebotcazou at gcc dot gnu dot org
2004-03-06  9:29 ` cvs-commit at gcc dot gnu dot org
2004-03-06  9:39 ` cvs-commit at gcc dot gnu dot org
2004-03-06  9:46 ` [Bug c/14114] [3.5 Regression] " ebotcazou at gcc dot gnu dot org
2004-03-06 10:09 ` ebotcazou at gcc dot gnu dot org
2004-03-07  0:39 ` cvs-commit at gcc dot gnu dot org
2004-03-11  6:32 ` [Bug c/14114] [3.4/3.5 Regression] [unit-at-a-time] " ebotcazou at gcc dot gnu dot org
2004-03-13 15:44 ` mark at codesourcery dot com
2004-03-13 19:05 ` cvs-commit at gcc dot gnu dot org
2004-03-13 19:08 ` [Bug c/14114] 3.5 " ebotcazou at gcc dot gnu dot org
2004-03-15 15:31 ` [Bug c/14114] [3.5 " pinskia at gcc dot gnu dot org
2004-03-16 20:57 ` zack at gcc dot gnu dot org
2004-03-23 23:54 ` zack 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).