This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[libgfortran,patch] Widen default formats for formatted output of floating-point numbers
- From: FX Coudert <fxcoudert at gmail dot com>
- To: Fortran List <fortran at gcc dot gnu dot org>, gcc-patches list <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 1 Oct 2007 23:56:04 +0100
- Subject: [libgfortran,patch] Widen default formats for formatted output of floating-point numbers
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:to:message-id:content-type:from:subject:date:x-mailer; bh=D57yT2IuvyUei6CMhdfn9ipWa6doX/PaMUcS90sNI0M=; b=OfRy2yhLNzJesIwMV/q4z0lUNmMzODKvJ66AD89k55FU1n/PyG2pBAlLnpLjB61n0i8IcV+lZ01cvArTRPIbsOfJWZesvp5SKymMTzlCDJ8+6ahUa368/9BZuQEBqCnS2JQzEIPWKGq16fbcFcYHM2Ldvk0vl8kZuVfhCM1KJIk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:to:message-id:content-type:from:subject:date:x-mailer; b=JY7fX0DuFbB6E3U4aIz6TmTHm8U3I3MNjO8PkJA4iyvkjobOYDkAGSKqaZC1rN+CpvOlajftJLYBNMvOlTCVdqBzkl0r2pVzUulRWj4u2kvEQSdR/OIdjOiH8mOJKXYms7N2GU4LtP9RZIuijiTcTdwxJAdaGqnN19wsn/1KrOM=
Attached patch follows the point of Dominique who showed that our
default formats for formatted floating-point output aren't wide
enough to allow writing and reading back values. I've widened the
formats for kinds 4, 8 and 10, after checking on x86_64-linux; the
testcase is also an extension of what Dominique posted in the PR. I
haven't fixed the case of real(kind=16) yet, because it's more
complicated there (see, once again, Dominique's testing in the PR).
It seemed that there is no reason to wait for the real(kind=16) issue
to be resolved to check in that patch, so I submit it here for review.
Bootstrapped on x86_64-linux, regtest is still progressing (but a
previous version did regtest fine), OK to commit if no error show up?
Thanks,
FX
:ADDPATCH libgfortran:
Attachment:
widen_formats.ChangeLog
Description: Binary data
Attachment:
widen_formats.diff
Description: Binary data