This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfc/rfa] Almost eliminate HOST_{FLOAT,DOUBLE,...}_FORMAT
- To: Andrew Cagney <ac131313 at cygnus dot com>, gdb-patches at sources dot redhat dot com
- Subject: Re: [rfc/rfa] Almost eliminate HOST_{FLOAT,DOUBLE,...}_FORMAT
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Fri, 29 Jun 2001 13:48:58 -0700
- References: <3B3CB989.1000706@cygnus.com>
On Jun 29, 1:23pm, Andrew Cagney wrote:
> This patch changes GDB so that, if the host configury didn't specify the
> floating point format, it will fall back immediatly to floatformat_*().
> Previously, GDB would assume that the HOST had IEEE FP and try to use
> that.
>
> For hosts that don't specify a HOST_*_FORMAT, this will mean a loss of
> FP precision when using GDB :-/
Are you suggesting that hosts should define HOST_*_FORMAT? Or should
we attempt to eliminate the HOST_*_FORMAT macros entirely?
(The only HOST_*_FORMAT macro currently defined is HOST_LONG_DOUBLE_FORMAT
and it is only defined by some i386 hosts.)
BTW, you'll need to address the use of HOST_FLOAT_FORMAT in
arm_linux_push_arguments() in arm-linux-tdep.c or else that file
won't compile any longer after eliminating the defines from defs.h.
Kevin