summaryrefslogtreecommitdiff
path: root/libgo/runtime/go-eface-compare.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-11-30 00:21:52 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-11-30 00:21:52 +0000
commitb87974949f096925805aec63eac7c5a02f2bb483 (patch)
tree365c588a8f44625a3f5aa828c39bd4189af0bb46 /libgo/runtime/go-eface-compare.c
parenta5922111851daf250abc704098c4cefdc4b629af (diff)
downloadgcc-b87974949f096925805aec63eac7c5a02f2bb483.tar.gz
runtime: Copy runtime_panicstring from master library.
From-SVN: r181830
Diffstat (limited to 'libgo/runtime/go-eface-compare.c')
-rw-r--r--libgo/runtime/go-eface-compare.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/runtime/go-eface-compare.c b/libgo/runtime/go-eface-compare.c
index 673440542f3..d88d50569c2 100644
--- a/libgo/runtime/go-eface-compare.c
+++ b/libgo/runtime/go-eface-compare.c
@@ -4,7 +4,7 @@
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file. */
-#include "go-panic.h"
+#include "runtime.h"
#include "interface.h"
/* Compare two interface values. Return 0 for equal, not zero for not
@@ -20,7 +20,7 @@ __go_empty_interface_compare (struct __go_empty_interface left,
if (((uintptr_t) left_descriptor & reflectFlags) != 0
|| ((uintptr_t) right.__type_descriptor & reflectFlags) != 0)
- __go_panic_msg ("invalid interface value");
+ runtime_panicstring ("invalid interface value");
if (left_descriptor == NULL && right.__type_descriptor == NULL)
return 0;