[Bug fortran/35355] Result of call cpu_time(x) can decrease or give non credible values with repeated calls

edunlop at utvinternet dot ie gcc-bugzilla@gcc.gnu.org
Sun Feb 24 22:56:00 GMT 2008



------- Comment #1 from edunlop at utvinternet dot ie  2008-02-24 22:55 -------
Inconsistent or odd "call cpu_time(x)" behaviour on the current release of
gfortran. I am using the 32 bit Mingw version of gfortran.

C:\>gfortran -v
Using built-in specs.
Target: i386-pc-mingw32
Configured with: ../trunk/configure --prefix=/mingw
--enable-languages=c,fortran --with-gmp=/home/FX/local --with-ld=/mingw/bin/ld
--with-as=/mingw/bin/as --disable-werror --enable-bootstrap --enable-threads
--disable-nls --build=i386-pc-mingw32 --enable-libgomp --disable-shared
Thread model: win32
gcc version 4.3.0 20080127 (experimental) [trunk revision 131883] (GCC)

The "call cpu_time(x)" operations worked perfectly under a fairly recent
previous release of gfortran (sorry, I no longer have the version info).

I have declared x as follows:-

integer,parameter :: pr=selected_real_kind(6,37)
real(kind=pr) :: x

Unfortunately my code is very lengthy - but I could send it as an example if
really necessary.

Edmund Dunlop.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35355



More information about the Gcc-bugs mailing list