Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfc/rfa(DavidT?)] Move DOUBLEST to doublest.{h,c}
@ 2001-07-16  8:18 Andrew Cagney
  2001-07-29 12:34 ` Andrew Cagney
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Cagney @ 2001-07-16  8:18 UTC (permalink / raw)
  To: gdb-patches

Hello,

(As they say, always have a plan B.  Plan A, reclaim floatformat, failed 
:-).

The attached patch moves all the floating point conversion routines to a 
single place - doublest.[hc].  It doesn't modify the actual code.  It 
updates all the missing include dependencies that I could find.  All the 
  buildable targets listed in the MAINTAINERS file still build.

Look OK?  I note this carves a chunk out of both utils.c and findvar.c

What's next?

I've a follow on patch to introduce two new functions 
extract_floatformat() and store_floatformat().  All th magic currently 
found in extract_floating() and store_floating() would be moved to these 
new functions.  All current calls to floatformat_from_doublest() and 
floatformat_to_doublest() would be replaced by those functions.  The net 
effect would be that all floating point conversions would go through a 
single path and always use the most exact mechanism available.

I've also a second patch to tweek the actual conversion code so that it 
isn't as lossy (use ULONGEST instead of unsigned long).

If anyone ever gets inspired they could then extend doublest.[hc] to 
implement portable floating point (using either gcc/real.c or 
sim/common/sim-fpu.[hc].

	Andrew
From ac131313@cygnus.com Mon Jul 16 08:20:00 2001
From: Andrew Cagney <ac131313@cygnus.com>
To: Orjan Friberg <orjan.friberg@axis.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: New port: CRIS architecture (2nd try)
Date: Mon, 16 Jul 2001 08:20:00 -0000
Message-id: <3B530624.50407@cygnus.com>
References: <3A2BAEF0.A4641A0C@axis.com> <3B4D8EF5.B02D2FA4@axis.com> <3B4FB0AB.1020106@cygnus.com> <3B52B011.5AEE83C7@axis.com>
X-SW-Source: 2001-07/msg00374.html
Content-length: 227

> Andrew Cagney wrote:
> 
>> 
>> Yes, fine, thanks.  Don't forget the NEWS file.
>> 
> 
> 
> Committed; thanks.  Patch for the NEWS file below.
> 
> Ok to commit?


Yes looks good (anyone can change the NEWS file).

	Andrew




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

end of thread, other threads:[~2001-08-01 11:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-16  8:18 [rfc/rfa(DavidT?)] Move DOUBLEST to doublest.{h,c} Andrew Cagney
2001-07-29 12:34 ` Andrew Cagney
2001-07-30  7:09   ` Mark Kettenis
2001-07-30  7:34     ` Andrew Cagney
2001-07-30 14:41       ` Mark Kettenis
2001-07-30 15:34         ` Andrew Cagney
2001-07-30 21:50           ` Andrew Cagney
2001-07-31 14:37             ` Andrew Cagney
2001-08-01 11:42   ` Andrew Cagney

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