fortran optimization errors

Jack Howarth howarth@bromo.msbb.uc.edu
Sat Jun 23 15:18:00 GMT 2007


Steve,
   I wonder if we should have -Wconversion enabled as the
default for those architectures known to be sensitive to
these conversions. This would at eliminate the noise on
the mailing list long term concerning this issue.
                 Jack

On Fri, Jun 22, 2007 at 05:28:42PM -0700, Steve Kargl wrote:
> 
> The program contains REAL(4) and REAL(8) variables in mixed mode
> arithmetic where these and other parameters are used.  Sebastian
> doesn't see a problem on PPC only on i686 where FP registers are
> 80-bit.  He needs to either fix his code, use -ffloat-store, or
> -fdefault-real-8.  The latter option may not help.
> 
> troutmask:sgk[204] gfc4x -c -Wconversion semn17.f90 |& grep REAL > sgk.log
> troutmask:sgk[207] grep 'REAL(4) to REAL(8)' sgk.log | wc -l
>      195
> troutmask:sgk[208] grep 'REAL(8) to REAL(4)' sgk.log | wc -l
>       69
> troutmask:sgk[209] head sgk.log
> Warning: Conversion from REAL(4) to REAL(8)@(1)
> Warning: Conversion from REAL(4) to REAL(8)@(1)
> Warning: Conversion from REAL(4) to REAL(8)@(1)
> 
> -- 
> Steve



More information about the Fortran mailing list