diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-30 05:16:36 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-30 05:16:36 +0000 |
commit | bc4381667a31bd5f1e677d64c789b1e959df00d5 (patch) | |
tree | a6b80dca8f72a2e7640e4d535901e42325b2a954 /libgo/runtime/go-panic.c | |
parent | 1cd66bce1663eb648638d311b493de0dcc4146c3 (diff) | |
parent | 738c50b853f5ba0eaf93e23f6d29cbac761eef9e (diff) | |
download | gcc-reload-v2a.tar.gz |
Weekly merge from trunk. No regressions.reload-v2a
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/reload-v2a@181834 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime/go-panic.c')
-rw-r--r-- | libgo/runtime/go-panic.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libgo/runtime/go-panic.c b/libgo/runtime/go-panic.c index 8b95cd4e4d1..23df57930b7 100644 --- a/libgo/runtime/go-panic.c +++ b/libgo/runtime/go-panic.c @@ -39,8 +39,11 @@ __printpanics (struct __go_panic_stack *p) void __go_panic (struct __go_empty_interface arg) { + G *g; struct __go_panic_stack *n; + g = runtime_g (); + n = (struct __go_panic_stack *) __go_alloc (sizeof (struct __go_panic_stack)); n->__arg = arg; n->__next = g->panic; @@ -98,10 +101,9 @@ __go_panic (struct __go_empty_interface arg) /* The panic was not recovered. */ + runtime_startpanic (); __printpanics (g->panic); - - /* FIXME: We should dump a call stack here. */ - abort (); + runtime_dopanic (0); } /* This is used by the runtime library. */ |