This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/51902] lexical_blocks inside inlined_subroutines generate duplicate debug_ranges
- 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: Fri, 20 Jan 2012 13:31:04 +0000
- Subject: [Bug debug/51902] lexical_blocks inside inlined_subroutines generate duplicate debug_ranges
- Auto-submitted: auto-generated
- References: <bug-51902-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51902
--- Comment #3 from Mark Wielaard <mark at gcc dot gnu.org> 2012-01-20 13:31:04 UTC ---
(In reply to comment #2)
> Mark, can you please look at this if it does the right thing you want from it?
Yes, this seems to do what I was thinking of. And it works on my testcases.
It does a bit more by searching up the block supercontext and by trying to find
a partial range. I think it would be fine to look for and pick the first block
supercontext and only check the chains are equal (but haven't tried that yet).