[gfortran] I/O of large integer and real kinds, round 2

FX Coudert fxcoudert@gmail.com
Wed Jun 8 20:48:00 GMT 2005


> Attached patch (one diff, one new configuration script and two 
> testcases and the ChangeLog) enables I/O of large integer and real kinds. Right now,
> it includes integer(16), real(10) and real(16), but it is easy to add
> other types afterwards if need be since the mechanism is now very general.

Built, tested and regtested on:
    - i686-linux, which has real(10)
    - i386-freebsd
    - sparc-solaris, which has real(16)
    - x86_64-linux, which has real(10) and integer(16)
    - alpha-linux, which has integer(16)

No regression on any of those. real(16) output does not work on 
sparc-solaris2.9 since this platform doesn't allow isfinite() to work 
correctly on long doubles, but this is problem is only partial (huge and 
very small numbers will be output as +Inf and -Inf insted of their exact 
value). This could be the case on other platforms, hence a TODO in the 
patch, describing the problem.

OK for mainline? (and should it be backported to 4.0, too?)

FX

PS: sorry Steve for the first attemp which didn't build on freebsd, I 
know it's very frustrating to take time to review a patch and to have to 
do it again... thanks for your help!
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: allkinds.ChangeLog
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050608/1cf7754e/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: allkinds.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050608/1cf7754e/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mk-kinds-h.sh
Type: application/x-sh
Size: 1660 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050608/1cf7754e/attachment.sh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: large_integer_kind_1.f90
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050608/1cf7754e/attachment.f90>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: large_real_kind_1.f90
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050608/1cf7754e/attachment-0001.f90>


More information about the Fortran mailing list