diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-01-26 19:07:54 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-01-26 19:07:54 +0000 |
commit | 41d3d0ac409a6e85a39e453be6ecb99c622284a8 (patch) | |
tree | 962832cf9778c19d47e3baa0e6b4b524143d58e9 /libgo/go | |
parent | fda6ee70338aa5445b63366cfaff29496819c373 (diff) | |
download | gcc-41d3d0ac409a6e85a39e453be6ecb99c622284a8.zip gcc-41d3d0ac409a6e85a39e453be6ecb99c622284a8.tar.gz gcc-41d3d0ac409a6e85a39e453be6ecb99c622284a8.tar.bz2 |
runtime: fix setting of isarchive
When I updated to Go 1.8, the initsig function moved from
signal1_unix.go to signal_unix.go, and lost a gccgo-specific change in
the move. Add it back.
This would have been caught by the misc/cgo/testcarchive tests in the
gc repository, but we don't run those in the gccgo repository. We
should fix that, somehow.
Reviewed-on: https://go-review.googlesource.com/35839
From-SVN: r244947
Diffstat (limited to 'libgo/go')
-rw-r--r-- | libgo/go/runtime/signal_unix.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libgo/go/runtime/signal_unix.go b/libgo/go/runtime/signal_unix.go index cd6f3fb..13b7930 100644 --- a/libgo/go/runtime/signal_unix.go +++ b/libgo/go/runtime/signal_unix.go @@ -66,6 +66,11 @@ var signalsOK bool //go:nosplit //go:nowritebarrierrec func initsig(preinit bool) { + if preinit { + // preinit is only passed as true if isarchive should be true. + isarchive = true + } + if !preinit { // It's now OK for signal handlers to run. signalsOK = true |