This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [LTO][PATCH] Fix long double precision problem


Doug Kwan (w) wrote:
> I want ot use DW_AT_bit_size to represent the precision of 80-bit
> extended floats, which are stored in
> 96-bit (12 bytes) locations. For complex 80-bit extended floats, the
> two 80-bits real and imaginary parts have padding between them.  The
> dwarf3 spec does not say if DW_AT_bit_size & DW_AT_bit_offset are for
> a contiguous chunk of bits but I am inclined to interpret this way.
> 
> If it is too confusing to use DW_AT_bit_size and DW_AT_bit_offset to
> represent 80-bit floats stored in 96-bit storage locations, we might
> add an extension to dwarf3.

I see.  Jim, as someone whose participated in DWARF standardization, do
you have an opinion about how these complex floats ought to be represented?

Doug, in the near term, I don't think we need to worry about the
padding.  We should just use DW_AT_bit_{size,offset} for floating-point
types.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]