This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Double Precison with g77
- To: "Michael J. Brown" <brown at engineering dot ucsb dot edu>
- Subject: Re: Double Precison with g77
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Sat, 03 Jul 1999 13:09:11 +0200
- CC: egcs at egcs dot cygnus dot com
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <Pine.GHP.4.02.9907021444440.3641-100000@cockle.ucsb.edu>
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