compiler, runtime: stop using __go_runtime_error
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 7 Jan 2020 23:13:24 +0000 (23:13 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 7 Jan 2020 23:13:24 +0000 (23:13 +0000)
commit81f025b580be6ce933f0ecb1f96445a3bb4fff4b
tree593e3698208109bb3b3071e6498865ec327c4f34
parent7010bcd1c80e2a89f43c064ba21289df8c67a84c
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
12 files changed:
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/runtime.def
gcc/go/gofrontend/statements.cc
libgo/Makefile.am
libgo/Makefile.in
libgo/go/runtime/panic.go
libgo/go/runtime/proc.go
libgo/go/runtime/slice.go
libgo/runtime/go-runtime-error.c [deleted file]