From: Andrew Cagney Date: Sun, 12 Aug 2001 03:19:22 +0000 (+0000) Subject: Convert some floatformat_{to,from}_double to floatformat_{to,from}_doublest. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ea92dfe6a636f07dfb247509827780fe31f8075;p=binutils-gdb.git Convert some floatformat_{to,from}_double to floatformat_{to,from}_doublest. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2ed8cb09735..6441d573c34 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2001-08-11 Andrew Cagney + + * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_VIRTUAL): Make + val a DOUBLEST. Use floatformat_to_doublest. + (REGISTER_CONVERT_TO_RAW): Ditto. Use foatformat_from_doublest. + * config/m88k/tm-m88k.h (REGISTER_CONVERT_TO_VIRTUAL): Ditto. + (REGISTER_CONVERT_TO_RAW): Ditto. + 2001-08-11 Andrew Cagney * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete. diff --git a/gdb/config/i386/tm-symmetry.h b/gdb/config/i386/tm-symmetry.h index 602568d0219..a335ba92cf5 100644 --- a/gdb/config/i386/tm-symmetry.h +++ b/gdb/config/i386/tm-symmetry.h @@ -268,8 +268,8 @@ switch (regno) { \ #undef REGISTER_CONVERT_TO_VIRTUAL #define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,TYPE,FROM,TO) \ { \ - double val; \ - floatformat_to_double (&floatformat_i387_ext, (FROM), &val); \ + DOUBLEST val; \ + floatformat_to_doublest (&floatformat_i387_ext, (FROM), &val); \ store_floating ((TO), TYPE_LENGTH (TYPE), val); \ } @@ -279,8 +279,8 @@ switch (regno) { \ #undef REGISTER_CONVERT_TO_RAW #define REGISTER_CONVERT_TO_RAW(TYPE,REGNUM,FROM,TO) \ { \ - double val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \ - floatformat_from_double (&floatformat_i387_ext, &val, (TO)); \ + DOUBLEST val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \ + floatformat_from_doublest (&floatformat_i387_ext, &val, (TO)); \ } /* Return the GDB type object for the "standard" data type diff --git a/gdb/config/m88k/tm-m88k.h b/gdb/config/m88k/tm-m88k.h index bb47fa0df45..f3afc9e6f20 100644 --- a/gdb/config/m88k/tm-m88k.h +++ b/gdb/config/m88k/tm-m88k.h @@ -392,8 +392,8 @@ if (!target_is_m88110) \ #define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,TYPE,FROM,TO) \ { \ - double val; \ - floatformat_to_double (&floatformat_m88110_ext, (FROM), &val); \ + DOUBLEST val; \ + floatformat_to_doublest (&floatformat_m88110_ext, (FROM), &val); \ store_floating ((TO), TYPE_LENGTH (TYPE), val); \ } @@ -402,8 +402,8 @@ if (!target_is_m88110) \ #define REGISTER_CONVERT_TO_RAW(TYPE,REGNUM,FROM,TO) \ { \ - double val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \ - floatformat_from_double (&floatformat_m88110_ext, &val, (TO)); \ + DOUBLEST val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \ + floatformat_from_doublest (&floatformat_m88110_ext, &val, (TO)); \ } /* Return the GDB type object for the "standard" data type