Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/dist/gdb PR port-powerpc/56899



details:   https://anonhg.NetBSD.org/src/rev/383802084314
branches:  trunk
changeset: 368154:383802084314
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Jun 26 05:55:30 2022 +0000

description:
PR port-powerpc/56899

Disable 128-bit long double for NetBSD/powerpc.

diffstat:

 external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r adfc6bbeabe1 -r 383802084314 external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c
--- a/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c        Sun Jun 26 05:52:43 2022 +0000
+++ b/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c        Sun Jun 26 05:55:30 2022 +0000
@@ -177,6 +177,10 @@
 {
   nbsd_init_abi (info, gdbarch);
 
+  /* NetBSD doesn't support the 128-bit `long double' from the psABI.  */
+  set_gdbarch_long_double_bit (gdbarch, 64);
+  set_gdbarch_long_double_format (gdbarch, floatformats_ieee_double);
+
   /* For NetBSD, this is an on again, off again thing.  Some systems
      do use the broken struct convention, and some don't.  */
   set_gdbarch_return_value (gdbarch, ppcnbsd_return_value);



Home | Main Index | Thread Index | Old Index