<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 10, 2019 at 1:18 PM Robinson, Paul <<a href="mailto:paul.robinson@sony.com">paul.robinson@sony.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> Ah, thanks for the list - mostly I'm interested in cases where Clang's<br>
> output is not valid DWARFv5 when requested - the new features DWARFv5<br>
> enables/allows but doesn't require are lower priority to me. Which I<br>
> don't think too much is left - DWARFv5 loclists in split DWARF is one<br>
> I know of & might get to if someone else doesn't do it before me - I'm<br>
> currently improving loclist emission (quality of implementation - using<br>
> fewer address pool entries & just general code cleanup to share some of<br>
> teh implementation with rnglist emission, not a compliance issue)<br>
<br>
You might want to look at default location entry then; particularly if a <br>
variable moves around but has a stack home, it can reduce the number of <br>
entries and maybe eliminate some .debug_addr references.<br></blockquote><div><br>I don't think it'd reduce debug_addr references - I'm setting it up to only use the base address of the function start and everything's offset pairs from there, so loclists shouldn't create any addr entries, only using existing ones needed for the function's low_pc/CU's ranges, etc.<br><br>I don't know what our current variable location tracking would ever likely manage to preserve the location information enough for it to cover the whole scope (or at least not often) & then pick a default location as the most common used location across that scope. (I'm guessing almost any optimizations will cause some part of the address range of the enclosing scope to lose locations).<br><br>If we do actually hit that case (probably would be worth building a DWARF statistic (even a temporary one) that tests whether a location list describes the entire address range of the enclosing scope - I'm guessing that happens roughly never at the moment) we could look into improving the DWARF emission to be more compact by using the default.<br><br>- Dave<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
--paulr<br>
<br>
</blockquote></div></div>