gcc/libgo/go/runtime
Benny Siegert 8e841bd419 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
2020-04-20 21:20:53 -07:00
..
debug libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
internal libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
msan
pprof libgo: update to almost the 1.14.2 release 2020-04-06 16:37:24 -07:00
testdata libgo: update to almost the 1.14.2 release 2020-04-06 16:37:24 -07:00
trace libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
alg.go libgo: update to almost the 1.14.2 release 2020-04-06 16:37:24 -07:00
atomic_pointer.go libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
auxv_none.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
callers_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
cgo_gccgo.go runtime: abort stack scan in cases that we cannot unwind the stack 2019-02-19 15:32:34 +00:00
cgocall.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
cgocheck.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
chan_test.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
chan.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
chanbarrier_test.go
checkptr_test.go libgo: update to almost the 1.14.2 release 2020-04-06 16:37:24 -07:00
checkptr.go libgo: update to almost the 1.14.2 release 2020-04-06 16:37:24 -07:00
closure_test.go
compiler.go
complex_test.go
cpuprof.go libgo: update to Go1.13 2019-09-12 23:22:53 +00:00
cputicks.go
crash_cgo_test.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
crash_gccgo_test.go
crash_nonunix_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
crash_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
crash_unix_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
debug_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
debug.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
debuglog_off.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
debuglog_on.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
debuglog_test.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
debuglog.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
defer_test.go libgo: update to almost the 1.14.2 release 2020-04-06 16:37:24 -07:00
env_posix.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
env_test.go
error.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
example_test.go re PR go/89168 (FAIL: cmd/go/internal/load) 2019-02-15 00:36:50 +00:00
export_debug_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
export_debuglog_test.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
export_linux_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
export_mmap_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
export_test.go libgo: update to almost the 1.14.2 release 2020-04-06 16:37:24 -07:00
export_unix_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
export_windows_test.go
extern.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
fastlog2_test.go
fastlog2.go
fastlog2table.go libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
ffi.go runtime: for FFI, treat directIface types as pointers 2019-09-17 20:26:21 +00:00
float.go
gc_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
gcinfo_test.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
hash32.go compiler, runtime: support and use single argument go:linkname 2019-08-31 03:01:15 +00:00
hash64.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
hash_test.go libgo: update to almost the 1.14.2 release 2020-04-06 16:37:24 -07:00
heapdump.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
iface_test.go
iface.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
lfstack_32bit.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
lfstack_64bit.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
lfstack_test.go
lfstack.go
libfuzzer.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
lock_futex.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
lock_js.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
lock_sema.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
malloc_test.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
malloc.go libgo: update to final Go1.14 release 2020-02-26 12:19:13 -08:00
map_benchmark_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
map_fast32.go compiler, runtime, reflect: generate hash functions only for map keys 2020-01-02 21:55:32 +00:00
map_fast64.go compiler, runtime, reflect: generate hash functions only for map keys 2020-01-02 21:55:32 +00:00
map_faststr.go compiler, runtime, reflect: generate hash functions only for map keys 2020-01-02 21:55:32 +00:00
map_test.go compiler, runtime, reflect: generate hash functions only for map keys 2020-01-02 21:55:32 +00:00
map.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
mbarrier.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
mbitmap.go libgo: update to final 1.14.2 release 2020-04-09 20:14:25 -07:00
mcache.go libgo: update to Go1.13 2019-09-12 23:22:53 +00:00
mcentral.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
mem_gccgo.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
memmove_linux_amd64_test.go
memmove_test.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
mfinal_test.go
mfinal.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
mfixalloc.go libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
mgc_gccgo.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
mgc.go libgo: update to almost the 1.14.2 release 2020-04-06 16:37:24 -07:00
mgcmark.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
mgcscavenge_test.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
mgcscavenge.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
mgcsweep.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
mgcsweepbuf.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
mgcwork.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
mheap.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
mkfastlog2table.go libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
mkpreempt.go libgo: update to almost the 1.14.2 release 2020-04-06 16:37:24 -07:00
mksizeclasses.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
mpagealloc_32bit.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
mpagealloc_64bit.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
mpagealloc_test.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
mpagealloc.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
mpagecache_test.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
mpagecache.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
mpallocbits_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
mpallocbits.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
mprof.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
mranges.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
msan0.go
msize.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
mstats.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
mwbbuf.go runtime: scan write barrier buffer conservatively 2019-08-17 04:35:37 +00:00
nbpipe_pipe2.go runtime, syscall: add a couple of hurd build tags 2020-01-29 16:43:57 -08:00
nbpipe_pipe.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
nbpipe_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
net_plan9.go
netpoll_aix.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
netpoll_epoll.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
netpoll_fake.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
netpoll_hurd.go runtime: update netpoll_hurd.go for go1.14beta1 changes 2020-01-29 16:40:19 -08:00
netpoll_kqueue.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
netpoll_solaris.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
netpoll_stub.go libgo: update to final Go1.14 release 2020-02-26 12:19:13 -08:00
netpoll_windows.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
netpoll.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
norace_test.go
numcpu_freebsd_test.go
os3_solaris.go runtime: for Solaris, add osinit, and drop duplicate getncpu 2020-01-22 15:08:25 -08:00
os_aix.go runtime: move osinit to Go 2019-08-28 20:39:32 +00:00
os_darwin.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
os_dragonfly.go runtime: move osinit to Go 2019-08-28 20:39:32 +00:00
os_freebsd_arm64.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
os_freebsd.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
os_gccgo.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
os_hurd.go re PR go/93020 (Final patches to build gcc-10 on GNU/Hurd) 2019-12-24 05:05:32 +00:00
os_illumos.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
os_js.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
os_linux_arm64.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
os_linux_arm.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
os_linux_mips64x.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
os_linux_mipsx.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
os_linux_noauxv.go
os_linux_ppc64x.go
os_linux_s390x.go runtime: correct facilities names in s390 CPU support 2019-10-14 14:10:16 +00:00
os_linux.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
os_netbsd_arm64.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
os_netbsd.go gccgo: fix runtime compilation on NetBSD 2020-04-20 21:20:53 -07:00
os_only_solaris.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
os_openbsd_arm64.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
os_openbsd.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
os_solaris.go libgo: Solaris and x/sys/cpu compatibility fixes 2019-09-10 20:41:04 +00:00
os_windows_arm.go libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
panic32.go compiler, runtime: support and use single argument go:linkname 2019-08-31 03:01:15 +00:00
panic.go libgo: update to almost the 1.14.2 release 2020-04-06 16:37:24 -07:00
preempt_nonwindows.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
preempt.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
print.go compiler, runtime: support and use single argument go:linkname 2019-08-31 03:01:15 +00:00
proc_runtime_test.go
proc_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
proc.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
profbuf_test.go
profbuf.go
proflabel.go
race0.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
rand_test.go
rdebug.go
relax_stub.go
runtime1.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
runtime2.go libgo: update to almost the 1.14.2 release 2020-04-06 16:37:24 -07:00
runtime_mmap_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
runtime_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
runtime_unix_test.go libgo: add hurd build tags to test files 2019-02-01 22:11:50 +00:00
runtime-lldb_test.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
runtime.go compiler, runtime: support and use single argument go:linkname 2019-08-31 03:01:15 +00:00
rwmutex_test.go
rwmutex.go
select.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
sema_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
sema.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
semasleep_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
signal_gccgo.go gccgo: fix runtime compilation on NetBSD 2020-04-20 21:20:53 -07:00
signal_unix.go libgo: update to almost the 1.14.2 release 2020-04-06 16:37:24 -07:00
signal_windows_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
sigqueue_note.go libgo: update to Go1.13 2019-09-12 23:22:53 +00:00
sigqueue.go libgo: update to Go1.13 2019-09-12 23:22:53 +00:00
sizeclasses.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
sizeof_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
slice_test.go libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
slice.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
stack_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
string_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
string.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
stubs2.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
stubs3.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
stubs_linux.go
stubs_nonlinux.go
stubs.go gccgo: fix runtime compilation on NetBSD 2020-04-20 21:20:53 -07:00
symtab_test.go
symtab.go libgo: update to almost the 1.14.2 release 2020-04-06 16:37:24 -07:00
sys_wasm.go
time_fake.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
time_nofake.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
time_test.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
time.go libgo: update to almost the 1.14.2 release 2020-04-06 16:37:24 -07:00
timeasm.go libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
timestub2.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
timestub.go libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
trace.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
traceback_gccgo.go libgo: update to Go1.14beta1 2020-01-21 23:53:22 -08:00
type.go compiler, runtime, reflect: generate hash functions only for map keys 2020-01-02 21:55:32 +00:00
typekind.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
utf8.go libgo: update to Go1.14rc1 release 2020-02-15 09:14:10 -08:00
write_err_android.go libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
write_err.go