runtime: copy signal code from Go 1.7 runtime
commit87211034d071d80dceb8b74fd78edbd2815c6a18
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Nov 2016 22:53:23 +0000 (10 22:53 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Nov 2016 22:53:23 +0000 (10 22:53 +0000)
tree5a870a796677b74bf81d7659534413ed868dad5e
parentd30c4aee920b03bc7732135656966f8bbf703783
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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242060 138bc75d-0d04-0410-961f-82ee72b054a4
29 files changed:
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/parse.cc
libgo/Makefile.am
libgo/Makefile.in
libgo/go/runtime/panic.go [new file with mode: 0644]
libgo/go/runtime/runtime2.go
libgo/go/runtime/signal1_unix.go [new file with mode: 0644]
libgo/go/runtime/signal2_unix.go
libgo/go/runtime/signal_gccgo.go [new file with mode: 0644]
libgo/go/runtime/signal_sighandler.go [new file with mode: 0644]
libgo/go/runtime/signal_sigtramp.go
libgo/go/runtime/signal_unix.go [new file with mode: 0644]
libgo/go/runtime/sigpanic_unix.go [new file with mode: 0644]
libgo/go/runtime/sigqueue.go [new file with mode: 0644]
libgo/go/runtime/stubs.go
libgo/mkrsysinfo.sh
libgo/mksigtab.sh [new file with mode: 0644]
libgo/runtime/go-signal.c
libgo/runtime/panic.c
libgo/runtime/proc.c
libgo/runtime/runtime.h
libgo/runtime/signal_unix.c [deleted file]
libgo/runtime/signal_unix.h [deleted file]
libgo/runtime/sigqueue.goc [deleted file]
libgo/runtime/thread-linux.c
libgo/runtime/yield.c