------- Additional Comments From kargl at gcc dot gnu dot org  2005-08-14 16:48 
-------
(In reply to comment #3)
> I don't know why you say that "MingW claims to have a HAVE_TIMES".
> It doesn't. 
>

Read the code for __cpu_time_1.  The only way that cpu_time can return
zero is if HAVE_TIMES is defined or if MingW has getrusage() and
getrusage is broken.

> Would an ifdef _WIN32 clause be acceptable in cpu_time.c.

IMO, no.  There are no other _WIN32 clauses in gfortran.  As soon as
you add the first one, there will be a proliferation of OS specific
clauses in gfortran.

What we need to understand is why cpu_time isn't returning -1, which 
is standard conforming.   So, does config.h contain HAVE_GETRUSAGE
or HAVE_TIMES defined?




-- 


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

Reply via email to