Jakub Jelinek wrote:
On Wed, Mar 09, 2016 at 01:24:37PM -0500, John DelSignore wrote:I agree completely with Jakub. Defining multiple "float" types that have varying byte-sizes, bit-sizes, and bit-offsets seems like a big mistake to me. I agree with you completely, I was just trying to keep my reply short (maybe too short). To answer your question, I believe: The way floats are stored in XMM registers is no different than the other cases you have mentioned. I think what you are saying, and I agree, is that the type of a variable is orthogonal to where (or how) the variable is stored. DWARF should not muddy the type entries with attributes that attempt to describe how a variable is stored somewhere. As I already said, the debugger has to know the ABI conventions for the target platforms it supports, and knowing how a float is stored in an XMM register, or a char is stored an x86_64 GPR, is part of the ABI specification. Cheers, John D. Jakub |
_______________________________________________ Dwarf-Discuss mailing list [email protected] http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org
