aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2000-04-14 19:14:19 +0000
committerJim Blandy <jimb@codesourcery.com>2000-04-14 19:14:19 +0000
commit7355ddbacef086a00575d289049611428fbf8087 (patch)
tree1bb11c0265fb71578fcf8ccb59331ecb4937999d /gdb/config
parent16c088d03772776d9305b5e3f447f6600727c4b8 (diff)
downloadgdb-7355ddbacef086a00575d289049611428fbf8087.zip
gdb-7355ddbacef086a00575d289049611428fbf8087.tar.gz
gdb-7355ddbacef086a00575d289049611428fbf8087.tar.bz2
Bring IEEE_FLOAT under gdbarch's control.
* gdbarch.sh (IEEE_FLOAT): New entry. * gdbarch.c, gdbarch.h: Regenerated. * valprint.c (IEEE_FLOAT): Provide a default #definition for this. (print_floating): Use IEEE_FLOAT as if it were an expression; use the code specific to IEEE-format numbers whenever the value of IEEE_FLOAT is non-zero. * config/a29k/tm-a29k.h, config/alpha/tm-alpha.h, config/arc/tm-arc.h, config/arm/tm-arm.h, config/fr30/tm-fr30.h, config/h8300/tm-h8300.h, config/i386/tm-i386.h, config/i960/tm-i960.h, config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h, config/sparc/tm-sparc.h, config/delta/tm-delta.h, config/frv/tm-frv.h (IEEE_FLOAT): For all ports that #define IEEE_FLOAT, make sure they give it the value (1).
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/a29k/tm-a29k.h2
-rw-r--r--gdb/config/alpha/tm-alpha.h2
-rw-r--r--gdb/config/arc/tm-arc.h2
-rw-r--r--gdb/config/arm/tm-arm.h2
-rw-r--r--gdb/config/fr30/tm-fr30.h2
-rw-r--r--gdb/config/h8300/tm-h8300.h2
-rw-r--r--gdb/config/h8500/tm-h8500.h2
-rw-r--r--gdb/config/i386/tm-i386.h2
-rw-r--r--gdb/config/i960/tm-i960.h2
-rw-r--r--gdb/config/m68k/tm-m68k.h2
-rw-r--r--gdb/config/m88k/tm-m88k.h2
-rw-r--r--gdb/config/mips/tm-mips.h2
-rw-r--r--gdb/config/pa/tm-hppa.h2
-rw-r--r--gdb/config/sh/tm-sh.h2
-rw-r--r--gdb/config/sparc/tm-sparc.h2
-rw-r--r--gdb/config/w65/tm-w65.h2
-rw-r--r--gdb/config/z8k/tm-z8k.h2
17 files changed, 17 insertions, 17 deletions
diff --git a/gdb/config/a29k/tm-a29k.h b/gdb/config/a29k/tm-a29k.h
index 25a5bea..7a884a4 100644
--- a/gdb/config/a29k/tm-a29k.h
+++ b/gdb/config/a29k/tm-a29k.h
@@ -31,7 +31,7 @@
#define TARGET_BYTE_ORDER BIG_ENDIAN
/* Floating point uses IEEE representations. */
-#define IEEE_FLOAT
+#define IEEE_FLOAT (1)
/* Recognize our magic number. */
#define BADMAG(x) ((x).f_magic != 0572)
diff --git a/gdb/config/alpha/tm-alpha.h b/gdb/config/alpha/tm-alpha.h
index d63dcc1..3755993 100644
--- a/gdb/config/alpha/tm-alpha.h
+++ b/gdb/config/alpha/tm-alpha.h
@@ -42,7 +42,7 @@ struct symbol;
#define TARGET_PTR_BIT 64
/* Floating point is IEEE compliant */
-#define IEEE_FLOAT
+#define IEEE_FLOAT (1)
/* Number of traps that happen between exec'ing the shell
* to run an inferior, and when we finally get to
diff --git a/gdb/config/arc/tm-arc.h b/gdb/config/arc/tm-arc.h
index 34fabaf..a6531a5 100644
--- a/gdb/config/arc/tm-arc.h
+++ b/gdb/config/arc/tm-arc.h
@@ -26,7 +26,7 @@
#define TARGET_BYTE_ORDER_SELECTABLE
/* We have IEEE floating point, if we have any float at all. */
-#define IEEE_FLOAT
+#define IEEE_FLOAT (1)
/* Offset from address of function to start of its code.
Zero on most machines. */
diff --git a/gdb/config/arm/tm-arm.h b/gdb/config/arm/tm-arm.h
index e64b776..ed8e80c 100644
--- a/gdb/config/arm/tm-arm.h
+++ b/gdb/config/arm/tm-arm.h
@@ -31,7 +31,7 @@ struct value;
#define TARGET_BYTE_ORDER_DEFAULT LITTLE_ENDIAN
/* IEEE format floating point. */
-#define IEEE_FLOAT
+#define IEEE_FLOAT (1)
#define TARGET_DOUBLE_FORMAT (target_byte_order == BIG_ENDIAN \
? &floatformat_ieee_double_big \
: &floatformat_ieee_double_littlebyte_bigword)
diff --git a/gdb/config/fr30/tm-fr30.h b/gdb/config/fr30/tm-fr30.h
index d289f6e..69c85aa 100644
--- a/gdb/config/fr30/tm-fr30.h
+++ b/gdb/config/fr30/tm-fr30.h
@@ -186,7 +186,7 @@ extern void fr30_store_return_value PARAMS ((struct type * type, char *valbuf));
#define TARGET_FR30
/* IEEE format floating point */
-#define IEEE_FLOAT
+#define IEEE_FLOAT (1)
/* Define other aspects of the stack frame. */
diff --git a/gdb/config/h8300/tm-h8300.h b/gdb/config/h8300/tm-h8300.h
index 44b5e0d..8ee6816 100644
--- a/gdb/config/h8300/tm-h8300.h
+++ b/gdb/config/h8300/tm-h8300.h
@@ -50,7 +50,7 @@ extern int h8300smode;
extern void h8300_init_extra_frame_info ();
-#define IEEE_FLOAT
+#define IEEE_FLOAT (1)
/* Define the bit, byte, and word ordering of the machine. */
#define TARGET_BYTE_ORDER BIG_ENDIAN
#undef TARGET_INT_BIT
diff --git a/gdb/config/h8500/tm-h8500.h b/gdb/config/h8500/tm-h8500.h
index eb21a5c..070ac27 100644
--- a/gdb/config/h8500/tm-h8500.h
+++ b/gdb/config/h8500/tm-h8500.h
@@ -22,7 +22,7 @@
#define GDB_TARGET_IS_H8500
-#define IEEE_FLOAT 1
+#define IEEE_FLOAT (1)
/* Define the bit, byte, and word ordering of the machine. */
diff --git a/gdb/config/i386/tm-i386.h b/gdb/config/i386/tm-i386.h
index bcb99fc..33cb7f6 100644
--- a/gdb/config/i386/tm-i386.h
+++ b/gdb/config/i386/tm-i386.h
@@ -44,7 +44,7 @@ struct type;
/* Used for example in valprint.c:print_floating() to enable checking
for NaN's */
-#define IEEE_FLOAT
+#define IEEE_FLOAT (1)
/* Number of traps that happen between exec'ing the shell to run an
inferior, and when we finally get to the inferior code. This is 2
diff --git a/gdb/config/i960/tm-i960.h b/gdb/config/i960/tm-i960.h
index 73bb8db..1c25118 100644
--- a/gdb/config/i960/tm-i960.h
+++ b/gdb/config/i960/tm-i960.h
@@ -40,7 +40,7 @@
/* We have IEEE floating point, if we have any float at all. */
-#define IEEE_FLOAT
+#define IEEE_FLOAT (1)
/* Offset from address of function to start of its code.
Zero on most machines. */
diff --git a/gdb/config/m68k/tm-m68k.h b/gdb/config/m68k/tm-m68k.h
index c3574ee..03cf9b3 100644
--- a/gdb/config/m68k/tm-m68k.h
+++ b/gdb/config/m68k/tm-m68k.h
@@ -20,7 +20,7 @@
/* Generic 68000 stuff, to be included by other tm-*.h files. */
-#define IEEE_FLOAT 1
+#define IEEE_FLOAT (1)
/* Define the bit, byte, and word ordering of the machine. */
#define TARGET_BYTE_ORDER BIG_ENDIAN
diff --git a/gdb/config/m88k/tm-m88k.h b/gdb/config/m88k/tm-m88k.h
index 1acb83e..6effedc 100644
--- a/gdb/config/m88k/tm-m88k.h
+++ b/gdb/config/m88k/tm-m88k.h
@@ -43,7 +43,7 @@
init_extra_frame_info (fromleaf, fi)
extern void init_extra_frame_info ();
-#define IEEE_FLOAT
+#define IEEE_FLOAT (1)
/* Offset from address of function to start of its code.
Zero on most machines. */
diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h
index 3b8330f..2f52fbe 100644
--- a/gdb/config/mips/tm-mips.h
+++ b/gdb/config/mips/tm-mips.h
@@ -58,7 +58,7 @@ struct value;
#endif
/* Floating point is IEEE compliant */
-#define IEEE_FLOAT
+#define IEEE_FLOAT (1)
/* The name of the usual type of MIPS processor that is in the target
system. */
diff --git a/gdb/config/pa/tm-hppa.h b/gdb/config/pa/tm-hppa.h
index 9307fa5..975820a 100644
--- a/gdb/config/pa/tm-hppa.h
+++ b/gdb/config/pa/tm-hppa.h
@@ -53,7 +53,7 @@ struct inferior_status;
/* Watch out for NaNs */
-#define IEEE_FLOAT
+#define IEEE_FLOAT (1)
/* On the PA, any pass-by-value structure > 8 bytes is actually
passed via a pointer regardless of its type or the compiler
diff --git a/gdb/config/sh/tm-sh.h b/gdb/config/sh/tm-sh.h
index a336713..ad26ec1 100644
--- a/gdb/config/sh/tm-sh.h
+++ b/gdb/config/sh/tm-sh.h
@@ -27,7 +27,7 @@ struct type;
#define GDB_TARGET_IS_SH
-#define IEEE_FLOAT 1
+#define IEEE_FLOAT (1)
/* Define the bit, byte, and word ordering of the machine. */
diff --git a/gdb/config/sparc/tm-sparc.h b/gdb/config/sparc/tm-sparc.h
index 5419ecb..29cf746 100644
--- a/gdb/config/sparc/tm-sparc.h
+++ b/gdb/config/sparc/tm-sparc.h
@@ -28,7 +28,7 @@ struct value;
#define TARGET_BYTE_ORDER BIG_ENDIAN
/* Floating point is IEEE compatible. */
-#define IEEE_FLOAT
+#define IEEE_FLOAT (1)
/* If an argument is declared "register", Sun cc will keep it in a register,
never saving it onto the stack. So we better not believe the "p" symbol
diff --git a/gdb/config/w65/tm-w65.h b/gdb/config/w65/tm-w65.h
index b1fe4ed..c8da6bf 100644
--- a/gdb/config/w65/tm-w65.h
+++ b/gdb/config/w65/tm-w65.h
@@ -22,7 +22,7 @@
#define GDB_TARGET_IS_W65
-#define IEEE_FLOAT 1
+#define IEEE_FLOAT (1)
/* Define the bit, byte, and word ordering of the machine. */
diff --git a/gdb/config/z8k/tm-z8k.h b/gdb/config/z8k/tm-z8k.h
index f781e0a..9cc12ec 100644
--- a/gdb/config/z8k/tm-z8k.h
+++ b/gdb/config/z8k/tm-z8k.h
@@ -18,7 +18,7 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#define IEEE_FLOAT 1
+#define IEEE_FLOAT (1)
#undef TARGET_INT_BIT
#undef TARGET_LONG_BIT