From: Keith Randall Date: Wed, 24 Jul 2013 16:59:47 +0000 (-0700) Subject: runtime: only define SEH when we need it. X-Git-Tag: go1.2rc2~953 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3453a2204b07bfbc2ab42f2add7911f4c1bdb63c;p=gostls13.git runtime: only define SEH when we need it. R=golang-dev, iant CC=golang-dev https://golang.org/cl/11769043 --- diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index 9626d7980c..0e9785e456 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -485,10 +485,14 @@ runtime·starttheworld(void) void runtime·mstart(void) { +#ifdef GOOS_windows +#ifdef GOARCH_386 // It is used by windows-386 only. Unfortunately, seh needs // to be located on os stack, and mstart runs on os stack // for both m0 and m. SEH seh; +#endif +#endif if(g != m->g0) runtime·throw("bad runtime·mstart");