From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney 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 Message-id: <3B5305B5.4070207@cygnus.com> X-SW-Source: 2001-07/msg00373.html 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 To: Orjan Friberg 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