* config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
authorMark Kettenis <kettenis@gnu.org>
Fri, 14 Jun 2002 21:17:28 +0000 (21:17 +0000)
committerMark Kettenis <kettenis@gnu.org>
Fri, 14 Jun 2002 21:17:28 +0000 (21:17 +0000)
TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
(i386_gdbarch_init): Initialize long_double_format and long_double
bit.

gdb/ChangeLog
gdb/config/i386/tm-i386.h
gdb/i386-tdep.c

index dfe01b916f569bb4b0bb452f5ff8437769ce11a8..afdb88ee5a923bb28eadd9ca42b77759ffb75b3f 100644 (file)
@@ -1,5 +1,10 @@
 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
 
+       * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
+       TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
+       (i386_gdbarch_init): Initialize long_double_format and long_double
+       bit.
+
        * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
        i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
        Move these to ...
index 8fae6104c529f5c64d2947fe5ddb3feb04b17c5a..c96c792624670e97f91a40f7ae8bee7e234ff208 100644 (file)
@@ -32,19 +32,6 @@ struct frame_saved_regs;
 struct value;
 struct type;
 
-/* The format used for `long double' on almost all i386 targets is the
-   i387 extended floating-point format.  In fact, of all targets in the
-   GCC 2.95 tree, only OSF/1 does it different, and insists on having
-   a `long double' that's not `long' at all.  */
-
-#define TARGET_LONG_DOUBLE_FORMAT &floatformat_i387_ext
-
-/* Although the i386 extended floating-point has only 80 significant
-   bits, a `long double' actually takes up 96, probably to enforce
-   alignment.  */
-
-#define TARGET_LONG_DOUBLE_BIT 96
-
 /* 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
    on most implementations. */
index ab52ba41325afbfdd48a208aae2698c0f4e7e297..f0723fa660bce10945f55f9cb637885ed35d1ebe 100644 (file)
@@ -1351,6 +1351,17 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
   tdep->sigtramp_end = 0;
   tdep->sc_pc_offset = -1;
 
+  /* The format used for `long double' on almost all i386 targets is
+     the i387 extended floating-point format.  In fact, of all targets
+     in the GCC 2.95 tree, only OSF/1 does it different, and insists
+     on having a `long double' that's not `long' at all.  */
+  set_gdbarch_long_double_format (gdbarch, &floatformat_i387_ext);
+  
+  /* Although the i386 extended floating-point has only 80 significant
+     bits, a `long double' actually takes up 96, probably to enforce
+     alignment.  */
+  set_gdbarch_long_double_bit (gdbarch, 96);
+
   set_gdbarch_get_longjmp_target (gdbarch, i386_get_longjmp_target);
 
   set_gdbarch_use_generic_dummy_frames (gdbarch, 0);
This page took 0.03846 seconds and 4 git commands to generate.