summaryrefslogtreecommitdiff
path: root/libgo/go/runtime/signal_unix.go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-08-31 03:01:15 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-08-31 03:01:15 +0000
commitc70ff9f9be0c7360a37519ec68ac4dd41e8d0a3c (patch)
tree2a189fbed2324d7708bfe231203bd294028057c9 /libgo/go/runtime/signal_unix.go
parente7c8f75569e792f81a4f4ceee4e1b20f2544e7a4 (diff)
compiler, runtime: support and use single argument go:linkname
The gc compiler has started permitting go:linkname comments with a single argument to mean that a function should be externally visible outside the package. Implement this in the Go frontend. Change the libgo runtime package to use it, rather than repeating the name just to export a function. Remove a couple of unnecessary go:linkname comments on declarations. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/192197 From-SVN: r275239
Diffstat (limited to 'libgo/go/runtime/signal_unix.go')
-rw-r--r--libgo/go/runtime/signal_unix.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/runtime/signal_unix.go b/libgo/go/runtime/signal_unix.go
index 0ba21e14e64..e1bab8caba3 100644
--- a/libgo/go/runtime/signal_unix.go
+++ b/libgo/go/runtime/signal_unix.go
@@ -12,8 +12,8 @@ import (
)
// For gccgo's C code to call:
-//go:linkname initsig runtime.initsig
-//go:linkname sigtrampgo runtime.sigtrampgo
+//go:linkname initsig
+//go:linkname sigtrampgo
// sigTabT is the type of an entry in the global sigtable array.
// sigtable is inherently system dependent, and appears in OS-specific files,