This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/37801] DWARF output for inlined functions doesn't always use DW_TAG_inlined_subroutine
- From: "jason at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Oct 2008 18:22:37 -0000
- Subject: [Bug debug/37801] DWARF output for inlined functions doesn't always use DW_TAG_inlined_subroutine
- References: <bug-37801-114@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jason at redhat dot com 2008-10-16 18:22 -------
Subject: Re: DWARF output for inlined functions doesn't
always use DW_TAG_inlined_subroutine
xuepeng dot guo at intel dot com wrote:
> Hello Jason, I posted the whole debug_info section of of the binary file of
> your example as below. I guess you mean that DW_TAG_lexical_block tags like
> those at <8c> and <8d> are unnecessary. We should avoid generating them if they
> contain nothing. Am I right?
No; they aren't empty, they contain a couple of variables. But they
come from an inlined function ("third"), and we shouldn't represent
inlined functions in the debug info for the abstract instance of an
inline function.
Jason
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37801