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:
parent
9b1f1833de
commit
3453a2204b
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user