This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: correct size of long double on PPC Linux
- From: Daniel Jacobowitz <drow at false dot org>
- To: Kevin Buettner <kevinb at redhat dot com>
- Cc: Jim Blandy <jimb at redhat dot com>, gdb-patches at sources dot redhat dot com
- Date: Fri, 26 Mar 2004 10:19:58 -0500
- Subject: Re: RFA: correct size of long double on PPC Linux
- References: <vt2u10ew1ye.fsf@zenia.home> <20040325222358.1e0ccbe8@saguaro>
On Thu, Mar 25, 2004 at 10:23:58PM -0700, Kevin Buettner wrote:
> On 24 Mar 2004 13:10:33 -0500
> Jim Blandy <jimb@redhat.com> wrote:
>
> > 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.
>
> Can you provide the ABI reference for this?
>
> According to the documentation that I have (which is the System V ABI
> PowerPC Processor Supplement), the size of a long double is 16 bytes.
Yes - this is one of the known warts in the PPC GNU/Linux ABI. People
have been talking for years about fixing it to match the SysV ABI. GCC
only recently got 128-bit long double support on PPC, so it may be
changing soon; but for all existing PPC GNU/Linux systems I know of,
eight bytes is correct.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer