This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: Double Precison with g77


Michael J. Brown wrote:

> I'm running fortran code compiled with g77 and am finding that I cannot
> get double precision on variables declared as such. I have tried the
> REAL*8, REAL(KIND=2), and DOUBLE PRECISION conventions only to find that
> their precision is equivalent to single precision REAL declaration. It
> therefore seems that the compiler is not supporting double precision and I
> am wondering if there is an error somewhere in its configuration on my
> machine. I have g77 version 0.5.24 on redhat Linux.

Are you sure ?  I've code that wouldn't even run to completion if DOUBLE
PRECISION didn't work (I'm using egcs-1.1.2 on Red Hat 5.2).

A test-case that unambiguously shows the faulty behaviour would be
appreciated, as well as the output of g77 -v.

Cheers,

-- 
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
GNU Fortran: http://world.std.com/~burley/g77.html


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