runtime: copy signal code from Go 1.7 runtime
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 10 Nov 2016 22:53:23 +0000 (22:53 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 10 Nov 2016 22:53:23 +0000 (22:53 +0000)
commit980f9a0a4b7a193707ffa5e8ef698a223561b804
tree5a870a796677b74bf81d7659534413ed868dad5e
parent071af74db674f3dc462ab8a25e091b74830fda2d
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
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