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