RFA: correct size of long double on PPC Linux

Jim Blandy jimb@redhat.com
Wed Mar 24 18:10:00 GMT 2004


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



More information about the Gdb-patches mailing list