<div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 16, 2026 at 11:17 AM Frank Ch. Eigler <<a href="mailto:fche@redhat.com" target="_blank">fche@redhat.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">Hi -<br>
<br>
> > That sounds like a quality of implementation issue.  Higher quality<br>
> > compilers accurately note the location of parameters, as they change<br>
> > within and after the prologue and other points in the function.  It<br>
> > is a location LIST after all.<br>
> <br>
> Ish. Certainly it's possible to do that - do you have pointers to any<br>
> compilers that do that? My experience with GCC and Clang at least has been<br>
> that there's (perhaps an undocumented) understanding that the locations are<br>
> only considered to be valid after the prologue/before the epilogue, and so<br>
> it's more efficient in terms of DWARF disk space to only describe that area.<br>
<br>
That experience may be dated somewhat. :-) GCC has been doing its best<br>
to produce detailed location lists throughout the function for many<br>
years.  Yeah it bloats location lists.  Try CFLAGS="-g -O2"; look up<br>
the history of CFLAGS=-fvar-tracking-assignments.<br></blockquote><div><br>Ah, I was thinking more of an -O0 build, for instance - where GCC doesn't produce a location that's valid in the prologue: <a href="https://godbolt.org/z/4z84cdsMK" target="_blank">https://godbolt.org/z/4z84cdsMK</a><br>Not sure of a great way to get GCC to still produce a prologue even in an optimized situation, but there's probably some way & that'd be interesting to see what it produces for locations. But, sure, as you say, potentially "quality of implementation" (more "difference in goals of implementation" might be the case).<br><br>I'd just say - my experience is that compilers aren't trying to meet the needs of describing the ABI in DWARF - so if that's what you're looking for, I think you'll be fighting an uphill battle.<br> </div></div></div>
</div>