OCHyams wrote: Hi @dstenb thanks for helping out with this and taking a look.
Regarding endianness, I wonder if that's right. My impression is DWARF tries to leave some things up to the implementation based on the target. I'm not 100% sure on this, so if you are confident on this please do say so. But looking at a side-by-side BE and LE example of a bitfield https://godbolt.org/z/GEWcG1GYG GCC emits the same `DW_AT_data_bit_offset` for both. (I can't find a BE architecture / option for GCC that supports _BitInt, so I couldn't check what it does for those.) That suggests to me that the position of the bit_size data within the byte_size can probably reasonable be assumed based on the target endianess? As I said, not 100% sure on this one so would definitely appreciate additional input. https://github.com/llvm/llvm-project/pull/164372 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
