1
0
mirror of https://github.com/golang/go synced 2024-11-22 18:24:48 -07:00

runtime: only define SEH when we need it.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/11769043
This commit is contained in:
Keith Randall 2013-07-24 09:59:47 -07:00
parent 9b1f1833de
commit 3453a2204b

View 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");