aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-02-28 06:04:23 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-02-28 06:04:23 +0000
commitb30601cb28a62dee5579e2cffe2b2d02bd1e0a9d (patch)
tree44062c88dd09d4b8789861a45214800932afb5b4
parenteae3f093625e013ce71cbf1a26e047b416c42b22 (diff)
downloadgdb-b30601cb28a62dee5579e2cffe2b2d02bd1e0a9d.zip
gdb-b30601cb28a62dee5579e2cffe2b2d02bd1e0a9d.tar.gz
gdb-b30601cb28a62dee5579e2cffe2b2d02bd1e0a9d.tar.bz2
* config/m68k/tm-apollo68b.h: Remove HAVE_68881 define; it is
obsolete. * i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c, i386m3-nat.c, config/m68k/tm-m68k.h, i960-tdep.c config/i960/tm-i960.h, remote-nindy.c, config/m88k/tm-m88k.h, m88k-tdep.c: Use floatformat.h instead of ieee-float.h. * sparc-tdep.c: Remove now-obsolete ieee-float.h stuff * findvar.c: Update comment regarding ieee-float.h.
-rw-r--r--gdb/config/m68k/tm-apollo68b.h4
-rw-r--r--gdb/config/m68k/tm-m68k.h8
2 files changed, 3 insertions, 9 deletions
diff --git a/gdb/config/m68k/tm-apollo68b.h b/gdb/config/m68k/tm-apollo68b.h
index fd8fbfc..0e33df6 100644
--- a/gdb/config/m68k/tm-apollo68b.h
+++ b/gdb/config/m68k/tm-apollo68b.h
@@ -22,10 +22,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define BPT_VECTOR 0xb
-/* Assume we have a coprocessor. If we don't, it still shouldn't hurt */
-
-#define HAVE_68881 1
-
#include "m68k/tm-m68k.h"
#define FRAME_CHAIN_VALID(chain, thisframe) (chain != 0)
diff --git a/gdb/config/m68k/tm-m68k.h b/gdb/config/m68k/tm-m68k.h
index 9b830fd..f95a532 100644
--- a/gdb/config/m68k/tm-m68k.h
+++ b/gdb/config/m68k/tm-m68k.h
@@ -153,9 +153,7 @@ extern CORE_ADDR m68k_saved_pc_after_call PARAMS ((struct frame_info *));
#define REGISTER_CONVERTIBLE(N) (((unsigned)(N) - FP0_REGNUM) < 8)
-/* Put the declaration out here because if it's in the macros, PCC
- will complain. */
-extern const struct ext_format ext_format_68881;
+#include "floatformat.h"
/* Convert data from raw format for register REGNUM in buffer FROM
to virtual format with type TYPE in buffer TO. */
@@ -163,7 +161,7 @@ extern const struct ext_format ext_format_68881;
#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,TYPE,FROM,TO) \
{ \
double val; \
- ieee_extended_to_double (&ext_format_68881, (FROM), &val); \
+ floatformat_to_double (&floatformat_m68881_ext, (FROM), &val); \
store_floating ((TO), TYPE_LENGTH (TYPE), val); \
}
@@ -173,7 +171,7 @@ extern const struct ext_format ext_format_68881;
#define REGISTER_CONVERT_TO_RAW(TYPE,REGNUM,FROM,TO) \
{ \
double val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \
- double_to_ieee_extended (&ext_format_68881, &val, (TO)); \
+ floatformat_from_double (&floatformat_m68881_ext, &val, (TO)); \
}
/* Return the GDB type object for the "standard" data type