From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3528 invoked by alias); 3 Dec 2003 18:57:00 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 3461 invoked from network); 3 Dec 2003 18:56:58 -0000 Received: from unknown (HELO mail.alinoe.com) (62.195.88.134) by sources.redhat.com with SMTP; 3 Dec 2003 18:56:58 -0000 Received: (qmail 31012 invoked by uid 500); 3 Dec 2003 18:56:57 -0000 Date: Wed, 03 Dec 2003 18:57:00 -0000 From: Carlo Wood To: Ian Lance Taylor Cc: gcc-patches@gcc.gnu.org, gdb-patches@sources.redhat.com Subject: Re: RFA: Support infinity, NaN, and denormalized numbers in floatformat.c Message-ID: <20031203185657.GA30735@alinoe.com> Mail-Followup-To: Ian Lance Taylor , gcc-patches@gcc.gnu.org, gdb-patches@sources.redhat.com References: <20031203181245.3896.qmail@gossamer.airs.com> <20031203183511.GA30132@alinoe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-SW-Source: 2003-12/txt/msg00089.txt.bz2 On Wed, Dec 03, 2003 at 01:44:28PM -0500, Ian Lance Taylor wrote: > literal, I can use the floatformat structures to pull it apart. I > then plan to output the literal as a C99 hex floating point constant. > (A couple of people suggested this approach, and I can't think of a > good reason to not do it.) I think they meant to use C99 hex as the base for a new mangling, and then print that more or less literally when demangling. That would avoid rounding on both ends (I understood that C99 corresponds exactly with the internal representation of floats by gcc anyway) and removes all target dependency. I disagree with this, but well - its not that important. [...] > This approach probably doesn't help you, since you probably don't want > to deal with the floatformat routines. They allocate memory - therefore prefer to simply output the mangled bit. After all,... [...] > I do think this is all kind of ridiculous, since I'm sure that nobody > uses floating point constants in template expressions in real life. Exactly what I've said several times :/. I think my last patch is my last word in the subject of demangling floats. I'll have another look iff a third party files a real-life complaint through GNATS, and not sooner. Thanks for your reply, Carlo