Properly initialize the stack with emulated thread variables.

This commit is contained in:
Reimer Behrends
2014-11-06 02:09:51 +01:00
parent ee9c70e034
commit ead00d2328

View File

@@ -1061,8 +1061,7 @@ proc genMainProc(m: BModule) =
gBreakpoints.app(m.genFilenames)
let initStackBottomCall =
if emulatedThreadVars() or
platform.targetOS == osStandalone: "".toRope
if platform.targetOS == osStandalone: "".toRope
else: ropecg(m, "\t#initStackBottomWith((void *)&inner);$N")
inc(m.labels)
appcg(m, m.s[cfsProcs], PreMainBody, [