This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [PATCH] Sync libiberty with gcc


On Tue, 14 Oct 2014, Iain Buclaw wrote:

> The call to strtold is only needed to decode templates which have a
> floating point value encoded inside. This value may or may not have a
> greater than double precision.

But its precision may also be greater than that of long double on the 
host, if long double on the target has greater precision than long double 
on the host.  Likewise, its range may be greater than that of long double 
on the host.  So it would seem a lot more sensible just to produce a hex 
float value in your output without going through any decoding process at 
all (but if you do decode, host floating-point types should not be 
involved).

-- 
Joseph S. Myers
joseph@codesourcery.com


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