From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25059 invoked by alias); 14 Oct 2014 22:49:39 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 25048 invoked by uid 89); 14 Oct 2014 22:49:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 14 Oct 2014 22:49:37 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1XeAuL-0004bd-Bp from joseph_myers@mentor.com ; Tue, 14 Oct 2014 15:49:33 -0700 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.3.181.6; Tue, 14 Oct 2014 23:49:31 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.82) (envelope-from ) id 1XeAuJ-0001gH-1f; Tue, 14 Oct 2014 22:49:31 +0000 Date: Tue, 14 Oct 2014 22:49:00 -0000 From: "Joseph S. Myers" To: Iain Buclaw CC: Joel Brobecker , Subject: Re: [PATCH] Sync libiberty with gcc In-Reply-To: Message-ID: References: <20141014133804.GA9440@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2014-10/txt/msg00379.txt.bz2 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