aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.host
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-07-29 19:33:22 +0000
committerAndrew Cagney <cagney@redhat.com>2004-07-29 19:33:22 +0000
commitc35f4ffcade07bba900aa312c2d0c2242113c5d4 (patch)
treee390333b017573517e5a1a7e3fcb2700c655831b /gdb/configure.host
parent624a44a3c41144731bebbdbe1c3994ed868951e3 (diff)
downloadgdb-c35f4ffcade07bba900aa312c2d0c2242113c5d4.zip
gdb-c35f4ffcade07bba900aa312c2d0c2242113c5d4.tar.gz
gdb-c35f4ffcade07bba900aa312c2d0c2242113c5d4.tar.bz2
2004-07-29 Andrew Cagney <cagney@gnu.org>
* config/pa/xm-linux.h: Do not include "floatformat.h". (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT) (HOST_LONG_DOUBLE_FORMAT): Delete macros. * config/i386/xm-i386.h: Do not include "floatformat.h". (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT) (HOST_LONG_DOUBLE_FORMAT): Delete macros. * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT) (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and GDB_HOST_LONG_DOUBLE_FORMAT instead. * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT) (GDB_HOST_LONG_DOUBLE_FORMAT): Define. * configure, config.in: Regenerate. * configure.host (gdb_host_float_format, gdb_host_double_format) (gdb_host_long_double_format): Set according to the host.
Diffstat (limited to 'gdb/configure.host')
-rw-r--r--gdb/configure.host30
1 files changed, 28 insertions, 2 deletions
diff --git a/gdb/configure.host b/gdb/configure.host
index a2a8d5d..71436bf 100644
--- a/gdb/configure.host
+++ b/gdb/configure.host
@@ -2,8 +2,11 @@
# invoked from the autoconf generated configure script.
# This file sets the following shell variables:
-# gdb_host_cpu generic name of host's CPU
-# gdb_host name of GDB host definition to use
+# gdb_host_cpu generic name of host's CPU
+# gdb_host name of GDB host definition to use
+# gdb_host_float_format host's float floatformat, or 0
+# gdb_host_double_format host's double floatformat, or 0
+# gdb_host_long_double_format host's long double floatformat, or 0
# Map host cpu into the config cpu subdirectory name.
# The default is $host_cpu.
@@ -145,3 +148,26 @@ x86_64-*-openbsd*) gdb_host=obsd64 ;;
m32r*-*-linux*) gdb_host=linux ;;
esac
+
+
+
+# Map the host/cpu onto the floatformat correspondong to C's "float",
+# "double" and "long double" types.
+
+case "${host}" in
+i[34567]86-*-*)
+ gdb_host_float_format="&floatformat_ieee_single_little"
+ gdb_host_double_format="&floatformat_ieee_double_little"
+ gdb_host_long_double_format="&floatformat_i387_ext"
+ ;;
+hppa*-*-linux*)
+ gdb_host_float_format="&floatformat_ieee_single_big"
+ gdb_host_double_format="&floatformat_ieee_double_big"
+ gdb_host_long_double_format="&floatformat_ieee_double_big"
+ ;;
+*)
+ gdb_host_float_format=0
+ gdb_host_double_format=0
+ gdb_host_long_double_format=0
+ ;;
+esac