runtime: copy signal code from Go 1.7 runtime
Add a little shell script to auto-generate runtime.sigtable from the known signal names. Force the main package to always import the runtime package. Otherwise some runtime package global variables may never be initialized. Set the syscallsp and syscallpc fields of g when entering a syscall, so that the runtime package knows when a g is executing a syscall. Fix runtime.funcPC to avoid dead store elimination of the interface value when the function is inlined. Reviewed-on: https://go-review.googlesource.com/33025 From-SVN: r242060
Showing
libgo/go/runtime/panic.go
0 → 100644
libgo/go/runtime/signal1_unix.go
0 → 100644
libgo/go/runtime/signal_gccgo.go
0 → 100644
libgo/go/runtime/signal_sighandler.go
0 → 100644
libgo/go/runtime/signal_unix.go
0 → 100644
libgo/go/runtime/sigpanic_unix.go
0 → 100644
libgo/go/runtime/sigqueue.go
0 → 100644
libgo/mksigtab.sh
0 → 100644
This diff is collapsed.
Click to expand it.
libgo/runtime/signal_unix.c
deleted
100644 → 0
libgo/runtime/signal_unix.h
deleted
100644 → 0
libgo/runtime/sigqueue.goc
deleted
100644 → 0
Please
register
or
sign in
to comment