[RFA] Support true 'long double' size.
Pierre Muller
muller@ics.u-strasbg.fr
Tue Mar 11 16:39:00 GMT 2003
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@ics.u-strasbg.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.
More information about the Gdb-patches
mailing list