This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/65821] [5/6/7 regression] incorrect debug line # info for main
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 19 Dec 2016 13:04:26 +0000
- Subject: [Bug debug/65821] [5/6/7 regression] incorrect debug line # info for main
- Auto-submitted: auto-generated
- References: <bug-65821-4@http.gcc.gnu.org/bugzilla/>
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)?