gccgo: fix runtime compilation on NetBSD
authorBenny Siegert <bsiegert@gmail.com>
Mon, 20 Apr 2020 14:11:14 +0000 (16:11 +0200)
committerIan Lance Taylor <iant@golang.org>
Tue, 21 Apr 2020 04:20:53 +0000 (21:20 -0700)
commit8e841bd419fb9dc3e027367fc11078b677541a9a
tree6057bd268fb933a070fa9faac31f86e95b767c69
parent8ab392f97bb51854e11fae9c2e9a15b67206efba
gccgo: fix runtime compilation on NetBSD

si_code in siginfo_t is a macro on NetBSD, not a member of the
struct itself, so add a C trampoline for receiving its value.

Also replace references to mos.waitsemacount with the replacement and
add some helpers from os_netbsd.go in the GC repository.

Update golang/go#38538.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/228918
gcc/go/gofrontend/MERGE
libgo/go/runtime/os_netbsd.go
libgo/go/runtime/signal_gccgo.go
libgo/go/runtime/stubs.go
libgo/runtime/go-signal.c