F90-related question

Steve Kargl sgk@troutmask.apl.washington.edu
Mon Dec 9 16:04:00 GMT 2013


On Mon, Dec 09, 2013 at 04:55:39PM +0100, Janus Weil wrote:
> Hi,
> 
> > I have a question about an old compilation line. It used to be " f90 +r8 -c
> > -O3 *.f  ", and now I would like to use gfortran instead of f90.
> >
> > The question is only about the "+r8" option. I cannot find an equivalent to
> > it so I assume it is defaulted in gfortran, but I would like a confirmation
> > for that.
> 
> I guess you are looking for something like -fdefault-real-8, see
> http://gcc.gnu.org/onlinedocs/gcc-4.8.2/gfortran/Fortran-Dialect-Options.html
> 

He probably wants -freal-4-real-8.  -fdefault-real-8 has a few
issues.  Presonally, I would like to deprecate the -fdefault-*
options, but I also recognize that these are too entrenched in
the users' brain.

PS:  The real solution is to use no option; rather fix the code
to properly declare all entities.

-- 
Steve



More information about the Fortran mailing list