This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Sync libiberty with gcc
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Iain Buclaw <ibuclaw at gdcproject dot org>
- Cc: Joel Brobecker <brobecker at adacore dot com>, <gdb-patches at sourceware dot org>
- Date: Tue, 14 Oct 2014 22:49:31 +0000
- Subject: Re: [PATCH] Sync libiberty with gcc
- Authentication-results: sourceware.org; auth=none
- References: <CABOHX+fvzPGoKSc6d_0xhQvhO5VHXUqM1ZSqmgSdAQzmPj-ZDA at mail dot gmail dot com> <20141014133804 dot GA9440 at adacore dot com> <CABOHX+dX+wbmti06qU5KmRsteFbFXE-MdUSAVWZfhKq4nGz=rQ at mail dot gmail dot com>
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