This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/37801] DWARF output for inlined functions doesn't always use DW_TAG_inlined_subroutine



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]