diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2020-01-07 23:13:24 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2020-01-07 23:13:24 +0000 |
commit | 81f025b580be6ce933f0ecb1f96445a3bb4fff4b (patch) | |
tree | 593e3698208109bb3b3071e6498865ec327c4f34 /libgo/go/runtime/slice.go | |
parent | 7010bcd1c80e2a89f43c064ba21289df8c67a84c (diff) | |
download | gcc-81f025b580be6ce933f0ecb1f96445a3bb4fff4b.zip gcc-81f025b580be6ce933f0ecb1f96445a3bb4fff4b.tar.gz gcc-81f025b580be6ce933f0ecb1f96445a3bb4fff4b.tar.bz2 |
compiler, runtime: stop using __go_runtime_error
Use specific panic functions instead, which are mostly already in the
runtime package.
Also correct "defer nil" to panic when we execute the defer, rather
than throw when we queue it.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/213642
From-SVN: r279979
Diffstat (limited to 'libgo/go/runtime/slice.go')
-rw-r--r-- | libgo/go/runtime/slice.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgo/go/runtime/slice.go b/libgo/go/runtime/slice.go index c258ebd..49d5a86 100644 --- a/libgo/go/runtime/slice.go +++ b/libgo/go/runtime/slice.go @@ -12,6 +12,8 @@ import ( // For gccgo, use go:linkname to export compiler-called functions. // +//go:linkname panicmakeslicelen +//go:linkname panicmakeslicecap //go:linkname makeslice //go:linkname makeslice64 //go:linkname growslice |