This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/23380] [mingw32] cpu_time intrinsic malfunction
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Aug 2005 01:33:57 -0000
- Subject: [Bug libfortran/23380] [mingw32] cpu_time intrinsic malfunction
- References: <20050813214828.23380.edunlop@utvinternet.ie>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From kargl at gcc dot gnu dot org 2005-08-14 01:33 -------
(In reply to comment #1)
> This is a mingw32 specific issue.
>
> The implemention for mingw32 is not complete.
> intrinsics/cpu_time.c is where it is implemented,
> we only check for HAVE_GETRUSAGE and HAVE_TIMES.
This isn't exactly correct. If neither HAVE_GETRUSAGE nor HAVE_TIMES
is defined, cpu_time can and does return -1. It appears that MingW
claims to have a HAVE_TIMES, when in fact it is broken. This is not
a gfortran problem. Please contact the MingW developers.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23380