runtime: copy runtime package time code from Go 1.7
commitecc0b0cee14466e780b78b19758a3b2f0be4e798
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Oct 2016 00:29:06 +0000 (15 00:29 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Oct 2016 00:29:06 +0000 (15 00:29 +0000)
tree156c9d476a537c240533dedcf79341b37bcdf5d9
parent4537dbd222bb31bd1a6e997c3839ba0fec347c90
runtime: copy runtime package time code from Go 1.7

    Fix handling of function values for -fgo-c-header to generate FuncVal*,
    not simply FuncVal.

    While we're here change runtime.nanotime to use clock_gettime with
    CLOCK_MONOTONIC, rather than gettimeofday.  This is what the gc library
    does.  It provides nanosecond precision and a monotonic clock.

    Reviewed-on: https://go-review.googlesource.com/31232

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241197 138bc75d-0d04-0410-961f-82ee72b054a4
12 files changed:
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/types.cc
libgo/Makefile.am
libgo/Makefile.in
libgo/go/runtime/stubs.go
libgo/go/runtime/time.go [new file with mode: 0644]
libgo/runtime/go-nanotime.c
libgo/runtime/malloc.h
libgo/runtime/mgc0.c
libgo/runtime/netpoll.goc
libgo/runtime/runtime.h
libgo/runtime/time.goc [deleted file]