This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, fortran] PR24174 real(10) and complex(10) array IO broken.


On Sat, Nov 05, 2005 at 10:58:12PM +0100, FX Coudert wrote:
> Your patch is OK with the following comments:
> 
> >! { dg-do run }
> >! { dg-require-effective-target fortran_large_real }
> >! PR 24174 and PR 24305
> >program kind10_formatted_io
> >  ! This should be kind=10 on systems that support it
> >  integer, parameter :: k = selected_real_kind (precision (0.0_8) + 1)
> 
> This comment it not right.  On some systems it will be kind=16 (systems 
> that do not have a real(kind=10)).

I have committed the patch with the changes in wording proposed by
Brooks Moses (thanks!). I also changed the testcase to test for

(abs(a-b) > 10 * spacing (2.0_k))

instead of testing for exact equality, since we're after all talking
about converting FP numbers to strings and back. For some reason doing
an exact test works for me, but I'm not so sure it will always work.

And, since this is my first ever a) gcc commit and b) svn commit, I
hope I haven't made any major screwups...

-- 
Janne Blomqvist


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