From: Ian Lance Taylor Date: Fri, 10 Feb 2012 15:52:37 +0000 (+0000) Subject: runtime: Save all registers on stack for GC scan. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c91e24907b9b9689c0af5d46b73e712d70f6994c;p=gcc.git runtime: Save all registers on stack for GC scan. From-SVN: r184098 --- diff --git a/libgo/runtime/mgc0.c b/libgo/runtime/mgc0.c index bd634d533e9..73c399df239 100644 --- a/libgo/runtime/mgc0.c +++ b/libgo/runtime/mgc0.c @@ -936,6 +936,10 @@ runtime_gc(int32 force) const byte *p; bool extra; + // Make sure all registers are saved on stack so that + // scanstack sees them. + __builtin_unwind_init(); + // The gc is turned off (via enablegc) until // the bootstrap has completed. // Also, malloc gets called in the guts