[Bug debug/51902] lexical_blocks inside inlined_subroutines generate duplicate debug_ranges

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 20 11:30:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51902

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #26385|0                           |1
        is obsolete|                            |

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-20 10:46:29 UTC ---
Created attachment 26391
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26391
gcc47-pr51902.patch

This updated patch does that (I actually managed to implement it without
any sort of extra hash table or array).  Fixes up the testcase, I wonder if I
can find a testcase where the supercontext doesn't have completely identical
range, but only tail of it (i.e. that nested block/inlined subroutine could
refer to a couple of tail elements in supercontext's range).
Mark, can you please look at this if it does the right thing you want from it?



More information about the Gcc-bugs mailing list