This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA] testsuite/gdb.base/pointers.[c,exp]: don't assume >= 8 byte doubles


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]