From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Elizabeth Chastain To: gdb-patches@sources.redhat.com, orjan.friberg@axis.com Subject: Re: [RFA] testsuite/gdb.base/pointers.[c,exp]: don't assume >= 8 byte doubles Date: Mon, 26 Feb 2001 11:14:00 -0000 Message-id: <200102261913.LAA05329@bosch.cygnus.com> X-SW-Source: 2001-02/msg00470.html 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