summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2003-04-16 20:41:46 +0000
committerKevin Buettner <kevinb@redhat.com>2003-04-16 20:41:46 +0000
commitcf77f32a2ff1084c1d7f887f5df81f6778d81588 (patch)
treedea84ee5f446f0072ba1257920659809af3aa888
parent43491b5a61cf1fdb65839162f9050d1289388139 (diff)
downloadgdb-cf77f32a2ff1084c1d7f887f5df81f6778d81588.tar.gz
* rs6000-tdep.c (rs6000_gdbarch_init): For the SVR4 ABI, set
the size of ``long double'' to 16, instead of 8.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/rs6000-tdep.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fcd5d478271..3742befb258 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-16 Kevin Buettner <kevinb@redhat.com>
+
+ * rs6000-tdep.c (rs6000_gdbarch_init): For the SVR4 ABI, set
+ the size of ``long double'' to 16, instead of 8.
+
2003-04-16 Mark Kettenis <kettenis@gnu.org>
* i386-linux-nat.c: Add some whitespace to make things more
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index b70917e126f..9f553687ec4 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -2895,7 +2895,10 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_long_long_bit (gdbarch, 8 * TARGET_CHAR_BIT);
set_gdbarch_float_bit (gdbarch, 4 * TARGET_CHAR_BIT);
set_gdbarch_double_bit (gdbarch, 8 * TARGET_CHAR_BIT);
- set_gdbarch_long_double_bit (gdbarch, 8 * TARGET_CHAR_BIT);
+ if (sysv_abi)
+ set_gdbarch_long_double_bit (gdbarch, 16 * TARGET_CHAR_BIT);
+ else
+ set_gdbarch_long_double_bit (gdbarch, 8 * TARGET_CHAR_BIT);
set_gdbarch_char_signed (gdbarch, 0);
set_gdbarch_fix_call_dummy (gdbarch, rs6000_fix_call_dummy);