This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]: long double is 64-bit on HC11/HC12


Hi!

Committed this patch to fix sizeof.exp testsuite failure (long double is 64-bit wide and does not
depend on -fshort-double).

Stephane

2003-02-23 Stephane Carrez <stcarrez at nerim dot fr>

* m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
Index: m68hc11-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/m68hc11-tdep.c,v
retrieving revision 1.43
diff -u -p -r1.43 m68hc11-tdep.c
--- m68hc11-tdep.c	22 Feb 2003 15:59:49 -0000	1.43
+++ m68hc11-tdep.c	23 Feb 2003 20:21:47 -0000
@@ -1344,7 +1344,7 @@ m68hc11_gdbarch_init (struct gdbarch_inf
   set_gdbarch_int_bit (gdbarch, elf_flags & E_M68HC11_I32 ? 32 : 16);
   set_gdbarch_float_bit (gdbarch, 32);
   set_gdbarch_double_bit (gdbarch, elf_flags & E_M68HC11_F64 ? 64 : 32);
-  set_gdbarch_long_double_bit (gdbarch, elf_flags & E_M68HC11_F64 ? 64 : 32);
+  set_gdbarch_long_double_bit (gdbarch, 64);
   set_gdbarch_long_bit (gdbarch, 32);
   set_gdbarch_ptr_bit (gdbarch, 16);
   set_gdbarch_long_long_bit (gdbarch, 64);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]