runtime: move osinit to Go

Programming / Compilers / GCC - ian [138bc75d-0d04-0410-961f-82ee72b054a4] - 28 August 2019 20:39 UTC

This is a step toward updating libgo to 1.13. This adds the 1.13
version of the osinit function to Go code, and removes the corresponding code from the C runtime. This should simplify future updates. Some additional 1.13 code was brought in to simplify this change.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/191717

8cfe81fc55d runtime: move osinit to Go
gcc/go/gofrontend/MERGE | 2 +-
libgo/Makefile.am | 37 +---
libgo/Makefile.in | 51 +----
libgo/go/runtime/malloc.go | 17 ++
libgo/go/runtime/netpoll_kqueue.go | 1 +
libgo/go/runtime/os3_solaris.go | 21 +-
libgo/go/runtime/os_aix.go | 36 +++-
libgo/go/runtime/os_darwin.go | 73 +++++++
libgo/go/runtime/os_dragonfly.go | 33 +++
libgo/go/runtime/os_freebsd.go | 105 +++++++++
libgo/go/runtime/os_hurd.go | 21 ++
libgo/go/runtime/os_linux.go | 63 ++++++
libgo/go/runtime/os_netbsd.go | 40 ++++
libgo/go/runtime/os_openbsd.go | 60 ++++++
libgo/go/runtime/stubs.go | 14 --
libgo/go/runtime/stubs2.go | 4 +-
libgo/go/runtime/sys_darwin.go | 429 -------------------------------------
libgo/go/runtime/sys_darwin_32.go | 32 ---
libgo/go/runtime/sys_darwin_64.go | 32 ---
libgo/mkrsysinfo.sh | 13 ++
libgo/runtime/getncpu-aix.c | 15 --
libgo/runtime/getncpu-bsd.c | 24 ---
libgo/runtime/getncpu-hurd.c | 16 --
libgo/runtime/getncpu-irix.c | 16 --
libgo/runtime/getncpu-linux.c | 36 ----
libgo/runtime/getncpu-none.c | 12 --
libgo/runtime/getncpu-solaris.c | 16 --
libgo/runtime/go-libmain.c | 3 +-
libgo/runtime/go-main.c | 3 +-
libgo/runtime/runtime.h | 8 +-
30 files changed, 494 insertions(+), 739 deletions(-)

Upstream: gcc.gnu.org


  • Share