This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/48045] dwarf2out emits CU with DW_AT_stmt_list to empty line table
- From: "mark at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 9 Mar 2011 23:04:13 +0000
- Subject: [Bug debug/48045] dwarf2out emits CU with DW_AT_stmt_list to empty line table
- Auto-submitted: auto-generated
- References: <bug-48045-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48045
--- Comment #1 from Mark Wielaard <mark at gcc dot gnu.org> 2011-03-09 23:04:09 UTC ---
The previous patch is wrong, it should depend on either a .loc or a .line
output. I had misunderstood when the DW_AT_stmt_list was really necessary. Also
there was some debate on whether or not pointing to an empty line number table
was actually wrong. We might want to change dwarflint to just allow it. See the
discussion here:
https://fedorahosted.org/pipermail/elfutils-devel/2011-March/001840.html