This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]