This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] testsuite/gdb.base/pointers.[c,exp]: don't assume >= 8 byte doubles
- To: gdb-patches at sources dot redhat dot com
- Subject: Re: [RFA] testsuite/gdb.base/pointers.[c,exp]: don't assume >= 8 byte doubles
- From: Orjan Friberg <orjan dot friberg at axis dot com>
- Date: Wed, 07 Mar 2001 18:39:23 +0100
- Organization: Axis Communications AB
- References: <3A9A9711.9FF71C4A@axis.com> <3AA51843.D64A0962@cygnus.com>
Fernando Nasser wrote:
>
> Orjan Friberg wrote:
> >
> > (This is a resubmission.) In pointers.c, a double D is assigned
> > -1.375E-123. This only fits if a double is (at least) 8 bytes. For a
> > 4-byte double you get an underflow. The pattern matching of the
> > decimals when printing the value of D also assumes it's >= 8 bytes. K&R
> > says an acceptable minimum for FLT_MIN is 1E-37, so I decided to go with
> > that and relaxed the decimal pattern matching to the same level as for
> > floats.
> >
> > Ok to commit?
> >
>
> Yes, I believe we discussed this long ago and all agreed that it was a sensible change.
>
> Thanks.
> Fernando
>
Committed. Thanks to Michael for reviewing and testing the patch.
BTW, the cvs commit messages for pointers.c and pointers.exp
accidentally got the 2001-02-26 date (which was when I submitted the
patch). I updated the date in the ChangeLog entry (and ChangeLog's cvs
commit message) though. Sorry about that.
--
Orjan Friberg E-mail: orjan.friberg@axis.com
Axis Communications AB Phone: +46 46 272 17 68