This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/49382] -O2 -g: DW_AT_location at the very first PC is already modified
- From: "jan.kratochvil at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 13 Jun 2011 19:53:02 +0000
- Subject: [Bug debug/49382] -O2 -g: DW_AT_location at the very first PC is already modified
- Auto-submitted: auto-generated
- References: <bug-49382-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49382
--- Comment #3 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-06-13 19:52:45 UTC ---
(In reply to comment #2)
> we could special case parameters (PARM_DECLs and vars with PARM_DECL
> DECL_ABSTRACT_ORIGIN) before the first insn
At least temporarily it would be needed to get the entry values working in more
cases. While some dwarflints may complain re-stating it is allowed by DWARF-4:
# A location list entry (but not a base address selection or end of list entry)
# whose beginning and ending addresses are equal has no effect because the size
# of the range covered by such an entry is zero.