Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: gdb-patches@sources.redhat.com
Subject: [rfc/rfa(DavidT?)] Move DOUBLEST to doublest.{h,c}
Date: Mon, 16 Jul 2001 08:18:00 -0000	[thread overview]
Message-ID: <3B5305B5.4070207@cygnus.com> (raw)

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




             reply	other threads:[~2001-07-16  8:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-16  8:18 Andrew Cagney [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B5305B5.4070207@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox