Index: libgo/runtime/panic.c |
=================================================================== |
--- a/libgo/runtime/panic.c |
+++ b/libgo/runtime/panic.c |
@@ -49,8 +49,10 @@ |
} |
// Run all deferred functions for the current goroutine. |
+// This is noinline for go_can_recover. |
+static void __go_rundefer (void) __attribute__ ((noinline)); |
static void |
-rundefer(void) |
+__go_rundefer(void) |
{ |
G *g; |
Defer *d; |
@@ -219,7 +221,7 @@ |
void |
runtime_Goexit(void) |
{ |
- rundefer(); |
+ __go_rundefer(); |
runtime_goexit(); |
} |