]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: only define SEH when we need it.
authorKeith Randall <khr@golang.org>
Wed, 24 Jul 2013 16:59:47 +0000 (09:59 -0700)
committerKeith Randall <khr@golang.org>
Wed, 24 Jul 2013 16:59:47 +0000 (09:59 -0700)
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/11769043

src/pkg/runtime/proc.c

index 9626d7980c43d739c1aaf1180cf88b57e77db0b6..0e9785e45682dd06e753e31a1f5194e7aa859156 100644 (file)
@@ -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");