This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[rfc/patch] Eliminate HOST floating-point assumptions
- To: gdb-patches at sources dot redhat dot com
- Subject: [rfc/patch] Eliminate HOST floating-point assumptions
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Fri, 24 Aug 2001 00:10:32 -0400
Hello,
I've received only one comment (positive) about eliminating GDB's
assumption that the host has IEEE floating-point. Given this, I intend
committing the next patch in the next few days.
Andrew
2001-08-21 Andrew Cagney <ac131313@redhat.com>
* doublest.h (HOST_FLOAT_FORMAT): Delete macro.
(HOST_DOUBLE_FORMAT): Delete macro.
Index: doublest.h
===================================================================
RCS file: /cvs/src/src/gdb/doublest.h,v
retrieving revision 1.3
diff -p -r1.3 doublest.h
*** doublest.h 2001/08/12 01:45:49 1.3
--- doublest.h 2001/08/21 04:58:51
***************
*** 37,58 ****
extern const struct floatformat floatformat_unknown;
- #if HOST_BYTE_ORDER == BIG_ENDIAN
- #ifndef HOST_FLOAT_FORMAT
- #define HOST_FLOAT_FORMAT &floatformat_ieee_single_big
- #endif
- #ifndef HOST_DOUBLE_FORMAT
- #define HOST_DOUBLE_FORMAT &floatformat_ieee_double_big
- #endif
- #else /* LITTLE_ENDIAN */
- #ifndef HOST_FLOAT_FORMAT
- #define HOST_FLOAT_FORMAT &floatformat_ieee_single_little
- #endif
- #ifndef HOST_DOUBLE_FORMAT
- #define HOST_DOUBLE_FORMAT &floatformat_ieee_double_little
- #endif
- #endif
-
/* Use `long double' if the host compiler supports it. (Note that this is not
necessarily any longer than `double'. On SunOS/gcc, it's the same as
double.) This is necessary because GDB internally converts all floating
--- 37,42 ----