[Bug fortran/53456] Add time support for VxWorks

jb at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 23 08:04:00 GMT 2012


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

Janne Blomqvist <jb at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jb at gcc dot gnu.org

--- Comment #2 from Janne Blomqvist <jb at gcc dot gnu.org> 2012-05-23 07:14:58 UTC ---
According to 

http://www-kryo.desy.de/documents/vxWorks/V5.5/vxworks/ref/ansiTime.html

vxworks provides the C standard clock() and time() functions. The gf_gettime
and gf_cputime functions in libgfortran should fall back to these if other
functionality is not available. So the question is why does this fail?

Also, the part of the patch touching gf_cputime is certainly wrong: The point
of that function is to get the cpu time consumed by the current process, and
the patch uses the realtime clock. If vxwork doesn't provide CPU time, I think
it's better to just return an error, this is also what the vxworks clock()
appears to do.



More information about the Gcc-bugs mailing list