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/65821] [5/6/7 regression] incorrect debug line # info for main


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65821

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The default arguments are evaluated in the caller even for non-inline
functions, for those we can hardly have any DW_AT_inline or
DW_TAG_inlined_subroutine just because of the arguments.
So, the question is, do we want for the debug experience have the location info
of the default parameters come from the location where the expression of the
default parameters appear in the source (that is what current gcc emits), or do
we want it to be overridden to the call location (that is pretty much what we
used to emit before)?

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