This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Support true 'long double' size.
- From: Pierre Muller <muller at ics dot u-strasbg dot fr>
- To: Andrew Cagney <ac131313 at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 11 Mar 2003 17:35:01 +0100
- Subject: Re: [RFA] Support true 'long double' size.
- References: <5.0.2.1.2.20030217174903.02c193e8@ics.u-strasbg.fr><5.0.2.1.2.20030311131024.00aebbe0@ics.u-strasbg.fr>
At 15:28 11/03/2003, Andrew Cagney wrote:
>>The old patch might still be usefull for other processors,
>>but I am not sure about that.
>
>We can wait until someone else reports a problem :-)
>
>>So here is a new simplified patch proposal:
>>ChangeLog entry:
>>2003-03-11 Pierre Muller <muller at ics dot u-strasbg dot fr>
>> * doublest.c (floatformat_from_length): Accept also
>> the real size of 'long double' type.
>>Index: doublest.c
>>===================================================================
>>RCS file: /cvs/src/src/gdb/doublest.c,v
>>retrieving revision 1.12
>>diff -p -u -r1.12 doublest.c
>>--- doublest.c 27 Feb 2003 18:08:25 -0000 1.12
>>+++ doublest.c 11 Mar 2003 12:17:52 -0000
>>@@ -633,6 +633,14 @@ floatformat_from_length (int len)
>> return TARGET_DOUBLE_FORMAT;
>> else if (len * TARGET_CHAR_BIT == TARGET_LONG_DOUBLE_BIT)
>> return TARGET_LONG_DOUBLE_FORMAT;
>>+ /* On i386 the 'long double' type takes 96 bits,
>>+ while the real number of used bits is only 80,
>>+ both in processor and in memory.
>>+ The code below accepts the real bit size. */
>>+ else if ((TARGET_LONG_DOUBLE_FORMAT)
>
>Yes, approved, just write the above as:
>
> (TARGET_LONG_DOUBLE_FORMAT != NULL)
Thanks, committed with the above change.