* config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
authorMark Kettenis <kettenis@gnu.org>
Sat, 17 Mar 2001 22:24:00 +0000 (22:24 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sat, 17 Mar 2001 22:24:00 +0000 (22:24 +0000)
no longer used.  Also remove associated FIXME.

gdb/ChangeLog
gdb/config/i386/tm-linux.h

index 269dea192ac61284e3c615ee58ade1f4e2aae6a1..b39a63e9d7f193da688acaea823a10d8d8e295e5 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-17  Mark Kettenis  <kettenis@gnu.org>
+
+       * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove.  It's
+       no longer used.  Also remove associated FIXME.
+
 2001-03-16  Andrew Cagney  <ac131313@redhat.com>
 
        * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch.  Do
index 269734f901e21be74a0a6fb149f3ce98018aa4dd..f72b3c982bb78b935b0ce6f3142042ed5c49fa5c 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions to target GDB to GNU/Linux on 386.
-   Copyright 1992, 1993, 1995, 1996, 1998, 1999, 2000
+   Copyright 1992, 1993, 1995, 1996, 1998, 1999, 2000, 2001
    Free Software Foundation, Inc.
 
    This file is part of GDB.
 extern struct link_map_offsets *i386_linux_svr4_fetch_link_map_offsets (void);
 #define SVR4_FETCH_LINK_MAP_OFFSETS() i386_linux_svr4_fetch_link_map_offsets ()
 
-/* FIXME: kettenis/2000-03-26: We should get rid of this last piece of
-   Linux-specific `long double'-support code, probably by adding code
-   to valprint.c:print_floating() to recognize various extended
-   floating-point formats.  */
-
-#if defined(HAVE_LONG_DOUBLE) && defined(HOST_I386)
-/* The host and target are i386 machines and the compiler supports
-   long doubles. Long doubles on the host therefore have the same
-   layout as a 387 FPU stack register. */
-
-#define TARGET_ANALYZE_FLOATING                                        \
-  do                                                           \
-    {                                                          \
-      unsigned expon;                                          \
-                                                               \
-      low = extract_unsigned_integer (valaddr, 4);             \
-      high = extract_unsigned_integer (valaddr + 4, 4);                \
-      expon = extract_unsigned_integer (valaddr + 8, 2);       \
-                                                               \
-      nonnegative = ((expon & 0x8000) == 0);                   \
-      is_nan = ((expon & 0x7fff) == 0x7fff)                    \
-       && ((high & 0x80000000) == 0x80000000)                  \
-       && (((high & 0x7fffffff) | low) != 0);                  \
-    }                                                          \
-  while (0)
-
-#endif
-
 /* The following works around a problem with /usr/include/sys/procfs.h  */
 #define sys_quotactl 1