diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-11-30 00:21:52 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-11-30 00:21:52 +0000 |
commit | b87974949f096925805aec63eac7c5a02f2bb483 (patch) | |
tree | 365c588a8f44625a3f5aa828c39bd4189af0bb46 /libgo/runtime/go-runtime-error.c | |
parent | a5922111851daf250abc704098c4cefdc4b629af (diff) | |
download | gcc-b87974949f096925805aec63eac7c5a02f2bb483.zip gcc-b87974949f096925805aec63eac7c5a02f2bb483.tar.gz gcc-b87974949f096925805aec63eac7c5a02f2bb483.tar.bz2 |
runtime: Copy runtime_panicstring from master library.
From-SVN: r181830
Diffstat (limited to 'libgo/runtime/go-runtime-error.c')
-rw-r--r-- | libgo/runtime/go-runtime-error.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libgo/runtime/go-runtime-error.c b/libgo/runtime/go-runtime-error.c index ceba2d6..f732e7f 100644 --- a/libgo/runtime/go-runtime-error.c +++ b/libgo/runtime/go-runtime-error.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" /* The compiler generates calls to this function. This enum values are known to the compiler and used by compiled code. Any change @@ -59,26 +59,26 @@ __go_runtime_error (int i) case SLICE_INDEX_OUT_OF_BOUNDS: case ARRAY_INDEX_OUT_OF_BOUNDS: case STRING_INDEX_OUT_OF_BOUNDS: - __go_panic_msg ("index out of range"); + runtime_panicstring ("index out of range"); case SLICE_SLICE_OUT_OF_BOUNDS: case ARRAY_SLICE_OUT_OF_BOUNDS: case STRING_SLICE_OUT_OF_BOUNDS: - __go_panic_msg ("slice bounds out of range"); + runtime_panicstring ("slice bounds out of range"); case NIL_DEREFERENCE: - __go_panic_msg ("nil pointer dereference"); + runtime_panicstring ("nil pointer dereference"); case MAKE_SLICE_OUT_OF_BOUNDS: - __go_panic_msg ("make slice len or cap out of range"); + runtime_panicstring ("make slice len or cap out of range"); case MAKE_MAP_OUT_OF_BOUNDS: - __go_panic_msg ("make map len out of range"); + runtime_panicstring ("make map len out of range"); case MAKE_CHAN_OUT_OF_BOUNDS: - __go_panic_msg ("make chan len out of range"); + runtime_panicstring ("make chan len out of range"); default: - __go_panic_msg ("unknown runtime error"); + runtime_panicstring ("unknown runtime error"); } } |