aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/proc.c
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2013-07-24 09:59:47 -0700
committerKeith Randall <khr@golang.org>2013-07-24 09:59:47 -0700
commit3453a2204b07bfbc2ab42f2add7911f4c1bdb63c (patch)
treeda72e8fea5327e41d06a7646bcedef147b993062 /src/pkg/runtime/proc.c
parent9b1f1833de07763b8c07f838a44d7e44a8837b18 (diff)
downloadgo-3453a2204b07bfbc2ab42f2add7911f4c1bdb63c.tar.xz
runtime: only define SEH when we need it.
R=golang-dev, iant CC=golang-dev https://golang.org/cl/11769043
Diffstat (limited to 'src/pkg/runtime/proc.c')
-rw-r--r--src/pkg/runtime/proc.c4
1 files changed, 4 insertions, 0 deletions
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");