This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
RFA: correct size of long double on PPC Linux
- From: Jim Blandy <jimb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: 24 Mar 2004 13:10:33 -0500
- Subject: RFA: correct size of long double on PPC Linux
2004-03-24 Jim Blandy <jimb@redhat.com>
* ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
bytes long on PPC Linux.
Index: gdb/ppc-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/ppc-linux-tdep.c,v
retrieving revision 1.49
diff -c -r1.49 ppc-linux-tdep.c
*** gdb/ppc-linux-tdep.c 14 Nov 2003 14:16:29 -0000 1.49
--- gdb/ppc-linux-tdep.c 11 Feb 2004 18:59:31 -0000
***************
*** 1042,1047 ****
--- 1042,1049 ----
if (tdep->wordsize == 4)
{
+ set_gdbarch_long_double_bit (gdbarch, 8 * TARGET_CHAR_BIT);
+
/* Until November 2001, gcc did not comply with the 32 bit SysV
R4 ABI requirement that structures less than or equal to 8
bytes should be returned in registers. Instead GCC was using