This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: RFA: gdbarch IEEE_FLOAT
- To: Jim Blandy <jimb at cygnus dot com>
- Subject: Re: RFA: gdbarch IEEE_FLOAT
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 12 Apr 2000 16:13:25 +1000
- CC: Andrew Cagney <cagney at cygnus dot com>, David Taylor <taylor at cygnus dot com>, gdb-patches at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <200004110302.WAA13962@zwingli.cygnus.com>
Jim Blandy wrote:
>
> The changes to the tm.h files are trivial, so I don't think this
> really needs approval from the various platform maintainers.
>
> 2000-04-10 Jim Blandy <jimb@redhat.com>
>
> Bring IEEE_FLOAT under gdbarch's control.
> * gdbarch.sh (IEEE_FLOAT): New entry.
> * gdbarch.c, gdbarch.h: Regenerated.
> * valprint.c (IEEE_FLOAT): Provide a default #definition for this.
> (print_floating): Use IEEE_FLOAT as if it were an expression; use
> the code specific to IEEE-format numbers whenever the value of
> IEEE_FLOAT is non-zero.
> * config/a29k/tm-a29k.h, config/alpha/tm-alpha.h,
> config/arc/tm-arc.h, config/arm/tm-arm.h, config/fr30/tm-fr30.h,
> config/h8300/tm-h8300.h, config/i386/tm-i386.h,
> config/i960/tm-i960.h, config/m88k/tm-m88k.h,
> config/mips/tm-mips.h, config/pa/tm-hppa.h,
> config/sparc/tm-sparc.h, config/delta/tm-delta.h,
> config/frv/tm-frv.h (IEEE_FLOAT): For all ports that #define
> IEEE_FLOAT, make sure they give it the value (1).
>
Ok with me.
BTW, the need to add the below is going away soon. I've pending
multi-arch patches that will provide this as a non- multi-arch default.
> +
> + /* Provide a default value for IEEE_FLOAT. */
> + #ifndef IEEE_FLOAT
> + #define IEEE_FLOAT (0)
> + #endif
> +
> +
Andrew