From 81f025b580be6ce933f0ecb1f96445a3bb4fff4b Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 7 Jan 2020 23:13:24 +0000 Subject: 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 --- libgo/go/runtime/slice.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libgo/go/runtime/slice.go') 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 -- cgit v1.1