aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-08-12 03:19:22 +0000
committerAndrew Cagney <cagney@redhat.com>2001-08-12 03:19:22 +0000
commit5ea92dfe6a636f07dfb247509827780fe31f8075 (patch)
tree1297690db396bf2890eaf96cfffbbb3048c2eb66
parenta15525c16a5143284e86593e2c7ce722c6fdfe60 (diff)
downloadgdb-5ea92dfe6a636f07dfb247509827780fe31f8075.zip
gdb-5ea92dfe6a636f07dfb247509827780fe31f8075.tar.gz
gdb-5ea92dfe6a636f07dfb247509827780fe31f8075.tar.bz2
Convert some floatformat_{to,from}_double to floatformat_{to,from}_doublest.
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/config/i386/tm-symmetry.h8
-rw-r--r--gdb/config/m88k/tm-m88k.h8
3 files changed, 16 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2ed8cb0..6441d57 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,13 @@
2001-08-11 Andrew Cagney <ac131313@redhat.com>
+ * 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 <ac131313@redhat.com>
+
* config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
* mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and
sp_regnum.
diff --git a/gdb/config/i386/tm-symmetry.h b/gdb/config/i386/tm-symmetry.h
index 602568d..a335ba9 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 bb47fa0..f3afc9e 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