public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/12389] New: ICE in gen_subprogram_die for nested function
@ 2003-09-24 18:09 rsandifo at gcc dot gnu dot org
  2003-09-24 18:27 ` [Bug debug/12389] " bangerth at dealii dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2003-09-24 18:09 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: ICE in gen_subprogram_die for nested function
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rsandifo at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,rsandifo at gcc dot gnu
                    dot org
GCC target triplet: i686-pc-linux-gnu

Sorry if this already a known problem!  I tried searching for it but
couldn't find anything.

The following test case:

int f1 (int y)
{
  int f2() { return y; }
  return f2();
}

causes an ICE on i686-pc-linux-gnu if compiled with -O2 -g:

/tmp/foo.c: In function `f2':

/tmp/foo.c:5: internal compiler error: in gen_subprogram_die, at dwarf2out.c:10614
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

It works OK if compiled with -O3 -g or with -O2 -fno-unit-at-a-time -g.

At a guess, I think that dwarf code is getting confused by the inlining
of functions that aren't marked !DECL_INLINE.  It'll be a few days
before I can look into much more though.


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

end of thread, other threads:[~2003-12-18 22:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-24 18:09 [Bug debug/12389] New: ICE in gen_subprogram_die for nested function rsandifo at gcc dot gnu dot org
2003-09-24 18:27 ` [Bug debug/12389] " bangerth at dealii dot org
2003-09-24 19:26 ` rsandifo at gcc dot gnu dot org
2003-09-24 23:17 ` [Bug debug/12389] [3.4 Regresson] " pinskia at gcc dot gnu dot org
2003-10-17  3:57 ` cgd at broadcom dot com
2003-10-22 12:04 ` cvs-commit at gcc dot gnu dot org
2003-10-22 17:14 ` pinskia at gcc dot gnu dot org
2003-10-24 19:04 ` cgd at broadcom dot com
2003-10-25  1:04 ` [Bug debug/12389] [3.4 Regresson] [testcase needed] " pinskia at gcc dot gnu dot org
2003-10-25  1:14 ` pinskia at gcc dot gnu dot org
2003-12-05  4:05 ` pinskia at gcc dot gnu dot org
2003-12-18 12:08 ` pinskia at gcc dot gnu dot org
2003-12-18 22:27 ` cvs-commit at gcc dot gnu dot org
2003-12-19  1:16 ` pinskia 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).