* gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
authorAndrew Cagney <cagney@redhat.com>
Sat, 16 Feb 2002 23:09:16 +0000 (23:09 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 16 Feb 2002 23:09:16 +0000 (23:09 +0000)
* gdbarch.h, gdbarch.c: Re-generate.

gdb/ChangeLog
gdb/gdbarch.c
gdb/gdbarch.h
gdb/gdbarch.sh

index f5dd4fd..be568c9 100644 (file)
@@ -1,3 +1,8 @@
+2002-02-16  Andrew Cagney  <ac131313@redhat.com>
+
+       * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
+       * gdbarch.h, gdbarch.c: Re-generate.
+
 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
 
        * valarith.c (value_x_unop): Fix decrement; support post-decrement.
index 09bc8fa..f4000b5 100644 (file)
@@ -451,7 +451,7 @@ gdbarch_alloc (const struct gdbarch_info *info,
   current_gdbarch->long_long_bit = 2*TARGET_LONG_BIT;
   current_gdbarch->float_bit = 4*TARGET_CHAR_BIT;
   current_gdbarch->double_bit = 8*TARGET_CHAR_BIT;
-  current_gdbarch->long_double_bit = 2*TARGET_DOUBLE_BIT;
+  current_gdbarch->long_double_bit = 8*TARGET_CHAR_BIT;
   current_gdbarch->ptr_bit = TARGET_INT_BIT;
   current_gdbarch->bfd_vma_bit = TARGET_ARCHITECTURE->bits_per_address;
   current_gdbarch->char_signed = -1;
index 90e9e62..da5156c 100644 (file)
@@ -212,7 +212,7 @@ extern void set_gdbarch_double_bit (struct gdbarch *gdbarch, int double_bit);
 
 /* Default (value) for non- multi-arch platforms. */
 #if (!GDB_MULTI_ARCH) && !defined (TARGET_LONG_DOUBLE_BIT)
-#define TARGET_LONG_DOUBLE_BIT (2*TARGET_DOUBLE_BIT)
+#define TARGET_LONG_DOUBLE_BIT (8*TARGET_CHAR_BIT)
 #endif
 
 extern int gdbarch_long_double_bit (struct gdbarch *gdbarch);
index e594834..29aca34 100755 (executable)
@@ -393,7 +393,7 @@ v::TARGET_FLOAT_BIT:int:float_bit::::8 * sizeof (float):4*TARGET_CHAR_BIT::0
 # Number of bits in a double for the target machine.
 v::TARGET_DOUBLE_BIT:int:double_bit::::8 * sizeof (double):8*TARGET_CHAR_BIT::0
 # Number of bits in a long double for the target machine.
-v::TARGET_LONG_DOUBLE_BIT:int:long_double_bit::::8 * sizeof (long double):2*TARGET_DOUBLE_BIT::0
+v::TARGET_LONG_DOUBLE_BIT:int:long_double_bit::::8 * sizeof (long double):8*TARGET_CHAR_BIT::0
 # For most targets, a pointer on the target and its representation as an
 # address in GDB have the same size and "look the same".  For such a
 # target, you need only set TARGET_PTR_BIT / ptr_bit and TARGET_ADDR_BIT