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, orjan dot friberg at axis dot com
- Subject: Re: [RFA] testsuite/gdb.base/pointers.[c,exp]: don't assume >= 8 byte doubles
- From: Michael Elizabeth Chastain <chastain at cygnus dot com>
- Date: Mon, 26 Feb 2001 11:13:39 -0800
Hi Orjan,
I proofread this and tested it on a Red Hat 7 Linux native system.
It works for me.
> 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.
ISO C standard section 5.2.4.2, "numerical limits", addresses this.
It says: "minimum normalized positive floating-point number:"
FLT_MIN 1e-37
DBL_MIN 1e-37
LDBL_MIN 1e-37
So I agree; it is legal for an implementation to implement
doubles as 32-bit IEEE 754 numbers.
> Ok to commit?
I recommend this patch for approval but I do not have approval power.
Fernando? Stan?
Michael