Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfa(arm)/rfc] Eliminate HOST_{FLOAT,DOUBLE,...}_FORMAT
@ 2001-06-28 23:04 Andrew Cagney
  2001-06-29  5:16 ` Richard Earnshaw
       [not found] ` <5137-Fri29Jun2001120040+0300-eliz@is.elta.co.il>
  0 siblings, 2 replies; 6+ messages in thread
From: Andrew Cagney @ 2001-06-28 23:04 UTC (permalink / raw)
  To: gdb-patches

Hello,

The attatched should catch a few eyebrows :-)

The existing GDB tries to be smart about converting host/target floating 
point values - if it thinks that host-float == target-float then it just 
does a move instead of a conversion.

This patch eliminates the short cut.  Instead the conversion is always 
routed through floatformat_{to,from}_doublest().  The most telling 
comment and the reason this will probably catch a few eyebrows can be 
found in i387-tdep.c:

!   /* Avoid call to floatformat_to_doublest if possible to preserve as
!      much information as possible.  */

To me, the comment doesn't make sense.  If sizeof (host long double) == 
size of (target long double) and information is still being lost then I 
think floatformat_* has a bug.

As a side effect it also cleans up the ARM target-float -> 
target->double conversion so that it is more portable (well I think it is).

Comments?  Approval for the ARM part?  I can/should separate the arm 
part out.

	Andrew




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-06-29  9:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-28 23:04 [rfa(arm)/rfc] Eliminate HOST_{FLOAT,DOUBLE,...}_FORMAT Andrew Cagney
2001-06-29  5:16 ` Richard Earnshaw
2001-06-29  8:43   ` Andrew Cagney
     [not found] ` <5137-Fri29Jun2001120040+0300-eliz@is.elta.co.il>
2001-06-29  8:31   ` Andrew Cagney
2001-06-29  9:01     ` Eli Zaretskii
2001-06-29  9:12       ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox