This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32446] F0.n output format fails with large numbers
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jun 2007 03:12:22 -0000
- Subject: [Bug fortran/32446] F0.n output format fails with large numbers
- References: <bug-32446-6246@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jvdelisle at gcc dot gnu dot org 2007-06-21 03:12 -------
Here is a patch. Could someone test for a system that supports KIND=16. I can
only test for KIND=10. The value 45 is the minimum size that will work with
the test case. I am only guessing at the 63.
Index: write.c
===================================================================
*** write.c (revision 125870)
--- write.c (working copy)
*************** static void
*** 437,445 ****
output_float (st_parameter_dt *dtp, const fnode *f, GFC_REAL_LARGEST value)
{
#if defined(HAVE_GFC_REAL_16) && __LDBL_DIG__ > 18
! # define MIN_FIELD_WIDTH 46
#else
! # define MIN_FIELD_WIDTH 31
#endif
#define STR(x) STR1(x)
#define STR1(x) #x
--- 437,445 ----
output_float (st_parameter_dt *dtp, const fnode *f, GFC_REAL_LARGEST value)
{
#if defined(HAVE_GFC_REAL_16) && __LDBL_DIG__ > 18
! # define MIN_FIELD_WIDTH 63
#else
! # define MIN_FIELD_WIDTH 45
#endif
#define STR(x) STR1(x)
#define STR1(x) #x
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC host triplet|? |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32446