Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Joseph S. Myers" <joseph@codesourcery.com>
To: Iain Buclaw <ibuclaw@gdcproject.org>
Cc: Joel Brobecker <brobecker@adacore.com>, <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Sync libiberty with gcc
Date: Tue, 14 Oct 2014 22:49:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.64.1410142246450.30087@digraph.polyomino.org.uk> (raw)
In-Reply-To: <CABOHX+dX+wbmti06qU5KmRsteFbFXE-MdUSAVWZfhKq4nGz=rQ@mail.gmail.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


      parent reply	other threads:[~2014-10-14 22:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-29 18:42 Iain Buclaw
2014-10-10 14:54 ` Pedro Alves
2014-10-11  9:08   ` Iain Buclaw
2014-10-14 13:38 ` Joel Brobecker
2014-10-14 13:58   ` Joel Brobecker
     [not found]   ` <CABOHX+dX+wbmti06qU5KmRsteFbFXE-MdUSAVWZfhKq4nGz=rQ@mail.gmail.com>
2014-10-14 22:49     ` Joseph S. Myers [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.1410142246450.30087@digraph.polyomino.org.uk \
    --to=joseph@codesourcery.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=ibuclaw@gdcproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox