This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: `long double' support for ix86 targets
- To: kettenis at wins dot uva dot nl
- Subject: Re: `long double' support for ix86 targets
- From: Eli Zaretskii <eliz at delorie dot com>
- Date: Sun, 5 Mar 2000 03:05:30 -0500 (EST)
- CC: gdb at sourceware dot cygnus dot com, gdb-patches at sourceware dot cygnus dot com
- References: <200003031531.e23FV8T00285@delius.kettenis.local>
> I intend to check in the following patch in a week or two, but since
> this change affects most of the ix86 targets, I'd like to give people
> the opportunity to object.
>
> Mark
>
>
> 2000-03-02 Mark Kettenis <kettenis@gnu.org>
>
> * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT): Define as
> &floatformat_i387_ext.
> (TARGET_LONG_DOUBLE_BITS): Define as 96.
> (REGISTER_VIRTUAL_TYPE): Change type for FPU registers to
> `builtin_type_long_double'.
> (REGISTER_CONVERT_TO_VIRTUAL): Simply copy over the data, and pad
> with zeroes.
> (REGISTER_CONVERT_TO_RAW): Simply copy over the significant data.
> (i387_to_double, double_to_i387): Remove prototypes.
These changes are okay for DJGPP.
Btw, shouldn't we also have identical definition for
HOST_LONG_DOUBLE_FORMAT for native debugging? Several functions ask
about the host and target format being identical.