diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-10-20 18:51:35 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-10-20 18:51:35 +0000 |
commit | 6b752cfac4ecf8b620726bfcd703844ebfaca6ea (patch) | |
tree | 458f96322bb64b331d71a3304f09cd7c032efa9c /libgo/runtime/go-panic.c | |
parent | fceabe505cf0dc7030602e582fadadcce73dd6de (diff) | |
download | gcc-6b752cfac4ecf8b620726bfcd703844ebfaca6ea.zip gcc-6b752cfac4ecf8b620726bfcd703844ebfaca6ea.tar.gz gcc-6b752cfac4ecf8b620726bfcd703844ebfaca6ea.tar.bz2 |
runtime: rewrite interface code into Go
I started to copy the Go 1.7 interface code, but the gc and gccgo
representations of interfaces are too different. So instead I rewrote
the gccgo interface code from C to Go. The code is largely the same as
it was, but the names are more like those used in the gc runtime.
I also copied over the string comparison functions, and tweaked the
compiler to use eqstring when comparing strings for equality.
Reviewed-on: https://go-review.googlesource.com/31591
From-SVN: r241384
Diffstat (limited to 'libgo/runtime/go-panic.c')
-rw-r--r-- | libgo/runtime/go-panic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libgo/runtime/go-panic.c b/libgo/runtime/go-panic.c index 436a966..2fb65aa 100644 --- a/libgo/runtime/go-panic.c +++ b/libgo/runtime/go-panic.c @@ -12,7 +12,6 @@ #include "malloc.h" #include "go-alloc.h" #include "go-panic.h" -#include "interface.h" /* Print the panic stack. This is used when there is no recover. */ @@ -35,7 +34,7 @@ __printpanics (Panic *p) function. */ void -__go_panic (struct __go_empty_interface arg) +__go_panic (Eface arg) { G *g; Panic *n; |