[clang] [llvm] [DebugInfo] Emit DW_AT_bit_size for _BitInt types and others (PR #164372)

David Stenberg via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 29 03:29:10 PDT 2025


dstenb wrote:

> Ping, does anyone have any thoughts on the endian-ness discussion? I think other than that point all current review questions have been addressed

Sorry, I'd want to try this on a publicly available big-endian target with GDB trunk, but I have not gotten to that yet. I have not gotten any wiser to what the DWARF standard actually intends.

I'd be fine with landing this without the endian-ness issue resolved. Perhaps you could add a note about in the commit message, and add TODOs about potentially emitting the `DW_AT_data_bit_offset` attribute for big-endian targets at the two points that the `DW_AT_bit_size` attribute is emitted?

https://github.com/llvm/llvm-project/pull/164372


More information about the cfe-commits mailing list