From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23114 invoked by alias); 1 May 2004 13:25:05 -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 23101 invoked from network); 1 May 2004 13:25:04 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 1 May 2004 13:25:04 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i41DP3KG018659; Sat, 1 May 2004 09:25:03 -0400 Received: from post-office.corp.redhat.com (post-office.corp.redhat.com [172.16.52.227]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i41DP3v04977; Sat, 1 May 2004 09:25:03 -0400 Received: from greed.delorie.com (dj.cipe.redhat.com [10.0.0.222]) by post-office.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i41DP2H01629; Sat, 1 May 2004 09:25:02 -0400 Received: from greed.delorie.com (localhost [127.0.0.1]) by greed.delorie.com (8.12.10/8.12.10) with ESMTP id i41DP02g031350; Sat, 1 May 2004 09:25:00 -0400 Received: (from dj@localhost) by greed.delorie.com (8.12.10/8.12.10/Submit) id i41DP0i7031346; Sat, 1 May 2004 09:25:00 -0400 Date: Sat, 01 May 2004 13:25:00 -0000 Message-Id: <200405011325.i41DP0i7031346@greed.delorie.com> From: DJ Delorie To: cagney@gnu.org CC: binutils@sources.redhat.com, gdb-patches@sources.redhat.com In-reply-to: <40939DD4.3000706@gnu.org> (message from Andrew Cagney on Sat, 01 May 2004 08:53:40 -0400) Subject: Re: [patch/rfc] Add host's floatformat References: <40939DD4.3000706@gnu.org> X-SW-Source: 2004-05/txt/msg00017.txt.bz2 > This patch adds the host's floatformat (when known) to floatformat.[hc]. Since we *are* the host, don't we *always* know what the host't float format is? I mean, we can just cast to float. But still, we should be able to auto-detect which floatformat is used at runtime, rather than guess in configure (and miss lots of host processors). We should be able to have a pre-compiled table of float constants and their hex representations, and just scan the table for bit equality to see which entries match. It might be a bit more complex to code the first time around, but it will be a lot less hackish in the long run (and maintenance-free :)