Module Name: src Committed By: rin Date: Sun Jun 26 05:55:30 UTC 2022
Modified Files: src/external/gpl3/gdb/dist/gdb: ppc-nbsd-tdep.c Log Message: PR port-powerpc/56899 Disable 128-bit long double for NetBSD/powerpc. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c diff -u src/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c:1.8 src/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c:1.9 --- src/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c:1.8 Sun Jun 26 05:52:43 2022 +++ src/external/gpl3/gdb/dist/gdb/ppc-nbsd-tdep.c Sun Jun 26 05:55:30 2022 @@ -177,6 +177,10 @@ ppcnbsd_init_abi (struct gdbarch_info in { 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);